solr service shut down for no apprent reason

守給你的承諾、 提交于 2019-12-12 03:29:10

问题


I'm using the solr5.3.1 for full text searching.And I'm using PHP with solarium library to communicate with solr service.It is doing well in most of the time.But it was shut down twice for no reason.I check the log files,and find no error message.So I was curious to know is there are some reasons will cause solr to shut down itself? I can show you more detail information if you need to help me solve the problem,just tell me in the comments.Thanks so much!


回答1:


Thanks for @MatsLindh's comment! I checked my syslog(/var/log/messages),and found this Out of memory: Kill process 23076 (java) score 49 or sacrifice child.JVM was killed because of OOM.

now, I run echo -17 > /proc/{solr_process_pid}/oom_adj to avoid solr process being killed again.



来源:https://stackoverflow.com/questions/36255110/solr-service-shut-down-for-no-apprent-reason

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!