2017-12-12 23:24:37 +08:00
|
|
|
[[heap-dump-path]]
|
2020-10-19 22:02:22 +08:00
|
|
|
[discrete]
|
2021-04-29 09:30:32 +08:00
|
|
|
==== JVM heap dump path setting
|
2017-12-12 23:24:37 +08:00
|
|
|
|
2020-10-19 22:02:22 +08:00
|
|
|
By default, {es} configures the JVM to dump the heap on out of
|
|
|
|
memory exceptions to the default data directory. On <<rpm,RPM>> and
|
|
|
|
<<deb,Debian>> packages, the data directory is `/var/lib/elasticsearch`. On
|
|
|
|
<<targz,Linux and MacOS>> and <<zip-windows,Windows>> distributions,
|
|
|
|
the `data` directory is located under the root of the {es} installation.
|
|
|
|
|
|
|
|
If this path is not suitable for receiving heap dumps, modify the
|
2021-04-29 09:30:32 +08:00
|
|
|
`-XX:HeapDumpPath=...` entry in <<set-jvm-options,`jvm.options`>>:
|
2020-10-19 22:02:22 +08:00
|
|
|
|
|
|
|
* If you specify a directory, the JVM will generate a filename for the heap
|
|
|
|
dump based on the PID of the running instance.
|
|
|
|
* If you specify a fixed filename instead of a directory, the file must
|
2018-08-16 23:32:35 +08:00
|
|
|
not exist when the JVM needs to perform a heap dump on an out of memory
|
2020-10-19 22:02:22 +08:00
|
|
|
exception. Otherwise, the heap dump will fail.
|