Skip to content

Commit 1bd52ff

Browse files
authored
Cleanup JVM options after JDK 11 bump (#40961)
This commit cleans up the default JVM options now that the minimum runtime is JDK 11.
1 parent 0362fe1 commit 1bd52ff

File tree

1 file changed

+7
-18
lines changed

1 file changed

+7
-18
lines changed

distribution/src/config/jvm.options

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@
4040
## G1GC Configuration
4141
# NOTE: G1GC is only supported on JDK version 10 or later.
4242
# To use G1GC uncomment the lines below.
43-
# 10-:-XX:-UseConcMarkSweepGC
44-
# 10-:-XX:-UseCMSInitiatingOccupancyOnly
45-
# 10-:-XX:+UseG1GC
46-
# 10-:-XX:InitiatingHeapOccupancyPercent=75
43+
# 11-:-XX:-UseConcMarkSweepGC
44+
# 11-:-XX:-UseCMSInitiatingOccupancyOnly
45+
# 11-:-XX:+UseG1GC
46+
# 11-:-XX:InitiatingHeapOccupancyPercent=75
4747

4848
## DNS cache policy
4949
# cache ttl in seconds for positive DNS lookups noting that this overrides the
@@ -101,19 +101,8 @@ ${heap.dump.path}
101101
# specify an alternative path for JVM fatal error logs
102102
${error.file}
103103

104-
## JDK 8 GC logging
105-
106-
8:-XX:+PrintGCDetails
107-
8:-XX:+PrintGCDateStamps
108-
8:-XX:+PrintTenuringDistribution
109-
8:-XX:+PrintGCApplicationStoppedTime
110-
8:-Xloggc:${loggc}
111-
8:-XX:+UseGCLogFileRotation
112-
8:-XX:NumberOfGCLogFiles=32
113-
8:-XX:GCLogFileSize=64m
114-
115-
# JDK 9+ GC logging
116-
9-:-Xlog:gc*,gc+age=trace,safepoint:file=${loggc}:utctime,pid,tags:filecount=32,filesize=64m
104+
# GC logging
105+
-Xlog:gc*,gc+age=trace,safepoint:file=${loggc}:utctime,pid,tags:filecount=32,filesize=64m
117106
# due to internationalization enhancements in JDK 9 Elasticsearch need to set the provider to COMPAT otherwise
118107
# time/date parsing will break in an incompatible way for some date patterns and locals
119-
9-:-Djava.locale.providers=COMPAT
108+
-Djava.locale.providers=COMPAT

0 commit comments

Comments
 (0)