Recommended settings for G1GC
The recommended settings for configuring Garbage First Garbage Collector (G1GC)
include allocating more Java heap space when compared to the Concurrent Mark Sweep (CMS) GC,
and setting specific values for properties such as
The following NameNode settings are recommended for G1GC in a large cluster:
Approximately 10% more Java heap space (
-XX:Xmx) should be allocated to the NameNode, as compared to CMS setup.
For large clusters (>50M files),
MaxGCPauseMillisshould be set to 4000.
You should set
ParallelGCThreadsto 20 (default for a 32-core machine), as opposed to 8 for CMS.
Other G1GC parameters should be left set to their default values.