Graylog2 / graylog-ansible-role

Ansible role which installs and configures Graylog
Apache License 2.0
212 stars 126 forks source link

default GRAYLOG_SERVER_JAVA_OPTS is wrong #166

Closed bpbp-boop closed 3 years ago

bpbp-boop commented 3 years ago

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 commented 3 years ago

@bpbp-boop Thanks for letting us know!

bpbp-boop commented 3 years ago

Thanks for the quick fix!