Configure the G1GC garbage collector

You must follow certain recommendations when switching from the currently used Concurrent Mark Sweep (CMS) GC to G1GC.