Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有从 JVM OutOfMemory(JDK 1.5 版本)生成的 .hprof 堆转储。
当我尝试在 VisualVM 中添加此文件时,它告诉我文件不是有效的核心转储。
但是,我可以毫无问题地为此转储文件运行 jhat。
任何想法为什么?
您尝试打开的文件是Head Dump而不是Core Dump。
请按照以下步骤操作:
堆转储不是核心转储。因此,您必须在 VisualVM 中将 .hprof 文件作为堆转储打开。