# Bootstrap.mlockall: true in elastisearch not take effect?

**URL:** <https://discuss.elastic.co/t/bootstrap-mlockall-true-in-elastisearch-not-take-effect/57570>\
**Category:** Elasticsearch\
**Created:** [August 9, 2016, 9:11am UTC](https://discuss.elastic.co/t/bootstrap-mlockall-true-in-elastisearch-not-take-effect/57570 "2016-08-09T09:11:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![figo10203](https://avatars.discourse-cdn.com/v4/letter/f/e19b73/32.png) [@figo10203](https://discuss.elastic.co/u/figo10203)\
**Post date:** [August 9, 2016, 9:11am UTC](https://discuss.elastic.co/t/bootstrap-mlockall-true-in-elastisearch-not-take-effect/57570/1 "2016-08-09T09:11:37Z")

</div>

Hi, as es official web site stated, it is strongly recommend that **bootstrap.mlockall: true** should be set in elasticsearch.yaml file. but after restart es, I find that the setting is not effective as below graph

 ![](https://us1.discourse-cdn.com/elastic/original/2X/b/bbebf1dfdf4a2e0747a7b5b86293c4f3c4527dcc.png)

es is restarted with an user rui rather than root, I doubt that rui has no permission to make **bootstrap.mlockall: true** to take effect. So what I can do with that?

Any help will be appreciated!

Thanks a lot in advance

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 10, 2016, 2:06am UTC](https://discuss.elastic.co/t/bootstrap-mlockall-true-in-elastisearch-not-take-effect/57570/2 "2016-08-10T02:06:01Z")

</div>

Where did you set it? Did you set heap min/max the same?

---

<div class="post-metadata">

**Author:** ![figo10203](https://avatars.discourse-cdn.com/v4/letter/f/e19b73/32.png) [@figo10203](https://discuss.elastic.co/u/figo10203)\
**Post date:** [August 10, 2016, 3:24am UTC](https://discuss.elastic.co/t/bootstrap-mlockall-true-in-elastisearch-not-take-effect/57570/3 "2016-08-10T03:24:19Z")

</div>

I set the property in elasticsearch.yml as below graph

 ![](https://us1.discourse-cdn.com/elastic/original/2X/f/fc1c8d2fe3693b2f80b93aa39d5a2dcacee3ff3f.png)  
For heap, I set the envrionment ES\_HEAP\_SIZE=3g.  
And I start ES by the user **rui** with Supervisord  
 ![](https://us1.discourse-cdn.com/elastic/original/2X/4/4d9abe0e281770ff2ad590fe41c0415000a1a879.png)

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [August 10, 2016, 5:22am UTC](https://discuss.elastic.co/t/bootstrap-mlockall-true-in-elastisearch-not-take-effect/57570/4 "2016-08-10T05:22:26Z")

</div>

Please don't post pictures of text, they are difficult to read and some people may not be even able to see them.

---

<div class="post-metadata">

**Author:** ![figo10203](https://avatars.discourse-cdn.com/v4/letter/f/e19b73/32.png) [@figo10203](https://discuss.elastic.co/u/figo10203)\
**Post date:** [August 10, 2016, 6:34am UTC](https://discuss.elastic.co/t/bootstrap-mlockall-true-in-elastisearch-not-take-effect/57570/5 "2016-08-10T06:34:53Z")

</div>

Hi warkolm,I set the property in **/opt/modules/elasticsearch-2.3.3/conf/elasticsearch.yml** as **bootstrap.mlockall: true** , and restart es via supervisord, the conf of which is as  
**command=/opt/modules/elasticsearch-2.3.3/bin/elasticsearch --network.host 0. 0.0.0**  
**user=rui**  
but after restarting, I see the below result in \_nodes/process?pretty:

"M\_r6PeG4TraVpfUeoZnmOA" : {  
"name" : "node-2",  
"transport\_address" : "10.172.95.65:9300",  
"host" : "10.172.95.65",  
"ip" : "10.172.95.65",  
"version" : "2.3.3",  
"build" : "218bdf1",  
"http\_address" : "10.172.95.65:9200",  
"process" : {  
"refresh\_interval\_in\_millis" : 1000,  
"id" : 10305,  
**"mlockall" : false**  
I want to ask why?

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 10:28pm UTC](https://discuss.elastic.co/t/bootstrap-mlockall-true-in-elastisearch-not-take-effect/57570/6 "2017-07-05T22:28:53Z")

</div>


