Elastic JVM heap file dumps deletion

Elasticsearch ships withs -XX:+HeapDumpOnOutOfMemory enabled, this leads to the heap dumps being generated whenever the JVM encounters an OutOfMemoryError.

These generate hprof files in with default location as /var/lib/elasticsearch/ the question i have is how to safely delete these files without affecting the system(running elasticsearch instance).


Elasticsearch does not open them so you can just delete heap dumps like any other file with rm on the command line.

Heap dumps are often useful to understand why the application ran out of memory. I'd advise against it but if you are a 100% certain that you don't want them you can disable it explicitly by setting -XX:-HeapDumpOnOutOfMemory instead.



This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.