如何读取jconsole创建的堆转储文件?

发布于 2024-12-02 04:00:15 字数 219 浏览 4 评论 0原文

我通过在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

忆梦 2024-12-09 04:00:16

我找到了一个Eclipse插件内存分析器来自己读取转储文件。其他工具仍然受到欢迎。

I found an Eclipse plugin Memory Analyzer to read the dump file by myself. Other tools are still welcome.

梦旅人picnic 2024-12-09 04:00:16

您可以使用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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文