# How to enable memory lock

**URL:** <https://discuss.elastic.co/t/how-to-enable-memory-lock/245674>\
**Category:** Elasticsearch\
**Created:** [August 19, 2020, 8:35pm UTC](https://discuss.elastic.co/t/how-to-enable-memory-lock/245674 "2020-08-19T20:35:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![AshokBachchan](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@AshokBachchan](https://discuss.elastic.co/u/AshokBachchan)\
**Post date:** [August 19, 2020, 8:35pm UTC](https://discuss.elastic.co/t/how-to-enable-memory-lock/245674/1 "2020-08-19T20:35:31Z")

</div>

Hi All,

We are unable to lock the memory for elasticsearch, our OS is **CentOS Linux 7 (Core)**

ES cluster is not giving proper performance.

what is the recommendation on this???. Please suggest us.

```auto
GET _nodes?filter_path=**.mlockall

```

```auto
{
  "nodes": {
    "ABeZ48t6SvGX6F4DQOYulw": {
      "process": {
        "mlockall": false
      }
    },
    "cWKzWFodRL-u2wtk7x-Mrw": {
      "process": {
        "mlockall": false
      }
    },
    "lHrp4sAETRGnSYvly1lL4Q": {
      "process": {
        "mlockall": false
      }
    },
    "mOB6grI6TzSgL9-hcurgkQ": {
      "process": {
        "mlockall": false
      }
    },
    "95WNp8fRRhGpU7EqkFe_2g": {
      "process": {
        "mlockall": false
      }
    },
    "6Ho3WaLcSCeS2e9Yh8-gVQ": {
      "process": {
        "mlockall": false
      }
    },
    "toVJ45xySqmilsQ4SNSEkg": {
      "process": {
        "mlockall": false
      }
    },
    "h9MgHbMMSACl5duDTLljBg": {
      "process": {
        "mlockall": false
      }
    },
    "AA5PTdXFRVS8k67hifVg6w": {
      "process": {
        "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:** [August 19, 2020, 11:00pm UTC](https://discuss.elastic.co/t/how-to-enable-memory-lock/245674/2 "2020-08-19T23:00:14Z")

</div>

Did you follow [https://www.elastic.co/guide/en/elasticsearch/reference/7.9/\_memory\_lock\_check.html](https://www.elastic.co/guide/en/elasticsearch/reference/7.9/_memory_lock_check.html)?

---

<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:** [September 16, 2020, 11:00pm UTC](https://discuss.elastic.co/t/how-to-enable-memory-lock/245674/3 "2020-09-16T23:00:34Z")

</div>

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