Clarify preferred method for setting heap size (#64256)

This commit clarifies that the preferred method for setting the heap
size is via jvm.options.d and that using the ES_JAVA_OPTS environment
variable is discouraged for production deployments.
This commit is contained in:
Jason Tedor 2020-10-28 08:49:31 -04:00
parent 6bd8f079a7
commit 72009a9edd
No known key found for this signature in database
GPG Key ID: FA89F05560F16BC5
1 changed files with 6 additions and 1 deletions

View File

@ -66,7 +66,12 @@ Here is an example of how to set the heap size via a `jvm.options.d/` file:
<1> Set the minimum heap size to 2g. <1> Set the minimum heap size to 2g.
<2> Set the maximum heap size to 2g. <2> Set the maximum heap size to 2g.
You can set the heap size using the `ES_JAVA_OPTS` environment variable: Using `jvm.options.d` is the preferred method for configuring the heap size for
production deployments.
It is also possible to set the heap size via the `ES_JAVA_OPTS` environment
variable. This is generally discouraged for production deployments but is useful
for testing because it overrides all other means of setting JVM options.
[source,sh] [source,sh]
------------------ ------------------