Using the command-line options, you can control the frequency
of Metronome garbage collection, out of memory exceptions, and the
Metronome behavior on explicit system calls.
Using verbose:gc information
You can use the -verbose:gc option
with the -Xgc:verboseGCCycleTime=N option to
write information to the console about Metronome Garbage Collector
activity. Not all XML properties in the -verbose:gc output
from the standard JVM are created or apply to the output of Metronome Garbage Collector.
Metronome Garbage Collector behavior in out-of-memory conditions
By default, the Metronome Garbage Collector triggers an
unlimited, nondeterministic garbage collection when the JVM runs out
of memory. To prevent nondeterministic behavior, use the -Xgc:noSynchronousGCOnOOM option
to throw an OutOfMemoryError when the JVM runs
out of memory.
Metronome Garbage Collector behavior on explicit System.gc() calls
If a garbage collection cycle is in progress, the Metronome
Garbage Collector completes the cycle in a synchronous way when System.gc() is
called. If no garbage collection cycle is in progress, a full synchronous
cycle is performed when System.gc() is called.
Use System.gc() to clean up the heap in a controlled
manner. It is a nondeterministic operation because it performs a complete
garbage collection before returning.