# Giving ES big amount of heap space

**URL:** <https://discuss.elastic.co/t/giving-es-big-amount-of-heap-space/336877>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [June 26, 2023, 8:16am UTC](https://discuss.elastic.co/t/giving-es-big-amount-of-heap-space/336877 "2023-06-26T08:16:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mzhaqs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mzhaqs/32/122719_2.png) [@mzhaqs](https://discuss.elastic.co/u/mzhaqs)\
**Post date:** [June 26, 2023, 8:16am UTC](https://discuss.elastic.co/t/giving-es-big-amount-of-heap-space/336877/1 "2023-06-26T08:16:29Z")

</div>

We have a pod with ES 5.6.16 container running in Kubernetes cluster. Only one instance running. Can not update the version or horizontally scale. This poor instance needs to deal with significant amount of load. Gave it 32 gb heap, 64 gb mem, 32 cpu. Still struggling, long gc and suspensions. Any one tried giving ES very big amount of cpu and mem? Like insane amount, e.g. 64 cpu, 96 gb of heap, 120 mem? Yes we can run a c5.18xlarge for now. 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:** [June 26, 2023, 9:40am UTC](https://discuss.elastic.co/t/giving-es-big-amount-of-heap-space/336877/2 "2023-06-26T09:40:44Z")

</div>

Welcome to our community! 😃

Unfortunately;

> [@mzhaqs](#):
>
> ES 5.6.16

> [@mzhaqs](#):
>
> Can not update the version or horizontally scale

You can go a larger instance, but with both of these limits you are not going to be able to do much to improve the situation.

---

<div class="post-metadata">

**Author:** ![mzhaqs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mzhaqs/32/122719_2.png) [@mzhaqs](https://discuss.elastic.co/u/mzhaqs)\
**Post date:** [June 26, 2023, 1:21pm UTC](https://discuss.elastic.co/t/giving-es-big-amount-of-heap-space/336877/3 "2023-06-26T13:21:31Z")

</div>

Thanks for the reply @warkolm. Just need to stabilise it till we move to a newer solution. Any other suggestions? Currently it’s needing multiple restarts daily given the load. Even if the full gc goes less frequent so that a daily restart fixes it will be a good option for now.

---

<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 24, 2023, 1:22pm UTC](https://discuss.elastic.co/t/giving-es-big-amount-of-heap-space/336877/4 "2023-07-24T13:22:27Z")

</div>

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