How to make sure Solr/Lucene won't die with java.lang.OutOfMemoryError?

前端 未结 8 815
失恋的感觉
失恋的感觉 2021-02-04 06:31

I\'m really puzzled why it keeps dying with java.lang.OutOfMemoryError during indexing even though it has a few GBs of memory.

Is there a fundamental reason why it needs

8条回答
  •  天命终不由人
    2021-02-04 06:54

    • navigate to C:\Bitnami\solr-4.7.2-0\apache-solr\scripts
    • open up serviceinstall.bat (with notepad++ or another program)
    • Either add or update the following properties:- ++JvmOptions=-Xms1024M ++JvmOptions=-Xmx1024M
      • from the command prompt in that window, run serviceinstall.bat REMOVE
      • then run serviceinstall.bat INSTALL
      • Hope that helpw!

提交回复
热议问题