Add jvm option ExitOnOutOfMemoryError

Fixes #8138
This commit is contained in:
liketic 2017-09-05 15:55:19 +08:00 committed by Armin Braun
parent d5530a42c4
commit eca636d4cb

View file

@ -62,6 +62,9 @@
# heap dumps are created in the working directory of the JVM
-XX:+HeapDumpOnOutOfMemoryError
# exit on out-of-memory error
-XX:+ExitOnOutOfMemoryError
# specify an alternative path for heap dumps
# ensure the directory exists and has sufficient space
#-XX:HeapDumpPath=${LOGSTASH_HOME}/heapdump.hprof