1. 程式人生 > >max virtual memory areas vm.max_map_count [65530]

max virtual memory areas vm.max_map_count [65530]

ELK

一、故障現象
# 啟動ELK容器時報錯:
# docker run -p 5601:5601 -p 9200:9200 -p 5044:5044 -it --name elk sebp/elk
[1] bootstrap checks failed
[1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
[2018-04-22T08:01:27,853][INFO ][o.e.n.Node               ] [KFCeZCv] stopping ...
[2018-04-22T08:01:27,876][INFO ][o.e.n.Node               ] [KFCeZCv] stopped
[2018-04-22T08:01:27,876][INFO ][o.e.n.Node               ] [KFCeZCv] closing ...
[2018-04-22T08:01:27,910][INFO ][o.e.n.Node               ] [KFCeZCv] closed

二、解決方法

# sudo sysctl -w vm.max_map_count=262144
vm.max_map_count = 262144

再次運行容器:
啟動ELK:

# docker run -p 5601:5601 -p 9200:9200 -p 5044:5044 -it --name elk sebp/elk

技術分享圖片

max virtual memory areas vm.max_map_count [65530]