本文介绍了solr - java堆空间不足的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何人都可以帮助我找出tomcat中的错误原因。我使用solr在它。开始工作正常以后我会提出这个错误。重新启动后,工作正常。请帮我找出错误。
解决方案
尝试增加记忆
设置环境变量 JAVA_OPTS = - Xms256m -Xmx500m
这意味着堆启动大小为256 MB ,最大512 MB。或者编辑你的catalina.bat或.sh,并在这里添加一行。
你必须玩这些值,几周前我有一个SOLR索引工作,关于需要2 GB的数据,700MB堆。
Can any one help me to find out the error cause in tomcat. i m using solr in it. starting it works fine. later i will raise this error. after restarting it works fine. please help me to find out the error.
解决方案
Try to increase your memory
Either set the environment variable JAVA_OPTS="-Xms256m -Xmx500m"
which means heap start size is 256 MB, max 512 MB. Or edit your catalina.bat or .sh and add this line there.
You have to play around with these values, some weeks ago I had an SOLR indexer job, about 2 GB of data, 700MB heap were required.
这篇关于solr - java堆空间不足的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!