Bootstrap Memory True Error

by Devansh


Posted on 06 Oct 2018 11:10:37 (2 months ago)




After installing Elastic Search in system if we start Elastic Search it will work because by default Bootstrap Memory of Elastic Search is false.

But once we change the setting to true then it will not work because your memory is not locked and some other step also needed.

So, below are the notes which you need to do after turning on bootstrap memory.

sudo gedit /etc/security/limits.conf


After that in 'gedit' paste the below line in the end,

elasticsearch - nofile 65536


Now, type the below command to overwrite the Elastic Search settings,

sudo systemctl edit elasticsearch


After above command don't get panic you will get blank screen paste the below line to that screen,

[Service]
LimitMEMLOCK=infinity


After that execute the below command,

sudo systemctl daemon-reload


This command is optional, because in Ubuntu by default selinux is diabled but  in CentOS it is enabled so we need to disable the selinux and if you are a CentOS user than execute this command,

sudo gedit /etc/sysconfig/selinux

and edit the status of selinux to 'disabled'.

After that restart your system.