Skip to content

Commit 00f01aa

Browse files
committed
Clarify heap setting in Docker docs (#42754)
Add note in the Docker docs that even when container memory is limited, we still require specifying -Xms/-Xmx using one of the supported methods.
1 parent be23658 commit 00f01aa

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/reference/setup/install/docker.asciidoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,12 @@ published ports with `--publish-all`, unless you are pinning one container per h
372372

373373
. Use the `ES_JAVA_OPTS` environment variable to set heap size. For example, to
374374
use 16GB, use `-e ES_JAVA_OPTS="-Xms16g -Xmx16g"` with `docker run`.
375+
+
376+
--
377+
NOTE: You still need to <<heap-size,configure the heap size>> even if you are
378+
https://docs.docker.com/config/containers/resource_constraints/#limit-a-containers-access-to-memory[limiting
379+
memory access] to the container.
380+
--
375381

376382
. Pin your deployments to a specific version of the {es} Docker image, for
377383
example +docker.elastic.co/elasticsearch/elasticsearch:{version}+.

0 commit comments

Comments
 (0)