# Getting the following warning from elastic search restarts

**URL:** <https://discuss.elastic.co/t/getting-the-following-warning-from-elastic-search-restarts/810>\
**Category:** Elasticsearch\
**Created:** [May 17, 2015, 7:24pm UTC](https://discuss.elastic.co/t/getting-the-following-warning-from-elastic-search-restarts/810 "2015-05-17T19:24:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phani\_Nadiminti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phani_nadiminti/32/45381_2.png) [@Phani\_Nadiminti](https://discuss.elastic.co/u/Phani_Nadiminti)\
**Post date:** [May 17, 2015, 7:24pm UTC](https://discuss.elastic.co/t/getting-the-following-warning-from-elastic-search-restarts/810/1 "2015-05-17T19:24:43Z")

</div>

Hi All,

when i restart elastic search I am getting the following error.please explain me why I am getting the following error.

2015-05-17 14:12:37,814][WARN][common.jna] Unable to lock JVM memory (ENOMEM). This can result in part of the JVM being swapped out. Increase RLIMIT\_MEMLOCK (ulimit).

I gave 12 GB RAM for Heap and toatal Memory of my server is 24 GB

Thanks,  
Phani

---

<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:** [May 17, 2015, 9:48pm UTC](https://discuss.elastic.co/t/getting-the-following-warning-from-elastic-search-restarts/810/2 "2015-05-17T21:48:10Z")

</div>

Have you set `botstrap.mlockall: true` in your elasticsearch.yml?

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [May 17, 2015, 9:59pm UTC](https://discuss.elastic.co/t/getting-the-following-warning-from-elastic-search-restarts/810/3 "2015-05-17T21:59:26Z")

</div>

This can be caused be a resource limit on the Elasticsearch user. They are  
simply not allowed to lock that much memory. Have a look at how the deb or  
rpm set the limit.

---

<div class="post-metadata">

**Author:** ![Phani\_Nadiminti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phani_nadiminti/32/45381_2.png) [@Phani\_Nadiminti](https://discuss.elastic.co/u/Phani_Nadiminti)\
**Post date:** [May 18, 2015, 2:28am UTC](https://discuss.elastic.co/t/getting-the-following-warning-from-elastic-search-restarts/810/4 "2015-05-18T02:28:46Z")

</div>

Hi mark

Yes enabled bootstrap property in yml file

Thanks

Phani

---

<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:** [May 18, 2015, 2:39am UTC](https://discuss.elastic.co/t/getting-the-following-warning-from-elastic-search-restarts/810/5 "2015-05-18T02:39:42Z")

</div>

Are you on a RHEL distribution with systemd?  
It may be [https://github.com/elastic/elasticsearch/issues/9357](https://github.com/elastic/elasticsearch/issues/9357)

---

<div class="post-metadata">

**Author:** ![Phani\_Nadiminti](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phani_nadiminti/32/45381_2.png) [@Phani\_Nadiminti](https://discuss.elastic.co/u/Phani_Nadiminti)\
**Post date:** [May 18, 2015, 1:08pm UTC](https://discuss.elastic.co/t/getting-the-following-warning-from-elastic-search-restarts/810/6 "2015-05-18T13:08:12Z")

</div>

Hi Mark,

Yes I am using RHEL distribution but i am not using systemd .i will use /etc/init.d/elasticsearch start command to start the server but I am running elasticsearch as root user may be it could be the problem?  
if yes please suggest me the procedure how elasticsearch will run as non-root users.

Thanks  
phani

---

<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:** [May 18, 2015, 8:45pm UTC](https://discuss.elastic.co/t/getting-the-following-warning-from-elastic-search-restarts/810/7 "2015-05-18T20:45:40Z")

</div>

If you install the RPM it'll run as the Elasticsearch use by default.

---

<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 6, 2017, 12:13am UTC](https://discuss.elastic.co/t/getting-the-following-warning-from-elastic-search-restarts/810/8 "2017-07-06T00:13:27Z")

</div>


