启动 ES 报错 ERROR: [1] bootstrap checks failed [1]: max virtual memory areas vm.max_

当启动 ES 时报错如下:

ERROR: [1] bootstrap checks failed
[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
{"type": "server", "timestamp": "2019-12-01T11:34:18,422+0000", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "geektime", "node.name": "es7_02",  "message": "stopping ..."  }

解决方案:

编辑 /etc/security/limits.conf,追加以下内容;
 

* soft nofile 65536
* hard nofile 65536

启动 ES 报错 ERROR: [1] bootstrap checks failed [1]: max virtual memory areas vm.max__第1张图片

编辑 /etc/sysctl.conf,追加以下内容:

vm.max_map_count=655360

启动 ES 报错 ERROR: [1] bootstrap checks failed [1]: max virtual memory areas vm.max__第2张图片

保存后,执行:

sysctl -p

重新启动,成功。

启动 ES 报错 ERROR: [1] bootstrap checks failed [1]: max virtual memory areas vm.max__第3张图片

 

你可能感兴趣的:(Elastic,Stack,ElasticSearch,ES,ElasticSearch,ElasticSearch,启动报错ootstrap,che,java,outOfMemory,报错)