Tuesday, April 15, 2008

How to get HTTP Session size in WebLogic ?


HTTP Session size information can be helpful during troubleshooting of the application’s performance issues.

In WebLogic 10 it is possible to determine HTTP session size without using any external tool.

1) Add weblogic-diagnostic.xml deployment descriptor with “HTTPSessionDebug” in META-INF directory of the “EAR” or exploded application.
i.e.
physicianEar/META-INF

weblogic-diagnostic.xml

<?xml version="1.0" encoding="UTF-8"?>
<wldf-resource xmlns="http://www.bea.com/ns/weblogic/90/diagnostics">
<instrumentation>
<enabled>true</enabled>
<wldf-instrumentation-monitor>
<name>HttpSessionDebug</name&gt
;

<enabled>true</enabled>
</instrumentation>

</wldf-resource>

2) Re-deploy application.

3) Invoke application to create test sessions.

4) In Admin console go to Diagnostic --> Log Files --> EventsDataArchive


* Click on image to view larger image.


Payload column displays HTTP session size in bytes.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home