Skip to content

Commit cb1be6c

Browse files
authored
Reference: default JVM heap calculation
1 parent 637807c commit cb1be6c

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/reference/elasticsearch/jvm-settings.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,18 @@ If you are running {{es}} as a Windows service, you can change the heap size usi
128128
::::
129129

130130

131+
## Default JVM heap sizes [default-jvm-sizes]
132+
133+
If heap sizes are not specifically set, {{es}} will calculate JVM heap sizing based on the total amount of system memory, depending on the node's role.
134+
135+
* Master-only node
136+
* 60% of total system memory, up to a maximum of 31 GB.
137+
* Machine Learning-only node
138+
* 40% of the first 16 gigabytes plus 10% of memory above that when total system memory is more than 16 gigabytes, up to a maximum of 31 GB.
139+
* Data-only node
140+
* 40% of total system memory when less than 1 GB, with a minimum of 128 MB.
141+
* 50% of total system memory when more than 1 GB, with a maximum of 31 GB.
142+
131143

132144
## JVM heap dump path setting [heap-dump-path-setting]
133145

0 commit comments

Comments
 (0)