Failed to start solr using Java 9

I cannot run solr on Java 9, getting the 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. 
+5
source share
1 answer

This is a consequence of the transition to a unified logging system for recording messages related to GC. There are quite a few -XX options that have disappeared, more details can be found here:

https://bugs.openjdk.java.net/browse/JDK-8145092

You will need to remove the -XX: + PrintHeapAtGC flag. There is an error on Solr JIRA:

https://issues.apache.org/jira/browse/SOLR-10184

+1
source

Source: https://habr.com/ru/post/1269425/


All Articles