linuxbox 上的 Jconsole

发布于 2024-12-22 07:32:52 字数 91 浏览 2 评论 0原文

大家好,我需要在生产 Linux 机器上使用 JConsole,任何人都知道如何为 Mbean 指定转储文件的路径,我正在寻找 HPOF 文件,以便我可以分析内存泄漏。

Hi I need to use JConsole on the production Linux box any one has an idea how can I specify the path of dump file for a Mbean I am looking for HPOF file so that i could analyze the memory leaks.

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

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

发布评论

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

评论(1

雨夜星沙 2024-12-29 07:32:52

查看文档。在突出显示堆转储的部分中,您可以看到需要选择的 MBean 以触发堆转储。请注意,您还可以使用以下命令在内存不足时自动发生这种情况:

-XX:+HeapDumpOnOutOfMemoryError

Take a look at the documentation. In the section that highlights heap dumps, you can see the MBean you need to select inorder to trigger the heap dump. Note you can also have this happen automatically on out of memory with:

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