Poonam's Weblog

« Previous day (Jul 11, 2009) | Main | Next day (Jul 13, 2009) »

http://blogs.sun.com/poonam/date/20090713 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


Valid HTML! Valid CSS!

This is a personal weblog, I do not speak for my employer.