如何读取jconsole创建的堆转储文件?
我通过在 jconsole 中调用 MXBean 的 dumpHeap 操作来手动执行堆转储。所以我得到了一个转储文件。
我的问题: jconsole可以读取转储文件吗?如果不能,用什么工具可以读取?谢谢!
编辑:现在我知道 jconsole 不提供读取功能,我想知道为什么 jconsole 只写入转储文件而不提供读取功能。 (这不是我的问题,我只是好奇)
I performed a heap dump manually by invoking the com.sun.management.HotSpotDiagnostic MXBean's dumpHeap operation in jconsole. So I got a dump file.
My question:
Can jconsole read the dump file? If not, which tool can read it? Thanks!
EDIT: Now I know jconsole doesn't provide read feature, I am wondering reason why jconsole only writes dump file without read feature. (This is not my question, I am just curoius about it)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我找到了一个Eclipse插件内存分析器来自己读取转储文件。其他工具仍然受到欢迎。
I found an Eclipse plugin Memory Analyzer to read the dump file by myself. Other tools are still welcome.
您可以使用JDK 1.5及以上版本附带的jvisualvm.exe。它存在于 JDK 的 bin 文件夹中。这是一个非常好的工具,甚至可以用来分析正在运行的 Java 应用程序。
您甚至可以使用 JProfiler 读取堆转储文件。但这个软件是有授权的。
You can use jvisualvm.exe which comes with JDK 1.5 and above. Its present in bin folder of JDK. This is a very good tool which can be used to profile even the running Java applications.
You can even use JProfiler to read heap dump files. But this software is licensed.