Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我需要在生产 Linux 机器上使用 JConsole 任何人都知道如何为我正在寻找 HPOF 文件的 Mbean 指定转储文件的路径,以便我可以分析内存泄漏。
看看文档。在突出显示堆转储的部分中,您可以看到需要选择以触发堆转储的 MBean。请注意,您也可以通过以下方式在内存不足时自动发生这种情况:
-XX:+HeapDumpOnOutOfMemoryError