Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

GC Unreacheable object

843829Jul 31 2009 — edited Aug 3 2009
I'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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 31 2009
Added on Jul 31 2009
4 comments
364 views