Showing posts with label debugging. Show all posts
Showing posts with label debugging. Show all posts

Java stack trace and heap dump analysis

Take a stack trace like this:
$ jmap -dump:file=tc_jmap.dat 9607

First parameter is the output file name, last is process id Start jhat to browse the stack trace
$ jhat -J-Xmx512m -port 8080 tc_jmap.dat

Or use Eclipse MAT (Memory Analyzer Tool) - Memory Analysis perspective.