无法使用Java 9启动solr

前端之家收集整理的这篇文章主要介绍了无法使用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

猜你在找的Linux相关文章