# Node constantly restarting due to running out of memory... in test environment?

**URL:** <https://discuss.elastic.co/t/node-constantly-restarting-due-to-running-out-of-memory-in-test-environment/76336>\
**Category:** Elasticsearch\
**Created:** [February 24, 2017, 2:42am UTC](https://discuss.elastic.co/t/node-constantly-restarting-due-to-running-out-of-memory-in-test-environment/76336 "2017-02-24T02:42:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![keybloc](https://avatars.discourse-cdn.com/v4/letter/k/41988e/32.png) [@keybloc](https://discuss.elastic.co/u/keybloc)\
**Post date:** [February 24, 2017, 2:42am UTC](https://discuss.elastic.co/t/node-constantly-restarting-due-to-running-out-of-memory-in-test-environment/76336/1 "2017-02-24T02:42:53Z")

</div>

So my two node cluster is constantly restarting due to running out of memory, and its happening in a testing environment, with at most 10 users writing to and searching the database.

And now the error reads that all shards have failed, and I get an internal server error of 500 when trying to access Kibana from the console.

---

<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:** [February 24, 2017, 9:01am UTC](https://discuss.elastic.co/t/node-constantly-restarting-due-to-running-out-of-memory-in-test-environment/76336/2 "2017-02-24T09:01:43Z")

</div>

What version?

---

<div class="post-metadata">

**Author:** ![keybloc](https://avatars.discourse-cdn.com/v4/letter/k/41988e/32.png) [@keybloc](https://discuss.elastic.co/u/keybloc)\
**Post date:** [February 24, 2017, 5:39pm UTC](https://discuss.elastic.co/t/node-constantly-restarting-due-to-running-out-of-memory-in-test-environment/76336/3 "2017-02-24T17:39:46Z")

</div>

We are running 5.2.0, this was a 1 gb memory cluster with two nodes.

---

<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:** [February 24, 2017, 9:46pm UTC](https://discuss.elastic.co/t/node-constantly-restarting-due-to-running-out-of-memory-in-test-environment/76336/4 "2017-02-24T21:46:18Z")

</div>

Upgrade to 5.2.1, there is a known issue with 5.2.0.

---

<div class="post-metadata">

**Author:** ![keybloc](https://avatars.discourse-cdn.com/v4/letter/k/41988e/32.png) [@keybloc](https://discuss.elastic.co/u/keybloc)\
**Post date:** [February 24, 2017, 10:14pm UTC](https://discuss.elastic.co/t/node-constantly-restarting-due-to-running-out-of-memory-in-test-environment/76336/5 "2017-02-24T22:14:22Z")

</div>

Is it okay to be using 5.1.2?

---

<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:** [February 25, 2017, 1:43am UTC](https://discuss.elastic.co/t/node-constantly-restarting-due-to-running-out-of-memory-in-test-environment/76336/6 "2017-02-25T01:43:22Z")

</div>

Yes, just run the latest of 5.1 or 5.2.

---

<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:** [March 25, 2017, 1:43am UTC](https://discuss.elastic.co/t/node-constantly-restarting-due-to-running-out-of-memory-in-test-environment/76336/7 "2017-03-25T01:43:59Z")

</div>

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