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!

CMS collector ignoring -XX:CMSInitiatingOccupancyFraction completely

843829Mar 1 2007 — edited Mar 6 2007
I have a Java service that appears to ignore the
XX:CMSInitiatingOccupancyFraction flag completely. Here're the GC
related settings:

-XX:+PrintGCDetails
-XX:+PrintGCTimeStamps
-XX:+PrintTenuringDistribution
-XX:+UseConcMarkSweepGC
-XX:+CMSIncrementalMode
-XX:CMSInitiatingOccupancyFraction=50
-XX:+UseCMSInitiatingOccupancyOnly
-Xmx2048m -Xms2048m
-XX:NewSize=100m
-XX:MaxNewSize=100m

Despite setting CMSInitiatingOccupancyFraction to 50% and setting
UseCMSInitiatingOccupancyOnly to true, the CMS collector continues to
wait until the tenured generation grows way above 50% before it
kicks in.

The reason for 50% threshold is this app being very sensitive to
pauses and I want to avoid pause if at all possible, at the expense of
memory and CPU. However because CMS doesn't start early as it should
(should start at 50% tenured occupancy), I occasionally get YG
promotions failures and results a STW collection pause, probably due
to fragmentation.

This is JRE1.6.0 on Linux. What's going on??
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 3 2007
Added on Mar 1 2007
2 comments
1,332 views