# Elasticsearch is not using memory resources available

**URL:** <https://discuss.elastic.co/t/elasticsearch-is-not-using-memory-resources-available/200215>\
**Category:** Elasticsearch\
**Created:** [September 19, 2019, 1:51pm UTC](https://discuss.elastic.co/t/elasticsearch-is-not-using-memory-resources-available/200215 "2019-09-19T13:51:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luis\_Alejandro\_Galan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luis_alejandro_galan/32/32746_2.png) [@Luis\_Alejandro\_Galan](https://discuss.elastic.co/u/Luis_Alejandro_Galan)\
**Post date:** [September 19, 2019, 1:51pm UTC](https://discuss.elastic.co/t/elasticsearch-is-not-using-memory-resources-available/200215/1 "2019-09-19T13:51:47Z")

</div>

hello! I am trying to troubleshoot elasticsearch, we noticed that it was having memory issues and crashing. We have added 4gbs of memory onto the server but notice that it is not using the additional resources, is there a way to increase the memory elasticsearch uses or perhaps a way to set the entire stack to use the available resources evently?

---

<div class="post-metadata">

**Author:** ![luiz.santos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luiz.santos/32/24664_2.png) [@luiz.santos](https://discuss.elastic.co/u/luiz.santos)\
**Post date:** [September 27, 2019, 4:56pm UTC](https://discuss.elastic.co/t/elasticsearch-is-not-using-memory-resources-available/200215/2 "2019-09-27T16:56:50Z")

</div>

Hi @Luis_Alejandro_Galan,

You can set the [heap size](https://www.elastic.co/guide/en/elasticsearch/reference/current/heap-size.html) that elasticsearch will use in the `jvm.options` [configuration](https://www.elastic.co/guide/en/elasticsearch/reference/current/jvm-options.html) file. In those links above you will find the recommended value based on the total memory available too.

I hope it helps!

---

<div class="post-metadata">

**Author:** ![Luis\_Alejandro\_Galan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luis_alejandro_galan/32/32746_2.png) [@Luis\_Alejandro\_Galan](https://discuss.elastic.co/u/Luis_Alejandro_Galan)\
**Post date:** [October 14, 2019, 11:11pm UTC](https://discuss.elastic.co/t/elasticsearch-is-not-using-memory-resources-available/200215/3 "2019-10-14T23:11:52Z")

</div>

Thanks Luiz!

---

<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:** [November 11, 2019, 11:12pm UTC](https://discuss.elastic.co/t/elasticsearch-is-not-using-memory-resources-available/200215/4 "2019-11-11T23:12:04Z")

</div>

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