I was upgrading whole stack to 7.2.0 and got following error
Updating / installing...
1:logstash-1:7.2.0-1 ################################# [ 17%]
Using provided startup.options file: /etc/logstash/startup.options
Unrecognized VM option 'UseParNewGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Unable to install system startup script for Logstash.
Failed to load /usr/lib/oracle/12.2/client64/lib/ojdbc8.jar {:exception=>#<TypeError: failed to coerce jdk.internal.loader.ClassLoaders$AppClassLoader to java.net.URLClassLoader
OK fixed it.
just incase putting it here incase someone came across same
in logstash conf dir, jvm.options file do this
#-XX:+UseParNewGC ------> comment this
#-XX:+UseConcMarkSweepGC ------> comment this
-XX:+UseG1GC ----> Add this line
copy your original jar file to logstash jar dir. or you can create a link there.
java version "12.0.1" 2019-04-16
Java(TM) SE Runtime Environment (build 12.0.1+12)
Java HotSpot(TM) 64-Bit Server VM (build 12.0.1+12, mixed mode, sharing)
Do you think I got wrong java? But this was only problem with jdbc and everything else is working fine
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.