these heapdumps were taken due to out of memory issues in jboss, where automatic heaps were taken. i used jmap to take one, and it opened fine. i'm thinking the heap dump was corrupted for some reason.


i suspect your heap dump file is corrupted. how did you capture the heap dump file? this article outlines several different options to capture heap dumps. 'jmap' tool that is present in jdk is a great tool to capture heap dumps. you can invoke it by passing following command:

  jmap -dump:format=b,file=<heap-dump-file-path> <process-id>

heap-dump-file-path: is the file path where heap dump will be written in to.
process-id: is the java process id, whose heap dump should be captured

jmap -dump:format=b,file=/opt/tmp/heapdump.bin 37320

Related Query

More Query from same tag