Logstash with puppet module and OpenJDK gives install error

We just switched from Oracle Java to OpenJDK for licensing issues.
The same Puppet code now results in an installation error:

Notice: /Stage[main]/Logstash::Service/Exec[logstash-system-install]/returns: Unrecognized VM option 'UseParNewGC' Notice: /Stage[main]/Logstash::Service/Exec[logstash-system-install]/returns: Error: Could not create the Java Virtual Machine. Notice: /Stage[main]/Logstash::Service/Exec[logstash-system-install]/returns: Error: A fatal exception has occurred. Program will exit. Notice: /Stage[main]/Logstash::Service/Exec[logstash-system-install]/returns: Unable to install system startup script for Logstash.

I know that for Java one should remove the lines with
-XX:+UseConcMarkSweepGC -XX:+UseParNewGC
but the Puppet-module keeps inserting them... It's default. :frowning:

Any ideas how to remove these?

The default is for the /etc/logstash/jvm.options-file
When I remove the lines from the generated file, logstash will start.

I switched back for logstash to Oracle JDK where the Puppet:Logstash module works fine.

But I'm anxious to know how to work around this problem where two GC params still pop up in the /etc/logstash/jvm.options-file

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.