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

default GRAYLOG_SERVER_JAVA_OPTS is wrong #166

Closed
bpbp-boop opened this issue Mar 16, 2021 · 2 comments
Closed

default GRAYLOG_SERVER_JAVA_OPTS is wrong #166

bpbp-boop opened this issue Mar 16, 2021 · 2 comments

Comments

@bpbp-boop
Copy link

bpbp-boop commented Mar 16, 2021

Hi, I tried to use this role and ran into the following issue (using the version of java the role installed on Centos 8 Stream)

Mar 17 10:11:21 graylog01 graylog-server[21095]: Unrecognized VM option 'CMSConcurrentMTEnabled'
Mar 17 10:11:21 graylog01 graylog-server[21095]: Error: Could not create the Java Virtual Machine.
Mar 17 10:11:21 graylog01 graylog-server[21095]: Error: A fatal exception has occurred. Program will exit.

[root@graylog01 opt]# cat "/etc/sysconfig/graylog-server"
JAVA=/usr/bin/java
GRAYLOG_SERVER_JAVA_OPTS="-Djava.net.preferIPv4Stack=true -Xms1500m -Xmx1500m -XX:NewRatio=1 -server -XX:+ResizeTLAB -XX:+CMSConcurrentMTEnabled -XX:+CMSClassUnloadingEnabled -XX:-OmitStackTraceInFastThrow"
GRAYLOG_SERVER_ARGS=""
GRAYLOG_COMMAND_WRAPPER=""

[root@graylog01 opt]# java -version
openjdk version "15.0.2" 2021-01-19
OpenJDK Runtime Environment (build 15.0.2+7-27)
OpenJDK 64-Bit Server VM (build 15.0.2+7-27, mixed mode, sharing)
@malcyon
Copy link
Contributor

malcyon commented Mar 17, 2021

@bpbp-boop Thanks for letting us know!

@bpbp-boop
Copy link
Author

Thanks for the quick fix!

jrunu pushed a commit to jrunu/graylog-ansible-role that referenced this issue Apr 16, 2021
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

No branches or pull requests

2 participants