elasticsearch/docs/reference/commands/cli-jvm-options.asciidoc

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

15 lines
538 B
Plaintext
Raw Normal View History

[[cli-tool-jvm-options-{tool-name}]]
[float]
==== JVM options
CLI tools run with 64MB of heap. For most tools, this value is fine. However, if
2024-09-23 23:38:51 +08:00
needed this can be overridden by setting the `CLI_JAVA_OPTS` environment variable.
For example, the following increases the heap size used by the
`pass:a[elasticsearch-{tool-name}]` tool to 1GB.
[source,shell,subs=attributes+]
--------------------------------------------------
export CLI_JAVA_OPTS="-Xmx1g"
bin/elasticsearch-{tool-name} ...
--------------------------------------------------