SOLR Exception in thread "Scanner-0" java.lang.OutOfMemoryError: Java heap space

SOLR Exception in thread "Scanner-0" java.lang.OutOfMemoryError: Java heap space

SOLR Gets Hang ,当我检查 Jettystderrout.log 时,这是错误:

Exception in thread "Scanner-0" java.lang.OutOfMemoryError: Java heap space

找到了,

增加 Java 的堆大小:

您可以使用 java -Xmx4096m 将堆设置为 4 GB。

然后您可以通过他们的(.bashrc、.zshrc)文件将 export _JAVA_OPTIONS=-Xmx4096m 添加到您的 shell。

https://askubuntu.com/questions/542585/how-to-increase-java-heap-size