简体   繁体   中英

Elasticsearch docker container: max virtual memory error

I've pulled the Elasticsearch docker image and ran it according to the instructions here .

However, the processes exits due to the following error:

max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
  • Isn't a docker container supposed to ready to run, without issues?
  • This site suggests sysctl vm.max_map_count 262144 . Is this safe?

To resolve Max virtual memory low error you need to use the below command:

sysctl -w vm.max_map_count=262144

But this setting will reset to its original value, after the host reboots. To make this change permanent you need to add vm.max_map_count to 262144 in /etc/sysctl.conf

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM