版本信息:
centos7
elasticsearch:5.6.4
问题:如题,es可以正常开启,然而过一段时间会自动关闭。
并没有好的解决思路,网上也没有找到太多的分析过程和思路,参考不足。
解决方案:
vim /etc/elasticsearch/jvm.options
将jvm.options中原先的jvm内存2g修改为512m,如图:
ps:正常情况下可以解决,否则可以尝试加大linux内存。
jvm堆内存设置:https://www.elastic.co/guide/en/elasticsearch/reference/current/heap-size.html