# "Unable to lock JVM Memory: error=12, reason=Cannot allocate memory"

**URL:** <https://discuss.elastic.co/t/unable-to-lock-jvm-memory-error-12-reason-cannot-allocate-memory/306000>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [May 31, 2022, 6:27am UTC](https://discuss.elastic.co/t/unable-to-lock-jvm-memory-error-12-reason-cannot-allocate-memory/306000 "2022-05-31T06:27:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![DineshNaik](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dineshnaik/32/89308_2.png) [@DineshNaik](https://discuss.elastic.co/u/DineshNaik)\
**Post date:** [June 1, 2022, 6:22am UTC](https://discuss.elastic.co/t/unable-to-lock-jvm-memory-error-12-reason-cannot-allocate-memory/306000/2 "2022-06-01T06:22:53Z")

</div>

Did you check below thread ?

> [@Elasticserach 7.2 Unable to create cluster with error "Unable to lock JVM Memory: error=12, reason=Cannot allocate memory"](https://discuss.elastic.co/t/elasticserach-7-2-unable-to-create-cluster-with-error-unable-to-lock-jvm-memory-error-12-reason-cannot-allocate-memory/252050/3):
>
> elasticsearch\_1 | {"type": "server", "timestamp": "2020-10-14T13:34:12,750+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elk-cluster", "node.name": "primary", "message": "loaded module [x-pack-monitoring]" } elasticsearch\_1 | {"type": "server", "timestamp": "2020-10-14T13:34:12,750+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "elk-cluster", "node.name": "primary", "message": "loaded module [x-pack-rollup]" } elasticsea…

---

_[View the full topic](https://discuss.elastic.co/t/unable-to-lock-jvm-memory-error-12-reason-cannot-allocate-memory/306000)._
