We help IT Professionals succeed at work.

How to generate a heap dump in JBoss

djafak
djafak asked
on

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

Commented:
try Ctrl+Brk key on the JBoss console (Run Batch Shell)
Senior Technical Engineer
Commented:
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.

Author

Commented:

Many thanks for this fast response !
Regards
Karim