编辑ElasticSearch中bin目录下

vi elasticsearch中

加上   export ES_HEAP_SIZE=24g

修改配置文件 config/elasticsearch.yaml

  bootstrap.mlockall: true

 

具体参照文档:

官方:https://www.elastic.co/guide/en/elasticsearch/guide/current/heap-sizing.html

翻译:http://openskill.cn/article/304

相关文章: