Old generation and GC

Hello there! I'm tuning a app here and we sure do have some sort of memory leak. But there's something that intrigues me.

We have 3gb of total heap space:

Xmx3000m Xms3000m XX:NewRation=4

With this we have around 2.4gb of old generation. Our OG fills as fast as a bullet (JBoss application server), and it's not shrinking. vm waits until 90% of use to run the full gc and most of times restores 10% or less of memory. Before that we had a newratio=3 and the situation was the same. The more memory we give, the more it consumes.

My question is: how often does the full gc runs? What would be the reason of restoring just 10% or less of the memory? Also, during low usage periods (late night) it does not run any gc to reclaim the memory is this normal?

Best regards

[805 byte] By [vcarvalhoa] at [2007-11-26 13:22:22]
# 1
you may find some stuff about gc and tuning... http://java.sun.com/docs/hotspot/gc5.0/gc_tuning_5.html
suparenoa at 2007-7-7 17:53:13 > top of Java-index,Java Essentials,Java Programming...
# 2
Try using new generation, these parameters,-XX:NewSize=128m -XX:SurvivorRatio=2more: http://developers.sun.com/techtopics/mobility/midp/articles/garbagecollection2/
AjaySingh516a at 2007-7-7 17:53:13 > top of Java-index,Java Essentials,Java Programming...