Monday July 13, 2009
G1 Collector
In 6u14, a preliminary version of the new Garbage First (G1) garbage collector is included.
Garbage First, or G1, is a low pause, server style garbage collector targeted for multi-processors with large memories. G1's primary advantages over the Concurrent Mark-Sweep (CMS) collector include incremental compaction, better predictability and ease of use.
For using G1, need to specify following command line options:
-XX:+UnlockExperimentalVMOptions -XX:+UseG1GC
The following options can be used to affect G1's behavior:
* To set the max GC pause time goal in milliseconds that G1 will attempt to meet:
-XX:MaxGCPauseMillis=n
* To set the time interval over which GC pauses totaling up to MaxGCPauseMillis may take place:
-XX:GCPauseIntervalMillis=n
Posted at 08:35AM Jul 13, 2009 by poonam in Sun | Comments[0]