Differences
This shows you the differences between two versions of the page.
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: | ||
+ | |||
+ | Creates a dump to the file // | ||
+ | |||
+ | {{tag> |