英文:
Mat Eclipse - Java byte 2GB with no GC roots
问题
我正在尝试调试一个大小为2GB的大型字节对象,似乎只包含空值。在使用Eclipse MAT时,我无法找到任何GC根。JVM在WebSphere中运行,使用的是IBM J9。有任何想法为什么Eclipse MAT不显示任何GC根,无论是强引用还是弱引用?
GC路径显示为对象本身:
英文:
I am trying to debug large byte object which is 2GB and seems to contain nulls only. I cannot find any GC roots when using Eclipse MAT. The JVM is running IBM J9 in websphere. Any ideas why Eclipse MAT is not showing any GC roots, hard or weak?
Path to GC is showing as the object iteself:
答案1
得分: 1
橙色图标上的橙色球表示它是GC根。
根的类型会在数组内容后显示,但在第一张截图中无法看到。
当选择byte[]数组对象时,请在检查器视图中查找GC根的类型。
英文:
The orange ball on the icon means it is a GC root.
The type of root would be shown after the array contents but that isn't visible in the first screenshot.
Look in the inspector view when the byte[] array object is selected to find out the type of GC root.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论