Configure the G1GC garbage collector (Technical Preview)

The Oracle JDK 7 update 4 introduced the Garbage First Garbage Collector (G1GC). You must follow certain recommendations when switching from the currently used Concurrent Mark Sweep (CMS) GC to G1GC.