-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
with java10 I get these error :Unrecognized VM option 'UseParNewGC' #9316
Comments
We're now tracking Java10 support here: #9345 . Thanks for opening the issue. |
(+) OSX High Sierra 10.13.4 (17E202 java -versionjava version "10.0.1" 2018-04-17 bin/logstash -f logstash.confUnrecognized VM option 'UseParNewGC' |
I am too getting the same issue Unrecognized VM option 'UseParNewGC' |
I'm getting this one too on Sierra 10.13.3, downloaded ES 2.3.3 source and extracted. Got this error messages when trying to run
Any solutions please? |
My problem solved. The version of java is not compatible. This one here works for me. ES got started properly. Hope this could help somebody. |
I meet a same problem too; Any solutions? ➜ logstash-6.3.1 ./bin/logstash -e 'input { stdin {} } output {stdout {}}'
Unrecognized VM option 'UseParNewGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
➜ logstash-6.3.1 java --version
java 10.0.1 2018-04-17
Java(TM) SE Runtime Environment 18.3 (build 10.0.1+10)
Java HotSpot(TM) 64-Bit Server VM 18.3 (build 10.0.1+10, mixed mode) |
+1 Unrecognized VM option 'UseParNewGC' My java versions is |
The only fix for now is use the |
logstash doesn't work with jdk 9+, please refer to #9345 on current limitations |
'with java10 I get these error :Unrecognized VM option 'UseParNewGC' #9316' elastic/logstash#9316 - Added a workaround to problem in which the logstash systemd unit does not get installed automatically. See known issue: 'Missing systemd scripts in 6.2.4 #9403' elastic/logstash#9403
yah I just hit this issue too, hope we get a perm solution soon. While I have no problem installing JDK1.8 it would be nice to have it check the version before continuing if it is not yet supported.
|
I think the problem can be fixed for Java versions 9+ by changing 2 lines of code in the jvm.options file in the config folder. |
@Leakkim84 I can confirm it at least gets logstash running when using java 10 |
It probably would run weren't it for some stupid check in jruby:/jruby-ssl "unsupported Java version "10", defaulting to 1.7" |
@Leakkim84 That fixed the same issue when using Java 11. Thanks! |
Seems to only work on Java 1.8 for nowGetting this error with OpenJDK 11, is OpenJDK supported? D:\logstash\logstash-6.5.4\bin>logstash.bat D:\logstash\logstash-6.5.4\bin>java --version Getting the same error with JRE D:\logstash\logstash-6.5.4\bin>echo %JAVA_HOME% D:\logstash\logstash-6.5.4\bin>java --version D:\logstash\logstash-6.5.4\bin>setup.bat D:\logstash\logstash-6.5.4\bin>logstash.bat -f mypipeline.conf D:\logstash\logstash-6.5.4\bin> |
Worked for me... err well, spoke to soon. Running into that jruby issue above. |
@PS-StuartZahn Any luck? Running into the same issue with Java Open SDK 11.01 |
Any update for that? |
At this point, there is a tangle of dependencies that need to get resolved, and I am in the process of chasing that down.
Additionally, some APIs within jruby have changed, so we are updating some development dependencies to ensure that tests pass. Development is ongoing in the public After that, there will be some java deprecations to chase down, such as the garbage collector settings described above. The goal is to have all of this together by the time the 7.0.0 beta drops in a few weeks, and then to work on backporting to the 6.x series. |
Worked for me as well. |
I've also been running into the |
Where is the jvm.options file located? |
Running JRE8u201/202 no longer works for me. There is an April 2019 update that affects corporate customers(according to the installer splash screen), and I have had to use the solution provided by @Leakkim84 .
Only the first two lines were present in my config, but removing UseParNewGCRemove & UseConcMarkSweepGCAdd resolved this issue for me. |
I got the same error. Run sudo nano /usr/share/elasticsearch/bin/elasticsearch.in.sh and comment out that VM arg #ES_GC_OPTS="$ES_GC_OPTS -XX:+UseParNewGC" |
amazing, it works |
Thank you very much. |
it failed for on JDK 11 but it worked for me on JDK 1.8 thanks. |
This is resolve by running below command: set JAVA_PARAMETERS=-XX:+UseG1GC |
I have tried with Java 11, 13 and 17. I am installing logstash version 5.2.0 on ubuntu 20 and getting |
1.download logstash-6.2.3.zip
2.unzip
3. java -version : 10
3.use this command : ./bin/logstash -f logstash.conf
get these error:
Unrecognized VM option 'UseParNewGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Please help
Thank you so much ~
==============================
not suport java 10 ~~~~ closed~
The text was updated successfully, but these errors were encountered: