我无法在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.
答案 0 :(得分:2)
这是切换到统一记录系统以记录GC相关消息的结果。有很多-XX选项已经消失,更多细节可以在这里找到:
https://bugs.openjdk.java.net/browse/JDK-8145092
您需要删除-XX:+ PrintHeapAtGC标志。 Solr JIRA上有一个错误: