Hi,
I'm trying to setup the max locked memory to unlimited on Centos 7 but all what I did doesn't work.
This is my current setup:
On /etc/security/limits.conf
I add
elasticsearch soft memlock unlimited
elasticsearch hard memlock unlimited
On my /etc/passwd I assing a bash shell to my elasticsearch user and I did a
sudo elasticsearch
ulimit -l
unlimited
So it seem the user see the change.
Then I restart elasticsearch ( first I did a logout/login to be sure also from root user the change is present ) ,and with the cat /proc/elasticsearch_PID/limits I have
Max locked memory 65536 65536 bytes
Also I try to but on my root .bashrc
export ES_HEAP_SIZE=4g
export MAX_LOCKED_MEMORY=unlimited
And the last try was to put it on /etc/elasticsearch/elasticsearch.yml
ES_HEAP_SIZE: 4g
MAX_LOCKED_MEMORY: unlimited
And always the same result after restart the service.
Any idea will be more than welcome.
Best