无法使用 Java 9 启动 solr



我无法在Java 9上启动solr,出现以下错误。

[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.

这是切换到统一日志记录系统以记录 GC 相关消息的结果。 有相当多的-XX选项已经消失,更多细节可以在这里找到:

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

您需要删除 -XX:+PrintHeapAtGC 标志。 Solr JIRA上有一个错误:

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

最新更新