Skip to content

Commit

Permalink
Add jvm option ExitOnOutOfMemoryError
Browse files Browse the repository at this point in the history
  • Loading branch information
liketic authored and original-brownbear committed Sep 5, 2017
1 parent bdd47f7 commit a14fbfc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/jvm.options
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a14fbfc

Please sign in to comment.