# Setting heap size using the Docker images

**URL:** https://discuss.elastic.co/t/setting-heap-size-using-the-docker-images/266975
**Category:** Elasticsearch
**Tags:** docker
**Created:** [March 11, 2021, 4:22pm UTC](https://discuss.elastic.co/t/setting-heap-size-using-the-docker-images/266975 "2021-03-11T16:22:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Phandora](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phandora/32/46108_2.png) [@Phandora](https://discuss.elastic.co/u/Phandora)
#### Post date: [March 11, 2021, 4:22pm UTC](https://discuss.elastic.co/t/setting-heap-size-using-the-docker-images/266975/1 "2021-03-11T16:22:39Z")

</div>

Hi everyone,

I am using Elasticsearch **7.10.0** version on EKS. I need to manually set the heap size since Elasticsearch does not automatically sizes JVM heap until **7.11** version.

It is recommended that the heap size should be no more than 50% of available RAM and no more than 32GB but, are these values equally valid for EKS?

Does this mean that I should not set a _heap size greater than 50% of available RAM visible to the container_?

Any assistance will be greatly appreciated.

Regards!

---

<div class="post-metadata">

### Author: ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)
#### Post date: [March 18, 2021, 6:32am UTC](https://discuss.elastic.co/t/setting-heap-size-using-the-docker-images/266975/2 "2021-03-18T06:32:14Z")

</div>

> [@Phandora](#):
>
> It is recommended that the heap size should be no more than 50% of available RAM and no more than 32GB but, are these values equally valid for EKS?

Yes. This is valid for any Elasticsearch deployment. Note that the threshold is less than 32GB, potentially around 30GB.

> [@Phandora](#):
>
> Does this mean that I should not set a _heap size greater than 50% of available RAM visible to the container_ ?

Yes

---

<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: [April 15, 2021, 6:32am UTC](https://discuss.elastic.co/t/setting-heap-size-using-the-docker-images/266975/3 "2021-04-15T06:32:40Z")

</div>

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