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.
我的应用程序服务器正在生成大小从 2G 到 3G 不等的 .hprof 文件。为什么堆转储文件比通过 -Xmx 分配的内存大。
它们不应该等于最大堆大小吗?这是发生内存不足错误的时候。
它不仅输出对象,还存储所有参考信息以使其更有意义。
如果处理大堆有问题,您可以使用 Eclipse MAT,它可以帮助您索引大堆,以便更好地分析它们。