GC Unreacheable object
843829Jul 31 2009 — edited Aug 3 2009I'm not sure this is the right place to post this question. (Direct me the right place if this is not.)
I have a heap dump file from one of my java web app and the file size is about 1.4GB.
When I looked at the dump file with Eclipse Memory Analyser, it shows the heap size is about 305MB; other 1.3G is being used by unreachable objects. As far as I know, unreachable objects are garbage collectable, but my question is why does GC leave this huge amount of objects uncollected? When is it going to collect them?
I used -Xmx1024M -Xms1024M and -XMaxPermSize128M for my process which, I think, means GC should kick in when the total memory usage approaching to 1G.
Is this normal situation or there is memory leak in my app? or my VM params are wrong somewhere?
Any feedback would help.
Thanks,
Joe