本文介绍了带有java10的logstash获取错误:无法识别的VM选项'UseParNewGC'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用java10运行logstash,就像这样的常识:
I'm running logstash with java10 ,like this commond:
但我收到此错误:
错误:无法创建Java虚拟机.
Error: Could not create the Java Virtual Machine.
错误:发生致命异常.程序将退出.
Error: A fatal exception has occurred. Program will exit.
谢谢你
对不起,不支持Java 10 ~~~~关闭〜
sorry ,not suport java 10 ~~~~ closed~
推荐答案
正如@kylekong所说,不支持java 10
.您可以安装java 8
代替.使用Ubuntu,您应该执行以下操作:
As @kylekong said, java 10
is not supported. You could install java 8
instead. Using Ubuntu you should do something like this:
sudo -i
apt-get update
apt-get install openjdk-8-jre-headless -y
apt-get install openjdk-8-jdk-headless -y
java -version
wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add -
echo "deb https://artifacts.elastic.co/packages/6.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-6.x.list
apt-get install apt-transport-https
apt-get update && apt-get install logstash
exit
然后,您可以从Logstash
开始:
sudo systemctl start logstash
参考:https://www.elastic.co/guide/en/logstash/current/installing-logstash.html
这篇关于带有java10的logstash获取错误:无法识别的VM选项'UseParNewGC'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!