# JVM heap recommandation

**URL:** https://discuss.elastic.co/t/jvm-heap-recommandation/275416
**Category:** Elasticsearch
**Tags:** docker
**Created:** [June 9, 2021, 9:44am UTC](https://discuss.elastic.co/t/jvm-heap-recommandation/275416 "2021-06-09T09:44:11Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![rebug](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rebug/32/117669_2.png) [@rebug](https://discuss.elastic.co/u/rebug)
#### Post date: [June 9, 2021, 9:44am UTC](https://discuss.elastic.co/t/jvm-heap-recommandation/275416/1 "2021-06-09T09:44:12Z")

</div>

Hi,

I would like to know what is you recommendation for the JVM heap size of a elastic node ?

I run the elastic stack on docker, I will have approximatively 200 indices (200 shards) of 25gb.

---

<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: [June 9, 2021, 10:03am UTC](https://discuss.elastic.co/t/jvm-heap-recommandation/275416/2 "2021-06-09T10:03:23Z")

</div>

You will probably want to start at 16GB.

---

<div class="post-metadata">

### Author: ![rebug](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rebug/32/117669_2.png) [@rebug](https://discuss.elastic.co/u/rebug)
#### Post date: [June 9, 2021, 10:07am UTC](https://discuss.elastic.co/t/jvm-heap-recommandation/275416/3 "2021-06-09T10:07:30Z")

</div>

Thank you for your response.

Just to be sure, the JVM heap requirements is proportional to my index size or more by indexing rate ?

I am making some test with juste 512mb of JVM heap and I don't have a problem for indexing more than 300.000 documents/minutes and no lag for searching them (but I have just 30gb of documents)

---

<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 7, 2021, 10:08am UTC](https://discuss.elastic.co/t/jvm-heap-recommandation/275416/4 "2021-07-07T10:08:11Z")

</div>

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