Community
Participate
Working Groups
Build Identifier: 1.0.1.201008091353 In MAT 0.8, I could successfully open IBM portable heap dumps. When using MAT 1.0.1 this is not possible anymore while documention states that it's still possible. org.eclipse.mat.SnapshotException: Error opening heap dump 'heapdump.20110317.132848.29737.phd'. Check the error log for further details. at org.eclipse.mat.parser.internal.SnapshotFactoryImpl.parse(SnapshotFactoryImpl.java:244) at org.eclipse.mat.parser.internal.SnapshotFactoryImpl.openSnapshot(SnapshotFactoryImpl.java:114) at org.eclipse.mat.snapshot.SnapshotFactory.openSnapshot(SnapshotFactory.java:143) at org.eclipse.mat.snapshot.SnapshotFactory.openSnapshot(SnapshotFactory.java:123) at org.eclipse.mat.ui.snapshot.ParseHeapDumpJob.run(ParseHeapDumpJob.java:56) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Caused by: java.io.IOException: Not a HPROF heap dump at org.eclipse.mat.hprof.AbstractParser.readVersion(AbstractParser.java:122) 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:203) ... 5 more Reproducible: Always Steps to Reproduce: 1. Try to open an IBM heap dump (.phd)
Have you installed the IBM DTFJ Feature? This is not part of the MAT distribution from Eclipse.org but must be installed separately from IBM. See here: http://wiki.eclipse.org/index.php/MemoryAnalyzer#System_Dumps_and_Heap_Dumps_from_IBM_Virtual_Machines If you check Help > About Eclipse Memory Analyzer > Installation Details then you should have an entry Diagnostic Tool Framework for Java if you have successfully installed the DTFJ feature.
I've just tried downloads from http://www.eclipse.org/downloads/download.php?file=/mat/1.0.1/rcp/MemoryAnalyzer-1.0.1.20100809-win32.win32.x86.zip and http://www.ibm.com/developerworks/java/jdk/tools/dtfj.html and it works for me.