编辑:elasticsearch-2.3.3/bin/ elasticsearch
加上:
export ES_HEAP_SIZE=10g
或者启动的时候设置参数,确保Xmx和Xms大小相等:
./bin/elasticsearch -Xmx10g -Xms10g
官网说明:
https://www.elastic.co/guide/en/elasticsearch/guide/current/heap-sizing.html
下面这篇博客是对官网的翻译:
http://zhaoyanblog.com/archives/744.html
时间: 2024-10-22 17:31:47