• Register
0 votes

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]
6.9k points

Please log in or register to answer this question.

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.

38.6k points

Related questions

0 votes
1 answer 14 views
Problem: I am getting this error: es01 | {"type": "server", "timestamp": "2019-09-18T17:31:42,267+0000", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "es01", "message": "starting ..." } ... /share/elasticsearch/data volumes: esdata01: driver: local esdata02: driver: local does anyone know how I can increase the memory of the cluster and fix the error?
asked Apr 25 sumaiya simi 43.9k points
0 votes
1 answer 29 views
Problem: Is anyone able to help me with the following problem : Failed to connect to remote VM connection refused ?
asked Jun 5 Edna Garcia 240 points
0 votes
1 answer 53 views
Problem: Can someone please help fix this > Google drive "too many users have viewed or downloaded this file recently"
asked May 1 ummeshani 10.8k points
0 votes
1 answer 6 views
Problem : Download quota exceeded for this file so you can't download it at this time.
asked Jul 4 Isac Christiaan 103k points
0 votes
1 answer 11 views
Problem: Why this warning: soft rlimits too low. number of files is 256, should be at least 1000?
asked Apr 13 jamuna1 30.2k points
0 votes
1 answer 22 views
Problem: Need an answer for this : Failed to execute operation: unit file is masked
asked May 24 Sawyer Parviz 168k points
0 votes
1 answer 41 views
Problem: How to solve this >Error: keytool is not recognized as an internal/ external command and operable program/batch file ?
asked May 4 salim1 60.6k points
0 votes
1 answer 17 views
Problem: I will be glad if you help me on > Boot hangs: A start job is running .
asked May 4 salim1 60.6k points
0 votes
1 answer 9 views
Problem: Failed to start lsb apache2 web server?
asked Jul 24 Mezbah 130k points
0 votes
1 answer 4 views
Problem : What is the best way for me to address this problem: Failed to stop iptables.service: unit iptables.service not loaded?
asked Jun 19 Sifat55 108k points