# High Heap Usage and constant \[old\] GC processes

**URL:** <https://discuss.elastic.co/t/high-heap-usage-and-constant-old-gc-processes/224981>\
**Category:** Elasticsearch\
**Created:** [March 25, 2020, 12:11pm UTC](https://discuss.elastic.co/t/high-heap-usage-and-constant-old-gc-processes/224981 "2020-03-25T12:11:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dbajra94](https://avatars.discourse-cdn.com/v4/letter/d/4da419/32.png) [@dbajra94](https://discuss.elastic.co/u/dbajra94)\
**Post date:** [March 25, 2020, 12:11pm UTC](https://discuss.elastic.co/t/high-heap-usage-and-constant-old-gc-processes/224981/1 "2020-03-25T12:11:07Z")

</div>

Hello elastic community,

currently on one of our production nodes we are running into constant search delays due to old Garbage collection processes (up to every 2-3 minutes for around 1 minute runtime). Those seem to be triggered due to the high heap usage (around 94%), which as of now we can't seem to resolve.

We are running a 62GB, 8 core Ubuntu 16.04 server machine with an allocated Heap space of 31GB (we will change this to 26GB throughout the day to do some tests). Also we have checked the current Elastic stats that you can find in the link below and one thing that we noticed is the high count of deleted.docs. We already had this in the past (and did a few force merges) but never with such a huge impact on the overall performance. They keep reappearing though after some weeks/months of productive runtime.

ES Stats: [https://gist.github.com/dbajra94/0984f3f47731a760ec1e5b810eeb1647](https://gist.github.com/dbajra94/0984f3f47731a760ec1e5b810eeb1647)  
ES Health:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/0/f0fec7ccf728b018d82719b8bb76070bb73069de.png)

We are currently in a long trial and error process and would appreciate any kind of tips or any indication in the stats that we are doing something wrong in our system.

Thanks!

P.S.: We are using ElasticSearch 2.4.0 as of now (yes very old but there are too many dependencies in our software as of 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:** [April 22, 2020, 12:11pm UTC](https://discuss.elastic.co/t/high-heap-usage-and-constant-old-gc-processes/224981/2 "2020-04-22T12:11:15Z")

</div>

Closed on April 22, 2020, 12:11pm UTC

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