2020-11-03 05:44:01 +08:00
|
|
|
[[heap-size-settings]]
|
2020-10-19 22:02:22 +08:00
|
|
|
[discrete]
|
|
|
|
=== Heap size settings
|
2017-12-12 23:24:37 +08:00
|
|
|
|
2020-12-19 03:14:56 +08:00
|
|
|
By default, {es} automatically sizes JVM heap based on a node's
|
|
|
|
<<node-roles,roles>> and total memory. We recommend this default sizing for most
|
|
|
|
production environments. If needed, you can override default sizing by manually
|
|
|
|
<<setting-jvm-heap-size,setting JVM heap size>>.
|
2017-12-12 23:24:37 +08:00
|
|
|
|
2020-12-19 03:14:56 +08:00
|
|
|
NOTE: Automatic heap sizing requires the <<jvm-version,bundled JDK>> or, if using
|
|
|
|
a custom JRE location, a Java 14 or later JRE.
|
2017-12-12 23:24:37 +08:00
|
|
|
|
2020-12-22 03:01:12 +08:00
|
|
|
NOTE: When running in a container, such as <<docker,Docker>>, total memory is
|
|
|
|
defined as the amount of memory visible to the container, not the total system
|
|
|
|
memory on the host.
|