'heapdump.xxx.phd'. Not a HPROF heap dump (java.io.IOException) Not a HPROF heap dump

喜欢而已 提交于 2019-12-30 08:12:12

问题


The Eclipse Memory Analyser docs say it can open IBM portable heap dump files (*.phd):

http://help.eclipse.org/luna/index.jsp?topic=/org.eclipse.mat.ui.help/welcome.html

However, when I try to open one I get and error:

'heapdump.xxx.phd'. Check the error log for further details.
Not a HPROF heap dump (java.io.IOException)
Not a HPROF heap dump

I've tried both menu options (File > Open Heap Dump) and (File > Open File)


回答1:


You have to install DTJF in order to read IBM files.

http://wiki.eclipse.org/MemoryAnalyzer#System_Dumps_and_Heap_Dumps_from_IBM_Virtual_Machines

Eclipse download site is at the bottom here:

http://www.ibm.com/developerworks/java/jdk/tools/dtfj.html




回答2:


The eclipse MemoryAnalyzer throws the exception:

An internal error occurred during: "Parsing heap dump from 'D:\XXXX.phd'".
int is not an array

So I have to use IBM HeapAnalyzer: http://public.dhe.ibm.com/software/websphere/appserv/support/tools/HeapAnalyzer



来源:https://stackoverflow.com/questions/24868926/heapdump-xxx-phd-not-a-hprof-heap-dump-java-io-ioexception-not-a-hprof-heap

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!