# Heap size for elastic nodes when multiple nodes run on a single machine

**URL:** <https://discuss.elastic.co/t/heap-size-for-elastic-nodes-when-multiple-nodes-run-on-a-single-machine/102359>\
**Category:** Elasticsearch\
**Created:** [September 30, 2017, 8:20pm UTC](https://discuss.elastic.co/t/heap-size-for-elastic-nodes-when-multiple-nodes-run-on-a-single-machine/102359 "2017-09-30T20:20:58Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![agile\_dev\_sat](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@agile\_dev\_sat](https://discuss.elastic.co/u/agile_dev_sat)\
**Post date:** [September 30, 2017, 8:20pm UTC](https://discuss.elastic.co/t/heap-size-for-elastic-nodes-when-multiple-nodes-run-on-a-single-machine/102359/1 "2017-09-30T20:20:58Z")

</div>

Hi,

I have a 16GB RAM and running two elastic processes (nodes) on it.

According to documentation, it say to allocate half memory to lucene. So according to it,

1. Should i allocate half of memory to all elastic processes combined i.e 4g ram for each process so that 8g is used for both processees?

Or  
2. Should i allocate half of memory to a single process? i.e 8g for each elastic node

[https://www.elastic.co/guide/en/elasticsearch/guide/current/heap-sizing.html#\_give\_less\_than\_half\_your\_memory\_to\_lucene](https://www.elastic.co/guide/en/elasticsearch/guide/current/heap-sizing.html#_give_less_than_half_your_memory_to_lucene)

Thanks.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [September 30, 2017, 8:36pm UTC](https://discuss.elastic.co/t/heap-size-for-elastic-nodes-when-multiple-nodes-run-on-a-single-machine/102359/2 "2017-09-30T20:36:51Z")

</div>

You should not run more than one elasticsearch instance per node.

So one single node with 8gb HEAP.

---

<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:** [October 28, 2017, 8:36pm UTC](https://discuss.elastic.co/t/heap-size-for-elastic-nodes-when-multiple-nodes-run-on-a-single-machine/102359/3 "2017-10-28T20:36:59Z")

</div>

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