• Register
0 votes
148 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]
6.9k 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.

36.1k points

Related questions

1 vote
1 answer 235 views
235 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
0 votes
1 answer 572 views
572 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 “Curl: (7) failed to connect to localhost port 9200: connection refused” How can I resolve above error?
asked Feb 20 mphil 2.3k points
1 vote
1 answer 15 views
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
1 vote
2 answers 42 views
42 views
Problem : I am very new to programming world. According to my senior a for loop will always get executed at least once even if a required condition is not met. Please find below example for your reference: for (int i=6; i <=5; i++) {     //inappropriate for this ... } According to my senior above listed loop will be executed at least once but it does not or let me know if I am I missing something?
asked Apr 6 morrisBson 3.2k points
0 votes
1 answer 40 views
40 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