I'm running logstash with java10 ,like this commond:
./logstash -f std_std.conf
but I get this error:
Unrecognized VM option 'UseParNewGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Thank you so mach
sorry ,not suport java 10 ~~~~ closed~
In the Elastic documentation for installing Logstash, it was mentioned that Logstash requires Java 8.
You can download Java 8 and try again. Hope it helps.
According to the install guide... it is supported.
https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html
"Elasticsearch requires Java 8 or later. Use the official Oracle distribution or an open-source distribution such as OpenJDK."
You probably have Java 10 (not proper version). You should install Java 8 (Ubuntu solution):
It won't automatically change your default java compiler. Your should make it by your own. Change default java compiler:
Type 0 or 1 or 2 ... option. Probably last entry. Now:
As @kylekong said,
java 10
is not supported. You could installjava 8
instead. Using Ubuntu you should do something like this:Then you can start
Logstash
with:Reference:
https://www.elastic.co/guide/en/logstash/current/installing-logstash.html