• Register
0 votes
220 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 5 3
6,930 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.

9 7 4
38,600 points

Related questions

1 vote
1 answer 502 views
502 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 18 views
18 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, 2020 LizzyM 6.1k points
0 votes
1 answer 1.3K views
1.3K 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, 2020 mphil 2.3k points
1 vote
2 answers 136 views
136 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, 2020 morrisBson 3.2k points
0 votes
1 answer 1.3K views
1.3K views
Problem : I want to send a JSON to elasticSearch. I am trying using Postman and SOAPUI The data I am using is as follows: [{"column1": "abc", "column2": "def", "column3": "dghi", "column4": "jkl", "column5": "mno"}, {"column1": "pqr", "column2": "stu", "column3" ... "def", "column3": "dghi", "column4": "jkl", "column5": "mno"} Then it works fine. I am unable to understand that what is going wrong.
asked Nov 20, 2019 peterlaw 6.9k points
0 votes
1 answer 53 views
53 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
0 votes
1 answer 15 views
15 views
Problem: Hi there! I have been learning to program for a long time now and I recently learned inheritance in Java. I wrote the following program for practice: class Institutions { public void print_institutions() { System.out.println("This is an institution"); } } class ... , I have no idea what is causing this error. Can anybody here please clarify the cause of the error and its solution? Thanks!
asked Dec 29, 2020 Code Learner 5.1k points
0 votes
1 answer 41 views
41 views
Problem: Hi, i upgraded the wordpress to Wordpress 5..2.2 but it popups a notification that my server is running an older version. Can anyone suggest me the best solution.
asked Nov 2, 2020 prog_learner 2.5k points
0 votes
1 answer 20 views
20 views
Hi, when i try to execute this code i always get the error message from above, and i really want to know why, already tried to put a &ldquo;public class XXXX&rdquo; before the code, but not work anyway. public static String invertirPalabras(String cadena) { cadena += " "; String ... + palabra; if (cadena.charAt(i) == ' ') { nuevaCadena += palabra; palabra = ""; } } return nuevaCadena.trim(); }
asked Aug 2, 2020 Daniel Aguilar