Reputation: 91
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.
Upvotes: 6
Views: 5626
Reputation: 3392
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
Upvotes: 2