You can use jhat
(Java Heap Analysis Tool) to read the generated file:
jhat [ options ] <heap-dump-file>
The jhat command parses a java heap dump file and launches a webserver. jhat enables you to browse heap dumps using your favorite webbrowser.
Note that you should have a hprof
binary format output to be able to parse it with jhat
. You can use format=b
option to generate the dump in this format.
-dump:format=b,file=<filename>