Mat Eclipse – Java byte 2GB with no GC roots

huangapple go评论82阅读模式
英文:

Mat Eclipse - Java byte 2GB with no GC roots

问题

我正在尝试调试一个大小为2GB的大型字节对象,似乎只包含空值。在使用Eclipse MAT时,我无法找到任何GC根。JVM在WebSphere中运行,使用的是IBM J9。有任何想法为什么Eclipse MAT不显示任何GC根,无论是强引用还是弱引用?

Mat Eclipse – Java byte 2GB with no GC roots

GC路径显示为对象本身:

Mat Eclipse – Java byte 2GB with no GC roots

英文:

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?

Mat Eclipse – Java byte 2GB with no GC roots

Path to GC is showing as the object iteself:

Mat Eclipse – Java byte 2GB with no GC roots

答案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.

huangapple
  • 本文由 发表于 2020年4月10日 00:15:57
  • 转载请务必保留本文链接:https://go.coder-hub.com/61125583.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定