I am unable to start solr on Java 9, getting following error.
[shahid@host172 logs]$ tail -20 solr-8983-console.log
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Java HotSpot(TM) 64-Bit Server VM warning: Option UseParNewGC was deprecated in version 9.0 and will likely be removed in a future release.
Unrecognized VM option 'PrintHeapAtGC'
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
This is a consequence of the switch to the Unified Logging system for logging of GC related messages. There are quite a few -XX options that have disappeared, more detail can be found here:
https://bugs.openjdk.java.net/browse/JDK-8145092
You will need to remove the -XX:+PrintHeapAtGC flag. There is a bug on the Solr JIRA for this:
https://issues.apache.org/jira/browse/SOLR-10184
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With