# service solr restart
Java not found, or an error was encountered when running java.
A working Java 8 JRE is required to run Solr!
Please install latest version of Java 8 or set JAVA_HOME properly.
Command that we tried: ‘java -version’, with response:
Error occurred during initialization of VM
java.lang.OutOfMemoryError: unable to create new native threadDebug information:
JAVA_HOME: N/A
Active Path:
Java not found, or an error was encountered when running java.
A working Java 8 JRE is required to run Solr!
Please install latest version of Java 8 or set JAVA_HOME properly.
Command that we tried: ‘java -version’, with response:
Error occurred during initialization of VM
java.lang.OutOfMemoryError: unable to create new native threadDebug information:
JAVA_HOME: N/A
Active Path:
出现这种问题的原因时solr内存配置不足,参考: