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




--
View this message in context: 
http://elasticsearch-users.115913.n3.nabble.com/Problem-to-set-up-max-locked-memory-on-CentOS-7-tp4064766.html
Sent from the ElasticSearch Users mailing list archive at Nabble.com.

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/1413026165717-4064766.post%40n3.nabble.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to