Unreachable objects are not garbage collected from heap

前端 未结 3 1867
予麋鹿
予麋鹿 2021-02-14 04:48

I\'am struggling with unreachable objects in my JVM heap (Java 1.7). As you can see from the picture (all classes on the picture are unreachable), we have more than 74 % objects

3条回答
  •  情深已故
    2021-02-14 05:05

    This question might be related to this one

    Java heap overwhelmed by unreachable objects

    I found it as I'm facing the same problem in an IBM JVM 5 runninf on AIX 6.1

    The only amount of retained heap that grows consistently between two fullgcs is the unreachable objects, marked, if I'm not wrong, with ROOT as the dominator in Eclipse MAT.

    To get these dumps, I configureg the JVM to create a sysdump after a fullgc using the Xdump option (only for IBM JVMs, I think)

    Hope this helps, and if anybody knows if the GC verbose log leaves a trace of the unreachable objects that couldn't be cleaned, please let me know!

    Carlos

提交回复
热议问题