Unrecognized VM option 'UseConcMarkSweepGC

Hello

I'm trying to use logstash in Windows 10 but I am stuck at this error:

PS C:\logstash-7.9.3\bin> .\logstash -e 'input {stdin{}} output {stdout{}}'
Unrecognized VM option 'UseConcMarkSweepGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

PS C:\logstash-7.9.3\bin> Write-Host $env:JAVA_HOME
C:\jdk-15.0.1

PS C:\logstash-7.9.3\bin> java -version
java version "1.8.0_271"
Java(TM) SE Runtime Environment (build 1.8.0_271-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.271-b09, mixed mode)

Can anyone help?

Jvm option UseConcMarkSweepGC has been removed as of Java 15. You could degrade your JDK.

Isn't this something that should be included in the Logstash download page?

Right now it only says "Java 8 is required for Logstash 6.x and 5.x. " saying nothing for Logstash 7.x and the installation steps also make no mention of Java requirements.

Can I even run two JDK in one computer? ElasticSearch comes with JDK 15 provided in the .zip file, but Logstash, part of the ELK stack, does noot work with JDK 15?

Should I ignore the JDK in ElasticSearch and install ...what?

Yes, you can.

You can also edit the logstash jvm.options file to remove the unsupported option.

1 Like

Ok thank you.

I opted to uninstalling 15 and installing 8. Everything works off that now and it seems to be fine.

1 Like

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