Differences

This shows you the differences between two versions of the page.

Link to this comparison view

analyze_jvm [2015/02/20 15:24]
analyze_jvm [2021/04/05 11:23] (current)
Line 1: Line 1:
 +====== Analyze Java Virtual Machine ======
  
 +===== Thread Dump =====
 +
 +  kill -3 <pid>
 +
 +Creates a thread dump on linux.
 +
 +  jstack -l <pid>
 +
 +also creates a thread dump on a running VM (and leaves it running).
 +
 +
 +===== Heap Dump =====
 +
 +  jmap -dump:format=b,file=dump.bin <pid>
 +
 +Creates a dump to the file //dump.bin// of the passed process. The file is not human readable. Tools like [[https://eclipse.org/mat/ | MAT]] can help you analyze the dump.
 +
 +{{tag>java}}