heap-dump-path.asciidoc 842 B

1234567891011121314151617
  1. [discrete]
  2. ==== JVM heap dump path setting
  3. By default, {es} configures the JVM to dump the heap on out of
  4. memory exceptions to the default data directory. On <<rpm,RPM>> and
  5. <<deb,Debian>> packages, the data directory is `/var/lib/elasticsearch`. On
  6. <<targz,Linux and MacOS>> and <<zip-windows,Windows>> distributions,
  7. the `data` directory is located under the root of the {es} installation.
  8. If this path is not suitable for receiving heap dumps, modify the
  9. `-XX:HeapDumpPath=...` entry in <<set-jvm-options,`jvm.options`>>:
  10. * If you specify a directory, the JVM will generate a filename for the heap
  11. dump based on the PID of the running instance.
  12. * If you specify a fixed filename instead of a directory, the file must
  13. not exist when the JVM needs to perform a heap dump on an out of memory
  14. exception. Otherwise, the heap dump will fail.