Java Troubleshooting - keshavbaweja-git/guides GitHub Wiki
jmap -dump:live,file=<file-path> <pid>
- Generate Heap Dump
jhat -J-Xmx16g -port 7001 <file-path>
- Analyse heap dump
- Eclipse Memory Analyzer
jstack -l <pid> > <file-path>
- Generate Thread dump
On multi-core systems, you can see percentages of CPU usage are greater than 100%. You can toggle this behavior by hitting Shift + i while top is running to show the overall percentage of available CPUs in use. top %cpu greater than 100