You can use the jmap utility to get a heap dump that shows you every object on the
heap. Use these commands:
jmap -dump:format=b,file=dumpFileName processID
jhat dumpFileName
Then, point your browser to localhost:7000. You will get a web application that lets
you drill down into the contents of the heap at the time of the dump.
No comments:
Post a Comment