• 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 5 3
6,930 points

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.

9 7 4
38,600 points

Related questions

1 vote
1 answer 350 views
Problem : Getting following error related to content-type header {"error":"content-type header [application/x-www-form-urlencoded] is not supported","status":406} How to resolve it?
asked Nov 11, 2019 peterlaw 6.9k points
1 vote
1 answer 15 views
Problem: Hi want a create a project for my asssinment and I faced a lot of issue about insufficient memory for the Java Runtime Environment to continue error. The issue: <REMOTE>># There is insufficient memory for the Java Runtime Environment to continue. <REMOTE>># ... of user threads are consumed based on the allocation Can anyone explain me why this is happening and help me to solve this out.
asked Apr 8 LizzyM 6.1k points
0 votes
1 answer 966 views
Problem : I am very new to Curl. I have recently started learning Curl. Whenever I try to connect to the Elasticsearch using below command curl http://localhost:9200 it is working properly. But when I try to run the following command curl http://IpAddress: ... showing me below error &ldquo;Curl: (7) failed to connect to localhost port 9200: connection refused&rdquo; How can I resolve above error?
asked Feb 20 mphil 2.3k points
0 votes
1 answer 41 views
Problem : Facing migration error on Laravel 5.4 with php artisan make:auth command as follows: syntax error or access violation: 1071 specified key was too long; max key length is 767 bytes
asked Nov 13, 2019 peterlaw 6.9k points