Skip to content

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

Closed
wants to merge 4 commits into from

Conversation

suyograo
Copy link
Contributor

Fix #4192

@ph
Copy link
Contributor

ph commented Nov 17, 2015

LGTM

@ph
Copy link
Contributor

ph commented Nov 17, 2015

OOOPSS @suyograo maybe adding this to windows too? https://github.com/elastic/logstash/blob/master/bin/setup.bat

@ph
Copy link
Contributor

ph commented Nov 17, 2015

Nevermind last comment, I checked an old version of the file.

Windows seems to support that for some time.

@ph
Copy link
Contributor

ph commented Nov 17, 2015

Slow start today ☕ ☕ ☕ ☕

https://github.com/elastic/logstash/blob/master/bin/setup.bat#L51 <- we should enable that line by default too ?

@suyograo
Copy link
Contributor Author

@ph ping. I chnaged the win file path, because $LS_HOME/logs does not exist

@@ -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"
Copy link
Contributor

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 ?

@ph
Copy link
Contributor

ph commented Nov 17, 2015

LGTM, happy heap heap heap hurray dump!

@elasticsearch-bot
Copy link

Merged sucessfully into master 2.1 2.x!

@suyograo suyograo closed this in d69cae2 Nov 17, 2015
suyograo added a commit that referenced this pull request Nov 17, 2015
suyograo added a commit that referenced this pull request Nov 17, 2015
suyograo added a commit that referenced this pull request Nov 17, 2015
suyograo added a commit that referenced this pull request Nov 17, 2015
suyograo added a commit that referenced this pull request Nov 17, 2015
suyograo added a commit that referenced this pull request Nov 17, 2015
suyograo added a commit that referenced this pull request Nov 17, 2015
suyograo added a commit that referenced this pull request Nov 17, 2015
suyograo added a commit that referenced this pull request Nov 17, 2015
suyograo added a commit that referenced this pull request Nov 17, 2015
suyograo added a commit that referenced this pull request Nov 17, 2015
@suyograo suyograo removed 2.1 labels Nov 17, 2015
@suyograo suyograo removed the v2.1.0 label Nov 17, 2015
@yodog
Copy link

yodog commented Feb 16, 2016

how do i disable this?
it's taking too much space on disk, and i'm tired of deleting the file manually.

@suyograo suyograo deleted the fix/4192 branch August 25, 2016 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants