VisualVM - not a valid core dump

天涯浪子 提交于 2019-12-04 19:47:22

问题


I have .hprof heap dump generated from JVM OutOfMemory (JDK 1.5 version).

When I try to add this file in VisualVM, it tells me file is not a valid core dump.

However from I'm able to run jhat for this dump file without any issue.

any ideas why ?


回答1:


The file you are trying to open is a Head Dump not a Core Dump.

Follow this steps:

  1. Go to File > Load...
  2. Select the File Format: as Heap Dumps (*.hprof, *.*)
  3. Choose your file and click on Open.



回答2:


Heap dump is not a core dump. So you have to open your .hprof file as a heap dump in VisualVM.



来源:https://stackoverflow.com/questions/7095805/visualvm-not-a-valid-core-dump

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