# Mlockall in elastic 7.15.2

**URL:** <https://discuss.elastic.co/t/mlockall-in-elastic-7-15-2/301326>\
**Category:** Elasticsearch\
**Created:** [April 1, 2022, 1:20pm UTC](https://discuss.elastic.co/t/mlockall-in-elastic-7-15-2/301326 "2022-04-01T13:20:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![samiujan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/samiujan/32/23605_2.png) [@samiujan](https://discuss.elastic.co/u/samiujan)\
**Post date:** [April 1, 2022, 1:20pm UTC](https://discuss.elastic.co/t/mlockall-in-elastic-7-15-2/301326/1 "2022-04-01T13:20:44Z")

</div>

Hi

I have changed memory settings for the system and elastic, both, while working on ES v7.6.2

More recently, I've found an ES system running 7.15.2 whose **mlockall** returned false

I checked the documentation and it says that Elastic (now?) sets those values itself

I wanted to check that do we still need to update the system and Elastic memory settings for 7.15.2 and afterwards?

Do we still need to ensure **mlockall** = false ?

---

<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:** [April 4, 2022, 12:39am UTC](https://discuss.elastic.co/t/mlockall-in-elastic-7-15-2/301326/2 "2022-04-04T00:39:09Z")

</div>

> [@samiujan](#):
>
> I checked the documentation and it says that Elastic (now?) sets those values itself

Can you link us to that please?

Because the 7.15 version says - [Disable swapping | Elasticsearch Guide [7.15] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/7.15/setup-configuration-memory.html#bootstrap-memory_lock);

> To enable a memory lock, set `bootstrap.memory_lock` to `true` in `elasticsearch.yml` :

---

<div class="post-metadata">

**Author:** ![samiujan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/samiujan/32/23605_2.png) [@samiujan](https://discuss.elastic.co/u/samiujan)\
**Post date:** [April 4, 2022, 9:38am UTC](https://discuss.elastic.co/t/mlockall-in-elastic-7-15-2/301326/3 "2022-04-04T09:38:59Z")

</div>

Thank you, you are correct - I misunderstood this [(heap size settings are auto)](https://www.elastic.co/guide/en/elasticsearch/reference/7.15/important-settings.html#heap-size-settings)

---

<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:** [May 2, 2022, 9:39am UTC](https://discuss.elastic.co/t/mlockall-in-elastic-7-15-2/301326/4 "2022-05-02T09:39:03Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
