# ES\_HEAP\_SIZE Size with 10k Doc's (5 MB total)?

**URL:** <https://discuss.elastic.co/t/es-heap-size-size-with-10k-docs-5-mb-total/23065>\
**Category:** Elasticsearch\
**Created:** [April 2, 2015, 1:28pm UTC](https://discuss.elastic.co/t/es-heap-size-size-with-10k-docs-5-mb-total/23065 "2015-04-02T13:28:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arno\_Nuhm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/arno_nuhm/32/783_2.png) [@Arno\_Nuhm](https://discuss.elastic.co/u/Arno_Nuhm)\
**Post date:** [April 2, 2015, 1:28pm UTC](https://discuss.elastic.co/t/es-heap-size-size-with-10k-docs-5-mb-total/23065/1 "2015-04-02T13:28:51Z")

</div>

I've read a lot of ES Performance Guides and most of them suggest setting  
the ES\_HEAP\_SIZE to half the RAM, but not more than 32 GB.

ES is running on a Server with 32 GB of RAM, with nginx, php5-fpm and mysql  
on this machine and i'm only indexing around 10.000 Documents with a total  
size of 5 MB.

The Index will probably grow to around 20.000 - 30.000 (10 - 15 MB)  
Documents in the near future, but thats - compared to other clusters - is  
still a fairly small amount of data.

I dont have heavy traffic nor i'm doing crazy searches.

Most types are not\_analyzed, because i'm primarily using ES for filtering,  
aggregations and sorting, full text search is just a minor benefit for me,  
but it would be crazy doing all the filtering with mysql and not with ES.

Setting the ES\_HEAP\_SIZE to around 16 GB seems a bit of an overkill for my  
usecase, but since i'm using filters (which are cacheable) and doing  
aggregations with sorting, setting the ES\_HEAP\_SIZE at around 2 GB feels  
kinda right for me, but i'm not sure if i'm missing something here.

Any reccommendation on the ES\_HEAP\_SIZE with a small number of documents is  
really appreciated, thanks!

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/f4a5b85b-d50e-4a29-837e-945c21fbd99f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f4a5b85b-d50e-4a29-837e-945c21fbd99f%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [April 2, 2015, 1:34pm UTC](https://discuss.elastic.co/t/es-heap-size-size-with-10k-docs-5-mb-total/23065/2 "2015-04-02T13:34:12Z")

</div>

Indeed. Start small 1gb or 2 and monitor your usage.  
Increase if you see your HEAP usage going up to 75%/80%.

My 2 cents.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

> Le 2 avr. 2015 à 15:28, Arno Nühm [arkste@gmail.com](mailto:arkste@gmail.com) a écrit :
> 
> I've read a lot of ES Performance Guides and most of them suggest setting the ES\_HEAP\_SIZE to half the RAM, but not more than 32 GB.
> 
> ES is running on a Server with 32 GB of RAM, with nginx, php5-fpm and mysql on this machine and i'm only indexing around 10.000 Documents with a total size of 5 MB.  
> The Index will probably grow to around 20.000 - 30.000 (10 - 15 MB) Documents in the near future, but thats - compared to other clusters - is still a fairly small amount of data.
> 
> I dont have heavy traffic nor i'm doing crazy searches.  
> Most types are not\_analyzed, because i'm primarily using ES for filtering, aggregations and sorting, full text search is just a minor benefit for me, but it would be crazy doing all the filtering with mysql and not with ES.
> 
> Setting the ES\_HEAP\_SIZE to around 16 GB seems a bit of an overkill for my usecase, but since i'm using filters (which are cacheable) and doing aggregations with sorting, setting the ES\_HEAP\_SIZE at around 2 GB feels kinda right for me, but i'm not sure if i'm missing something here.
> 
> ## Any reccommendation on the ES\_HEAP\_SIZE with a small number of documents is really appreciated, thanks!
> 
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/f4a5b85b-d50e-4a29-837e-945c21fbd99f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f4a5b85b-d50e-4a29-837e-945c21fbd99f%40googlegroups.com).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/3C2D6FEA-FF94-446B-9F35-A913C2C3F8DA%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/3C2D6FEA-FF94-446B-9F35-A913C2C3F8DA%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:22am UTC](https://discuss.elastic.co/t/es-heap-size-size-with-10k-docs-5-mb-total/23065/3 "2017-07-06T00:22:03Z")

</div>


