JVM Heap and Thread Dumps

Thread dump from a running JVM to a file, the -J-64 is 64bit JVMs:

  • jmap -J-d64 -dump:format=b,file=<file> <pid>

Thread dump from a running JVM to stderr of the process:

  • kill -3 <pid>

Heap dump from a running JVM, the -J-64 is 64bit JVMs:

  • jmap -J-d64 -heap pid

Leave a Reply

Your email address will not be published. Required fields are marked *