-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Add option for JVM to dump its heap on OutOfMemory #4205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
LGTM |
OOOPSS @suyograo maybe adding this to windows too? https://github.com/elastic/logstash/blob/master/bin/setup.bat |
Nevermind last comment, I checked an old version of the file. Windows seems to support that for some time. |
Slow start today ☕ ☕ ☕ ☕ https://github.com/elastic/logstash/blob/master/bin/setup.bat#L51 <- we should enable that line by default too ? |
@ph ping. I chnaged the win file path, because |
@@ -48,7 +48,7 @@ REM Causes the JVM to dump its heap on OutOfMemory. | |||
set JAVA_OPTS=%JAVA_OPTS% -XX:+HeapDumpOnOutOfMemoryError | |||
REM The path to the heap dump location, note directory must exists and have enough | |||
REM space for a full heap dump. | |||
REM JAVA_OPTS=%JAVA_OPTS% -XX:HeapDumpPath="$LS_HOME/logs/heapdump.hprof" | |||
REM JAVA_OPTS=%JAVA_OPTS% -XX:HeapDumpPath="$LS_HOME/heapdump.hprof" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be set
not REM
?
LGTM, happy heap heap heap hurray dump! |
Merged sucessfully into master 2.1 2.x! |
how do i disable this? |
Fix #4192