Use G1GC on JDK11+ (#2964)
Update default jvm settings to use G1GC by default for JDK11 and greater. Signed-off-by: Matt Weber <matt@mattweber.org>
This commit is contained in:
parent
8033183c46
commit
8bfb082ee1
|
@ -33,19 +33,19 @@
|
||||||
################################################################
|
################################################################
|
||||||
|
|
||||||
## GC configuration
|
## GC configuration
|
||||||
8-13:-XX:+UseConcMarkSweepGC
|
8-10:-XX:+UseConcMarkSweepGC
|
||||||
8-13:-XX:CMSInitiatingOccupancyFraction=75
|
8-10:-XX:CMSInitiatingOccupancyFraction=75
|
||||||
8-13:-XX:+UseCMSInitiatingOccupancyOnly
|
8-10:-XX:+UseCMSInitiatingOccupancyOnly
|
||||||
|
|
||||||
## G1GC Configuration
|
## G1GC Configuration
|
||||||
# NOTE: G1 GC is only supported on JDK version 10 or later
|
# NOTE: G1 GC is only supported on JDK version 10 or later
|
||||||
# to use G1GC, uncomment the next two lines and update the version on the
|
# to use G1GC, uncomment the next two lines and update the version on the
|
||||||
# following three lines to your version of the JDK
|
# following three lines to your version of the JDK
|
||||||
# 10-13:-XX:-UseConcMarkSweepGC
|
# 10:-XX:-UseConcMarkSweepGC
|
||||||
# 10-13:-XX:-UseCMSInitiatingOccupancyOnly
|
# 10:-XX:-UseCMSInitiatingOccupancyOnly
|
||||||
14-:-XX:+UseG1GC
|
11-:-XX:+UseG1GC
|
||||||
14-:-XX:G1ReservePercent=25
|
11-:-XX:G1ReservePercent=25
|
||||||
14-:-XX:InitiatingHeapOccupancyPercent=30
|
11-:-XX:InitiatingHeapOccupancyPercent=30
|
||||||
|
|
||||||
## JVM temporary directory
|
## JVM temporary directory
|
||||||
-Djava.io.tmpdir=${OPENSEARCH_TMPDIR}
|
-Djava.io.tmpdir=${OPENSEARCH_TMPDIR}
|
||||||
|
|
Loading…
Reference in New Issue