Tuesday, February 04, 2014

Heap dump in weblogic and Jboss

How to take Heap dump in weblogic applications:

if App is using jrockit version:

Please go to the application Jrocket Bin Directory to generate Heap Dump:

cd /prod/appl/bea/home10.3/jrockit_160_51/bin/

 Application Name:Digitalworld

(for digitalworld application) or you can get this path information if you grep the process.

Ps -ef |grep digitalworld

digitalworld 22041 10324  1 01:05 ?        00:05:36 /prod/appl/bea/home10.3/jrockit_160_37/bin/java -server -DdigitalworldAdmin -Xms512m -Xmx512m -classpath

here you get the  PID to generate the Heap Dump.

Syntax:


./jrcmd PID hprofdump filename=Path (where you want to generate the file)


Example

./jrcmd 22041 hprofdump filename=/prod/ecom2/local/apps/apps10/digitalworld/current/logs/archive/heapdump.log

 

No comments:

Post a Comment