# JVM Consumption continuously increasing

**URL:** <https://discuss.elastic.co/t/jvm-consumption-continuously-increasing/267024>\
**Category:** Elasticsearch\
**Created:** [March 12, 2021, 2:42am UTC](https://discuss.elastic.co/t/jvm-consumption-continuously-increasing/267024 "2021-03-12T02:42:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cjc](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@cjc](https://discuss.elastic.co/u/cjc)\
**Post date:** [March 12, 2021, 2:42am UTC](https://discuss.elastic.co/t/jvm-consumption-continuously-increasing/267024/1 "2021-03-12T02:42:09Z")

</div>

Hi,

I'm new in Elasticsearch and I'm encountering a recurring high JVM issue.

I don't see anything from the logs aside from a dangled index which keep trying to reimport. just want to know if this dangled index (.watcher-history, i think this is from xpack) contributes in high memory consumption? can this be deleted?

Thanks

---

<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:33am UTC](https://discuss.elastic.co/t/jvm-consumption-continuously-increasing/267024/2 "2021-03-18T06:33:53Z")

</div>

High memory usage is not necessarily an issue so it would be helpful if you provided more information about your setup and what you are seeing. You should also always state which version of the stack you are using.

---

<div class="post-metadata">

**Author:** ![cjc](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@cjc](https://discuss.elastic.co/u/cjc)\
**Post date:** [March 18, 2021, 6:54am UTC](https://discuss.elastic.co/t/jvm-consumption-continuously-increasing/267024/3 "2021-03-18T06:54:25Z")

</div>

Hi Christian,

Thanks for your response.

We are using version 5.5.2 and using a cluster setup with 2gb heapsize each node.  
From time to time (approx every 2 weeks), we are getting an alert that JVM is already utilizing 93-96% of heap and this is not decreasing.

I don't see anything from the logs aside from the Dangling index that keeps importing and no significant increase with the volume of request.

Right now, I'm looking to increase the heap size by 4Gb each node.

Thanks

---

<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, 7:24am UTC](https://discuss.elastic.co/t/jvm-consumption-continuously-increasing/267024/4 "2021-03-18T07:24:24Z")

</div>

That is a very old version that has been EOL a long time so I would recommend you upgrade. It sounds like you are experiencing heap pressure which can be addressed by increasing RAM and the heap size.

---

<div class="post-metadata">

**Author:** ![cjc](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@cjc](https://discuss.elastic.co/u/cjc)\
**Post date:** [March 18, 2021, 9:06am UTC](https://discuss.elastic.co/t/jvm-consumption-continuously-increasing/267024/5 "2021-03-18T09:06:05Z")

</div>

Yes, considering now also the upgrade. but for now will do the heap increase. Thanks for your inputs!

---

<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, 9:06am UTC](https://discuss.elastic.co/t/jvm-consumption-continuously-increasing/267024/6 "2021-04-15T09:06:39Z")

</div>

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