heap-dump-path.asciidoc 861 B

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