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!

Forcing a Full GC

843829Apr 12 2006 — edited Sep 18 2006
We have an application that runs on a BEA Weblogic 8.1 application server. JVM is set as follows -Xms512K -Xmx1024K -XMaxPermSize 256K

A minor GC runs about every 10 minutes and takes a fraction of a second. Our problem is that the application appears to hang every few days. The heap is usually about 60% utilized, no out of memory errrors. The application is failing to allocate an object. When we manually force a full GC from the BEA console the application starts working again.

Most problems with garbage collection seem to be with it running too often and impacting response time. This is not the case with this application.

Questions:
1) why doesn't the JVM do a full GC on its own?
2) is there anything we can do to encourage it to do a full GC more often?

When we force the full GC it takes no more than 1.5 seconds.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 16 2006
Added on Apr 12 2006
20 comments
588 views