We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29b6301 commit d69cae2Copy full SHA for d69cae2
bin/logstash.lib.sh
@@ -35,6 +35,11 @@ setup_java() {
35
36
JAVA_OPTS="$JAVA_OPTS -XX:CMSInitiatingOccupancyFraction=75"
37
JAVA_OPTS="$JAVA_OPTS -XX:+UseCMSInitiatingOccupancyOnly"
38
+ # Causes the JVM to dump its heap on OutOfMemory.
39
+ JAVA_OPTS="$JAVA_OPTS -XX:+HeapDumpOnOutOfMemoryError"
40
+ # The path to the heap dump location, note directory must exists and have enough
41
+ # space for a full heap dump.
42
+ JAVA_OPTS="$JAVA_OPTS -XX:HeapDumpPath=${LOGSTASH_HOME}/heapdump.hprof"
43
fi
44
45
if [ "$LS_JAVA_OPTS" ] ; then
0 commit comments