solr - java heap space out of memory

后端 未结 4 946
误落风尘
误落风尘 2021-01-04 04:23

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. plea

4条回答
  •  鱼传尺愫
    2021-01-04 04:29

    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.

提交回复
热议问题