Elasticsearch docker container: max virtual memory error

Viewed 15

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?
1 Answers

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

Related