編輯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