Skip to content

Commit 88a81a1

Browse files
committed
Remove Xmx/Xms from jvm.options
1 parent c36892b commit 88a81a1

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

distribution/src/config/jvm.options

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,13 @@
2020
## IMPORTANT: JVM heap size
2121
################################################################
2222
##
23-
## You must always set the initial and maximum JVM heap size to
24-
## the same value. For example, to set the heap to 4 GB, create
25-
## a new file in the jvm.options.d directory containing these
26-
## lines:
23+
## The heap size is automatically configured by Elasticsearch
24+
## based on the available memory in your system and the roles
25+
## each node is configured to fulfill. If specifying heap is
26+
## required, it should be done through a file in jvm.options.d,
27+
## and the min and max should be set to the same value. For
28+
## example, to set the heap to 4 GB, create a new file in the
29+
## jvm.options.d directory containing these lines:
2730
##
2831
## -Xms4g
2932
## -Xmx4g
@@ -33,13 +36,6 @@
3336
##
3437
################################################################
3538

36-
# Xms represents the initial size of the JVM heap
37-
# Xmx represents the maximum size of the JVM heap
38-
39-
-Xms${heap.min}
40-
-Xmx${heap.max}
41-
42-
4339

4440
################################################################
4541
## Expert settings

0 commit comments

Comments
 (0)