I installed Logstash by downloading and unzipping the zip file from the official website
and it occurs an error about JDK ,
Using bundled JDK: /opt/logstash-8.11.2/jdk
Unrecognized VM option 'UseConcMarkSweepGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
I tried to clean JAVA_HOME and it doesn't work.
I used the same way to install it on another machine, it worked just fine
THANKS FOR REPLAY!
The non-working machine have not install any jdk yet, and basa on the log generated by starting logstash, they use the logststash's JDK which bundled with logstash program, and the path is {logstash_root_path}/jdk
Ensure that the JAVA_HOME environment variable is not set. If it's set, it might be pointing Logstash to use a different version of Java. You can unset it with the command unset JAVA_HOME.
Check the jvm.options file in the config directory of your Logstash installation. This file contains options that are passed to the JVM. Ensure that the 'UseConcMarkSweepGC' option is not present in this file.
yes, I just found somethine in this path, I tried to install logstash using rpm package before, but it ended with an error and I thought it might have failed to install it.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.