Cannot Open HPROF File Using Eclipse Memory Analyzer

Eclipse Memory Analyzer only offers me with this message: " False HPROF .

Reset Stack:

java.io.IOException: Invalid HPROF file header. at org.eclipse.mat.hprof.AbstractParser.readVersion(AbstractParser.java:135) at org.eclipse.mat.hprof.Pass1Parser.read(Pass1Parser.java:69) at org.eclipse.mat.hprof.HprofIndexBuilder.fill(HprofIndexBuilder.java:65) at org.eclipse.mat.parser.internal.SnapshotFactoryImpl.parse(SnapshotFactoryImpl.java:184) at org.eclipse.mat.parser.internal.SnapshotFactoryImpl.openSnapshot(SnapshotFactoryImpl.java:102) at org.eclipse.mat.snapshot.SnapshotFactory.openSnapshot(SnapshotFactory.java:114) at org.eclipse.mat.snapshot.SnapshotFactory.openSnapshot(SnapshotFactory.java:94) at org.eclipse.mat.ui.snapshot.ParseHeapDumpJob.run(ParseHeapDumpJob.java:54) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) 

The HPROF file was created on a Linux machine.

HAT does not work, and IBM HeapAnalyzer is complex, but really works.

What can I do to make it work?

+4
source share
2 answers

I had the same problem. Adding the flag "format = b" fixed the problem. Apparently, Memory Analyzer can only read binary files.

+5
source

If you are using the java service shell, most likely the JVM was killed before it could finish writing the heap heap. You can set a property for the service wrapper, which will give vm more time to complete the heap dump.

+1
source

All Articles