User Tools

Site Tools


analyze_jvm

Differences

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

Link to this comparison view

analyze_jvm [2015/02/20 14:24] (current)
mihael created
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}}
analyze_jvm.txt ยท Last modified: 2015/02/20 14:24 by mihael