Thread Dump / Heap Dump
Thread Dump
Command: kill -QUIT <java pid>
- Use http://fastthread.io/ to analyze the output
Heap Dump
Command : jmap -dump:format=b,file=<file-path> <pid>
Eg: /opt/perfMon/java/bin ./jmap -dump:live,format=b,file=/opt/xxx/heapdump.hrof 10759
- Use the "Eclipse Memory Analyzer" (MAT) to load the heap dump and analyze further
Comments
Post a Comment