Skip to content
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

Print JVM arguments on startup to help troubleshooting #875

Closed
kroepke opened this issue Jan 14, 2015 · 3 comments
Closed

Print JVM arguments on startup to help troubleshooting #875

kroepke opened this issue Jan 14, 2015 · 3 comments
Assignees
Milestone

Comments

@kroepke
Copy link
Member

@kroepke kroepke commented Jan 14, 2015

Often when supporting folks the question arises which specific JVM parameters are set.

Log them on startup so we don't have to guess which heap sizes or GC settings are in use.

@kroepke kroepke self-assigned this Jan 14, 2015
@kroepke kroepke added this to the 1.0.0 milestone Jan 14, 2015
@kroepke
Copy link
Member Author

@kroepke kroepke commented Jan 14, 2015

prints stuff like:
2015-01-14 21:38:25,264 INFO : org.graylog2.bootstrap.CmdLineTool - Running with JVM arguments: -Xmx1g -XX:MaxPermSize=128m -Djava.library.path=lib/sigar-1.6.4 -Didea.launcher.port=7536 -Didea.launcher.bin.path=/Applications/IntelliJ IDEA 14.app/Contents/bin -Dfile.encoding=UTF-8

kroepke added a commit that referenced this issue Jan 14, 2015
fixes #875
@kroepke kroepke closed this Jan 14, 2015
@joschi
Copy link
Contributor

@joschi joschi commented Jan 14, 2015

FWIW, they're also shown in the resource at /system/stats/jvm.

@lennartkoopmann
Copy link
Member

@lennartkoopmann lennartkoopmann commented Jan 21, 2015

🎉 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants