http://www.oracle.com/technetwork/java/javase/tech/g1-intro-jsp-135488.html seems to be the official docs for the G1 garbage collector.
There are two options mentioned:
- -XX:+G1ParallelRSetUpdatingEnabled
- -XX:+G1ParallelRSetScanningEnabled
When configuring tomcat to use G1 with these options, catalina.log shows up
Unrecognized VM option '+G1ParallelRSetUpdatingEnabled'
Could not create the Java virtual machine.
My JVM is
$ java -version
java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
and
JAVA_OPTS="-server -Djava.awt.headless=true -Xmx3G -Xss512k -XX:MaxPermSize=1G -XX:+UnlockExperimentalVMOptions -XX:+UseG1GC -XX:+G1ParallelRSetUpdatingEnabled -XX:+G1ParallelRSetScanningEnabled"
Any hints why -XX:+G1ParallelRSetScanningEnabled does not work?