# Elasticsearch crashing - out of memory

**URL:** <https://discuss.elastic.co/t/elasticsearch-crashing-out-of-memory/78483>\
**Category:** Elasticsearch\
**Created:** [March 14, 2017, 9:30am UTC](https://discuss.elastic.co/t/elasticsearch-crashing-out-of-memory/78483 "2017-03-14T09:30:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![maigel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maigel/32/81104_2.png) [@maigel](https://discuss.elastic.co/u/maigel)\
**Post date:** [March 14, 2017, 9:30am UTC](https://discuss.elastic.co/t/elasticsearch-crashing-out-of-memory/78483/1 "2017-03-14T09:30:47Z")

</div>

Hello,

Recently, we've had a server running elasticsearch randomly crashing without errors.

Upon further investigation we noticed it was crashing due to out-of-memory, as the following was in /var/log/kern.log:

[11533] 106 11533 18907505 8142258 17202 77 0 0 java  
Out of memory: Kill process 11533 (java) score 247 or sacrifice child  
Killed process 11533 (java) total-vm:75630020kB, anon-rss:32450404kB, file-rss:118628kB

My server settings are:

- The server has 128 GB ram
- Ubuntu 14.04 LTS
- No swap configured, memory lock enabled
- Heap size 31g
- ES Version: 2.4.4
- Java(TM) SE Runtime Environment (build 1.8.0\_121-b13)

The weird thing is, I've never seen the machine getting close to using all of its 128GB ram (according to top), so I don't know why the process is being killed.

Any ideas?

---

<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:** [March 14, 2017, 6:11pm UTC](https://discuss.elastic.co/t/elasticsearch-crashing-out-of-memory/78483/2 "2017-03-14T18:11:38Z")

</div>

What's in the ES logs?

---

<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:** [April 11, 2017, 6:11pm UTC](https://discuss.elastic.co/t/elasticsearch-crashing-out-of-memory/78483/3 "2017-04-11T18:11:45Z")

</div>

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