# Documents size increased after increasing the heap on ES nodes

**URL:** <https://discuss.elastic.co/t/documents-size-increased-after-increasing-the-heap-on-es-nodes/46764>\
**Category:** Elasticsearch\
**Created:** [April 8, 2016, 5:58am UTC](https://discuss.elastic.co/t/documents-size-increased-after-increasing-the-heap-on-es-nodes/46764 "2016-04-08T05:58:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ApoorvaLad](https://avatars.discourse-cdn.com/v4/letter/a/7ba0ec/32.png) [@ApoorvaLad](https://discuss.elastic.co/u/ApoorvaLad)\
**Post date:** [April 8, 2016, 5:58am UTC](https://discuss.elastic.co/t/documents-size-increased-after-increasing-the-heap-on-es-nodes/46764/1 "2016-04-08T05:58:29Z")

</div>

I have an ES cluster with 5 nodes. 1 acting as client node, 1 acting as master node and 3 as data nodes.  
I was using the default 1GB heap for each of these nodes.  
However, after getting Out Of Memory Exception, I increased the Heap to 16GB (I have machines upto 64GB RAM).  
After this change in configuration, I have seen an increase in the documents (Number of documents and Total index size).  
The inflow of data in both these scenarios has been constant.

Is there a possibility, that due to low memory, ES was not indexing all my data initially?  
Thanks in Advance. 🙂

---

<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:** [April 9, 2016, 7:31am UTC](https://discuss.elastic.co/t/documents-size-increased-after-increasing-the-heap-on-es-nodes/46764/2 "2016-04-09T07:31:22Z")

</div>

> [@ApoorvaLad](#):
>
> Is there a possibility, that due to low memory, ES was not indexing all my data initially?

No. It may have been slow but documents cannot simply "appear".

> [@ApoorvaLad](#):
>
> 1 acting as master node

That's not really a good idea, it can lead to split brain.

---

<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 5, 2017, 11:00pm UTC](https://discuss.elastic.co/t/documents-size-increased-after-increasing-the-heap-on-es-nodes/46764/3 "2017-07-05T23:00:59Z")

</div>


