score:0

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.

score:1

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>

where
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

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


Related Query

More Query from same tag