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 应用程序的内存使用情况。在 VisualVM 中,我看到堆大小为 ~733M:
但是当我将堆转储导出到 Eclipse MAT 时,它显示为 36.6MB:
这是为什么?
重复:为什么我的 Java 堆转储大小比已用内存小得多?
TLDR;堆转储触发垃圾收集和转储显示“已用堆”