Technology hub‎ > ‎Jboss Handy‎ > ‎

Taking Heap dump and Thread dump on OutOfMemoryError or on JBoss shutdown

To take head dump and thread dump on OutOfMemory error use the below options

-XX:+HeapDumpOnOutOfMemoryError -XX:OnOutOfMemoryError="kill -3 pid > threaddump.txt" -XX:HeapDumpPath=/disk2/dumps

To generate Heap dump on control break use the below option


-XX:+HeapDumpOnCtrlBreak
Comments