Question : How to generate a heap dump in JBoss


I want to generate a heap dump in JBoss server.
What command I have to do ?
I use JBoss 4.2
Thanks.
Karim

Answer : How to generate a heap dump in JBoss

Use -XX:+PrintGCDetails -Xloggc:D:\GcStats\gc.log -XX:+HeapDumpOnOutOfMemoryError
parameter in JAVA_OPTS(in run.sh/bat) while starting the JBoss to get HEAPDUMP.

U can use CTRL+BRK if Jboss started from command line and kill -3 <Jboss Service pid> in Unix.

Random Solutions  
 
programming4us programming4us