Programmers learn & share
0 votes
100 views

Problem :

I am facing an issue with a systemd config for ElasticSearch as follows:
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
by (6.9k points)   | 100 views

1 Answer

0 votes

Solution :

 I had this faced this problem from an application running in a docker container. 

Firstly no need to increase the virtual memory for Elasticsearch at the container level, just need to do it for the host machine by running following command:

sudo sysctl -w vm.max_map_count=262144

and after running this command just restart your docker-containers.

Setting this max_map_count this way will not persist upon the restart of the machine on which is running the docker container so you need to save it in a more persistent manner.

by (36.1k points)  
2,245 questions
2,807 answers
60 comments
241 users