One way to let CMS win the race is to start the concurrent cycle sooner.
If the concurrent cycle starts when 60% of the old generation is filled,
CMS has a better chance
of finishing than if the cycle starts when 70% of the old generation is filled.
The easiest way to achieve that is to set both these flags:
both those flags also makes CMS easier to understand: if they are both set,
then CMS determines when to start the background thread based only on the
percentage of the old generation that is filled.
By default, the
Share this highlighthttp://www.safaribooksonline.com/a/java-performance-the/4589/