Capture Heap dump from Tomcat Windows Service
October 4, 2013 Leave a comment
Add the following options into Tomcat >> Java >> Java Options
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=8086
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
- Goto JAVA_HOME/bin directory and launch jconsole.exe application
- In the remote process box enter localhost:8086 and click Connect button
- Switch to the MBeans tab
- select com.sun.management – HotSpotDiagnostic – Operations – dumpHeap in the tree on the left
- Pressing the dumpHeap button creates the heap dump. The parameter called p0 allows you to specify into which target file the heap is dumped.