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:
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
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
And the last try was to put it on /etc/elasticsearch/elasticsearch.yml
And always the same result after restart the service.
Any idea will be more than welcome.