[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]

系统版本:ubuntu 16.04

ElasticSearch版本:5.5.2


异常现象:启动ElasticSearch,报下面异常

[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]


解决:

1、修改max_map_count值

$ sudo sysctl -w vm.max_map_count=262144

2、查看是否修改为262144

$ more /proc/sys/vm/max_map_count
262144
3、重新启动ElasticSearch


参考:

https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-cli-run-prod-mode

https://github.com/docker-library/elasticsearch/issues/111

https://www.elastic.co/guide/en/elasticsearch/reference/current/vm-max-map-count.html

http://www.cnblogs.com/276815076/p/3559089.html


猜你喜欢

转载自blog.csdn.net/farYang/article/details/77828607
今日推荐