# OOM for ES 0.19.7

**URL:** <https://discuss.elastic.co/t/oom-for-es-0-19-7/8320>\
**Category:** Elasticsearch\
**Created:** [July 5, 2012, 2:55am UTC](https://discuss.elastic.co/t/oom-for-es-0-19-7/8320 "2012-07-05T02:55:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Weiwei\_Wang](https://avatars.discourse-cdn.com/v4/letter/w/b19c9b/32.png) [@Weiwei\_Wang](https://discuss.elastic.co/u/Weiwei_Wang)\
**Post date:** [July 5, 2012, 2:55am UTC](https://discuss.elastic.co/t/oom-for-es-0-19-7/8320/1 "2012-07-05T02:55:50Z")

</div>

hi,all,

- \*I have 4 es node with 32 shard 1 replica, each with 8G memory(no  
mlock). my elasticsearch version is elasticsearch-0.19.7(recently upgraded  
from 0.18.5).  
I start each node with command:  
nohup bin/elasticsearch -Xms8g -Xmx8g -Des.max-open-files=true  
-Dbootstrap.mlockall=true -p es.pid

as umlit -l prints 8388608, that is 8g, the above command prints log Unknown  
mlockall error 0 and as a result actually i started es with no mlock.

last night, i received bunch of alarm smses of this service and i logged in  
and found that 3 of the 4 nodes are out of memory and gc logs is crazily  
rolling.

and current the index size is:  
size: 35.8gb (71.7gb)  
docs: 16250075 (17764421)

good news different from 0.18.5, the cpu useage drops off to around 100%  
not 200+% any more.

as I have no root access to the production machine, I now restart each node  
with command  
nohup bin/elasticsearch -Xms7g -Xmx7g -Des.max-open-files=true  
-Dbootstrap.mlockall=true -p es.pid

does anyone has similar experience and know how to fix this problem  
for periodical OOM hangs.

thanks ~

---

<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, 3:21am UTC](https://discuss.elastic.co/t/oom-for-es-0-19-7/8320/2 "2017-07-06T03:21:28Z")

</div>

Closed on July 6, 2017, 3:21am UTC


