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!

Heap size not increasing over 4G

843829Jun 26 2007 — edited Jun 27 2007
Hi,

I'm running a java server app on a 4-core 64-bit Linux box with JDK 1.6.0u1

The system has 8G of physical RAM and the java app is the dedicated app running on the server. I've allocated a max heap size of 8G to the java app.

The app does a lot of caching and as expected, the old gen starts filling up. The young gen only needs about 1.5G of space and the old gen can even eat up all of the available memory, which I want it to do.

Thing is that the jvm heap does not go over 4G. I've even changed the NewRatio to 6 but even then the old gen gets filled up to 99% and the app stops as the jvm does a full gc. Obviously, a gc will not help since there's nothing to gc.

I want the jvm to use more memory, but its not allocating more. Any ideas whats going on?

I'm using ParallelGC as well.

Regards,
Vinod.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 25 2007
Added on Jun 26 2007
4 comments
710 views