# ElastisSearch JVM Heap running full

**URL:** https://discuss.elastic.co/t/elastissearch-jvm-heap-running-full/295928
**Category:** Elasticsearch
**Created:** [February 1, 2022, 10:29am UTC](https://discuss.elastic.co/t/elastissearch-jvm-heap-running-full/295928 "2022-02-01T10:29:32Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![grregm](https://avatars.discourse-cdn.com/v4/letter/g/34f0e0/32.png) [@grregm](https://discuss.elastic.co/u/grregm)
#### Post date: [February 1, 2022, 10:29am UTC](https://discuss.elastic.co/t/elastissearch-jvm-heap-running-full/295928/1 "2022-02-01T10:29:32Z")

</div>

Hey there,

We are running a Elasticsearch (7.16.1, Docker inside Kubernetes) cluster which is monitored by a Kibana Stack. After 5-6 days (sometimes sooner) Elasticsearch is running into JVM Heap issues/errors. Is there any way to tell Elasticsearch to clean its heap more frequently or to a lower limit? Would it help to just increase the heap size or would the problem just be after a longer time period then?

The Images show the increase in heap usage. Drop comes after a restart of the node.

 ![es1](https://us1.discourse-cdn.com/elastic/original/3X/c/0/c0b514a71b4ff79a87b6251b4a46dadae641c048.jpeg)  
 ![es2_zoomed](https://us1.discourse-cdn.com/elastic/original/3X/7/5/7553d6b57494f705f1b1a560202396923172dc0f.jpeg)

---

<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: [February 1, 2022, 8:57pm UTC](https://discuss.elastic.co/t/elastissearch-jvm-heap-running-full/295928/2 "2022-02-01T20:57:16Z")

</div>

Welcome to our community! 😃

Is there anything in your Elasticsearch logs that mentions GC?

---

<div class="post-metadata">

### Author: ![grregm](https://avatars.discourse-cdn.com/v4/letter/g/34f0e0/32.png) [@grregm](https://discuss.elastic.co/u/grregm)
#### Post date: [February 2, 2022, 12:51pm UTC](https://discuss.elastic.co/t/elastissearch-jvm-heap-running-full/295928/3 "2022-02-02T12:51:48Z")

</div>

Hey thanks for your help!  
What log file are you exactly refering to? Currently we're using the default docker settings and there doesn't seem to be any logging activated.

---

<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: [February 2, 2022, 8:37pm UTC](https://discuss.elastic.co/t/elastissearch-jvm-heap-running-full/295928/4 "2022-02-02T20:37:52Z")

</div>

Docker will log to stdout, which you can read with `docker logs` as well.

---

<div class="post-metadata">

### Author: ![grregm](https://avatars.discourse-cdn.com/v4/letter/g/34f0e0/32.png) [@grregm](https://discuss.elastic.co/u/grregm)
#### Post date: [February 3, 2022, 1:39pm UTC](https://discuss.elastic.co/t/elastissearch-jvm-heap-running-full/295928/7 "2022-02-03T13:39:18Z")

</div>

Here's the most recent log. Will upload again as soon as it runs into heap problems.

 ![es-logs2](https://us1.discourse-cdn.com/elastic/original/3X/e/e/eef1b7204f11692907ff1ad41be9762319b3dd28.jpeg)

---

<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: [February 6, 2022, 9:00pm UTC](https://discuss.elastic.co/t/elastissearch-jvm-heap-running-full/295928/8 "2022-02-06T21:00:17Z")

</div>

Please don't post pictures of text, logs or code. They are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them 🙂

---

<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: [March 6, 2022, 9:00pm UTC](https://discuss.elastic.co/t/elastissearch-jvm-heap-running-full/295928/9 "2022-03-06T21:00:36Z")

</div>

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