我可以将 hprof/jmap 转储与 VisualVM 进行比较吗?

发布于 2024-08-01 20:26:22 字数 146 浏览 3 评论 0原文

当我尝试用它来分析我们的应用程序时,VisualVM 崩溃了,但是如果我可以将我从应用程序中完成的 jmap 内存转储加载到 VisualVM 中,我可能可以获得我需要的答案,而无需将 VisualVM 连接到我们的应用程序跑步。

那么,有办法做到这一点吗?

VisualVM crashes when I try to profile our application with it, but if I could load the jmap memory dumps I've done from our application into VisualVM, I could probably get the answers I need without having to attach VisualVM to our app while it is running.

So, is there a way to do this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

风苍溪 2024-08-08 20:26:22

打开VisualVM,点击File -> 加载.. 并选择您的 jmap 文件。

如果没有加载,我猜你的文件有问题。

Open VisualVM, click File -> Load.. and pick your jmap file.

If it is not loaded, I guess there is a problem with your file.

小傻瓜 2024-08-08 20:26:22

MAT ( http://www.eclipse.org/mat/ ) 对于比较 jmap/hprof 文件很有用。 如果有内存泄漏,请尝试支配树。

MAT ( http://www.eclipse.org/mat/ ) is useful for comparing jmap/hprof files. Try the dominator tree if you have a memory leak.

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