VisualVM内存泄漏检测

发布于 2024-08-10 11:06:56 字数 167 浏览 4 评论 0原文

我正在尝试使用 VisualVM 来检测 java 中的内存泄漏。我使用的是1.2.1版本。我拍摄了两张快照来尝试捕捉内存使用情况随时间的变化。在我读过的一篇教程中,它说可以选择两个快照,然后右键单击并选择“比较”。我按照这个说明操作,但找不到“比较”选项,它只允许我“打开”或“删除”。有人用过 VisualVM 吗?

I am trying VisualVM for detecting memory leak in java. I am using the version 1.2.1. I took two snapshots to try to capture the change of memory usage overtime. In a tutorial I read, it says that one can select there two snapshots and right click and select "compare". I followed this instruction, but could not find a "compare" option, It only allows me to "open" or "delete". Has anybody used VisualVM before?

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

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

发布评论

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

评论(1

且行且努力 2024-08-17 11:06:56

我尝试了 JDK 附带的 jvisualvm 应用程序和从 https://visualvm.dev.java.net/download.html

启动它们后,它们都在文件菜单中向我显示了“比较内存快照...”条目。单击时,我可以选择快照。

I tried both the jvisualvm application that come with the JDK and the VisualVM downloaded from https://visualvm.dev.java.net/download.html.

After starting them they both show me a "Compare Memory Snapshots..." entry in the File menu. When clicked it allows me to select to snapshots.

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