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.
我在使用大量高堆内存的 java 应用程序中寻找问题。我已经设法让 Oracle Java 在 Full GC(HeapDumpBeforeFullGC)之前转储堆,但也需要线程转储。我已经用谷歌搜索了一个解决方案,但没有运气。
oracle jdk似乎没有这样的解决方案,我将使用IBM Jdk,如果打开开关,它将同时转储线程和堆: -Xdump:heap:events=fullgc
从官方网站免费下载 IBM 支持帮助供个人使用。它是一个非常好的分析java堆的工具。