mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 22:14:59 +00:00
This is a follow up to a previous change which set the heap dump path for the package distributions. The observation here is that we always set the working directory of Elasticsearch to to the root of installation (i.e., Elasticsearch home). Therefore, we can specify the heap dump path relative to this directory and default it to the data directory, similar to the package distributions.
16 lines
840 B
Plaintext
16 lines
840 B
Plaintext
[[heap-dump-path]]
|
|
=== JVM heap dump path
|
|
|
|
By default, Elasticsearch configures the JVM to dump the heap on out of
|
|
memory exceptions to the default data directory (this is
|
|
`/var/lib/elasticsearch` for the <<rpm,RPM>> and <<deb,Debian>> package
|
|
distributions, and the `data` directory under the root of the
|
|
Elasticsearch installation for the <<zip-targz,tar and zip>> archive
|
|
distributions). If this path is not suitable for receiving heap dumps,
|
|
you should modify the entry `-XX:HeapDumpPath=...` in
|
|
<<jvm-options,`jvm.options`>>. If you specify a fixed filename instead
|
|
of a directory, the JVM will repeatedly use the same file; this is one
|
|
mechanism for preventing heap dumps from accumulating in the heap dump
|
|
path. Alternatively, you can configure a scheduled task via your OS to
|
|
remove heap dumps that are older than a configured age.
|