# Garbage collection old vs young

**URL:** https://discuss.elastic.co/t/garbage-collection-old-vs-young/255361
**Category:** Elasticsearch
**Created:** [November 13, 2020, 3:08pm UTC](https://discuss.elastic.co/t/garbage-collection-old-vs-young/255361 "2020-11-13T15:08:52Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Tuckson](https://avatars.discourse-cdn.com/v4/letter/t/f14d63/32.png) [@Tuckson](https://discuss.elastic.co/u/Tuckson)
#### Post date: [November 13, 2020, 3:08pm UTC](https://discuss.elastic.co/t/garbage-collection-old-vs-young/255361/1 "2020-11-13T15:08:52Z")

</div>

Hi, Question,  
On my nodes (7.9.3) I see the following graph's in stackmonitoring:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/2/52909679c96adee609436d8c49258b496694f662.png)

What strikes me is the **0** for old .  
As far as I know, the default ratio is 2? So I would not expect 0 here, but about double of what young shows.  
For GC i have pretty much the default settings in jvm.options with jvm 15, so  
14-:-XX:+UseG1GC  
14-:-XX:G1ReservePercent=25  
14-:-XX:InitiatingHeapOccupancyPercent=30

(I did try to change the G1ReservePercent to 15 on 1 of my nodes but that did not really change anything).

And does anyone know a picture of a graph that shows how a decently configured GC should show up in the graphs?

---

<div class="post-metadata">

### Author: ![Tuckson](https://avatars.discourse-cdn.com/v4/letter/t/f14d63/32.png) [@Tuckson](https://discuss.elastic.co/u/Tuckson)
#### Post date: [November 17, 2020, 2:07pm UTC](https://discuss.elastic.co/t/garbage-collection-old-vs-young/255361/2 "2020-11-17T14:07:35Z")

</div>

nobody?

---

<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: [December 15, 2020, 2:07pm UTC](https://discuss.elastic.co/t/garbage-collection-old-vs-young/255361/3 "2020-12-15T14:07:37Z")

</div>

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