Skip to content

Reference: default JVM heap calculation #127482

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/reference/elasticsearch/jvm-settings.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,18 @@ If you are running {{es}} as a Windows service, you can change the heap size usi
::::


## Default JVM heap sizes [default-jvm-sizes]

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.

* Master-only node
* 60% of total system memory, up to a maximum of 31 GB.
* Machine Learning-only node
* 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.
* Data-only node
* 40% of total system memory when less than 1 GB, with a minimum of 128 MB.
* 50% of total system memory when more than 1 GB, with a maximum of 31 GB.


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

Expand Down
Loading