From 8146ad8b36d510d9ae9efc9cfcf8aba7fb0cb379 Mon Sep 17 00:00:00 2001 From: Lee Hinman Date: Thu, 13 Sep 2018 11:38:07 -0600 Subject: [PATCH 1/2] Add commented out JVM options for G1GC These options are available now that we will be supporting G1GC for Java 10 and above. They are also designed so that the CMS options don't have to be commented out in order for the G1 options to take effect. --- distribution/src/config/jvm.options | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/distribution/src/config/jvm.options b/distribution/src/config/jvm.options index e486735eb8fb4..5407461dcf9d7 100644 --- a/distribution/src/config/jvm.options +++ b/distribution/src/config/jvm.options @@ -37,6 +37,14 @@ -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly +## G1GC Configuration +# NOTE: We only support G1GC on JDK version 10 or later. +# To use G1GC uncomment the lines below. +# 10-:-XX:-UseConcMarkSweepGC +# 10-:-XX:-UseCMSInitiatingOccupancyOnly +# 10-:-XX:+UseG1GC +# 10-:-XX:InitiatingHeapOccupancyPercent=75 + ## optimizations # pre-touch memory pages used by the JVM during initialization From 638380d3f9a6513c60c5f81e6b20e62cd234af46 Mon Sep 17 00:00:00 2001 From: Lee Hinman Date: Wed, 19 Sep 2018 11:26:36 -0600 Subject: [PATCH 2/2] Update wording --- distribution/src/config/jvm.options | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distribution/src/config/jvm.options b/distribution/src/config/jvm.options index 5407461dcf9d7..d8b651231cb46 100644 --- a/distribution/src/config/jvm.options +++ b/distribution/src/config/jvm.options @@ -38,7 +38,7 @@ -XX:+UseCMSInitiatingOccupancyOnly ## G1GC Configuration -# NOTE: We only support G1GC on JDK version 10 or later. +# NOTE: G1GC is only supported on JDK version 10 or later. # To use G1GC uncomment the lines below. # 10-:-XX:-UseConcMarkSweepGC # 10-:-XX:-UseCMSInitiatingOccupancyOnly