# New GC metrics in Elastic 8.10

**URL:** <https://discuss.elastic.co/t/new-gc-metrics-in-elastic-8-10/343384>\
**Category:** APM\
**Tags:** elastic-stack-monitoring, java\
**Created:** [September 19, 2023, 3:19pm UTC](https://discuss.elastic.co/t/new-gc-metrics-in-elastic-8-10/343384 "2023-09-19T15:19:49Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![senyam08](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/senyam08/32/106230_2.png) [@senyam08](https://discuss.elastic.co/u/senyam08)\
**Post date:** [September 19, 2023, 3:19pm UTC](https://discuss.elastic.co/t/new-gc-metrics-in-elastic-8-10/343384/1 "2023-09-19T15:19:49Z")

</div>

We are using elastic stack 8.10.1 and elastic java agent 1.42.  
With new changes to GC collection and memory pools usage, would like to clarify the following

1. GC collection count per min is too high (i see 510000 per min)
2. GC collection time per min is also really high (8,600,500 per min)

Is there any document with description on what it means. For GC collection time, is it collection GC pause time (excluding concurrent mark time as application will be running during concurrent phase)

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

Heap memory usage by pool shows only old generation usage.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/d/4/d4c98dbd28a9a0ad6d6643a17446026e8a0e926c.jpeg)

---

<div class="post-metadata">

**Author:** ![Jack\_Shirazi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jack_shirazi/32/91641_2.png) [@Jack\_Shirazi](https://discuss.elastic.co/u/Jack_Shirazi)\
**Post date:** [September 19, 2023, 5:08pm UTC](https://discuss.elastic.co/t/new-gc-metrics-in-elastic-8-10/343384/2 "2023-09-19T17:08:20Z")

</div>

Is that showing the combined metrics of several services with the same service name?

---

<div class="post-metadata">

**Author:** ![senyam08](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/senyam08/32/106230_2.png) [@senyam08](https://discuss.elastic.co/u/senyam08)\
**Post date:** [September 19, 2023, 6:02pm UTC](https://discuss.elastic.co/t/new-gc-metrics-in-elastic-8-10/343384/3 "2023-09-19T18:02:15Z")

</div>

First issue is its not filtering when i navigate from instances list in APM service overview page. I need to click on metrics tab to get the new view with additional metrics  
Then i see node name as filter(it should be container or pod in description). Metrics not available with single select. Once i select more than 1, started seeing metrics with really high number. Once i change time range to longer duration, numbers are down to 3 digits.  
Could someone clarify or link to document with metrics description for CPU, system Memory(is it cgroup stats against container memory limit), GC heap memory, GC time.  
Particularly with GC time its not clear on what it means. is it application pause time, how its been aggregated (Average?) with long duration?

---

<div class="post-metadata">

**Author:** ![Jack\_Shirazi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jack_shirazi/32/91641_2.png) [@Jack\_Shirazi](https://discuss.elastic.co/u/Jack_Shirazi)\
**Post date:** [September 20, 2023, 8:33am UTC](https://discuss.elastic.co/t/new-gc-metrics-in-elastic-8-10/343384/4 "2023-09-20T08:33:59Z")

</div>

The GC times are the ones produced by GarbageCollectorMXBean.getCollectionTime(). The details are provided with that method. Broadly, this should be pause times for the young generation but full cycle times for the old gen (so the old gen times tend not to be that useful for analysis). These are correct in the elastic documents, but they are accumulated times not steps, and it's possible that they don't display correctly when there are multiple services being shown, hence my question, it will help for me to try and reproduce. From your answer it looks like you are indeed looking at stats for multiple services in one graph. I'll look at whether there are issues for that scenario

---

<div class="post-metadata">

**Author:** ![senyam08](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/senyam08/32/106230_2.png) [@senyam08](https://discuss.elastic.co/u/senyam08)\
**Post date:** [October 16, 2023, 7:10pm UTC](https://discuss.elastic.co/t/new-gc-metrics-in-elastic-8-10/343384/5 "2023-10-16T19:10:06Z")

</div>

Thanks Jack. I am able to filter down to particular service. Looks like navigating from service overview page to JVM stats by click on instance link from overview page, navigate to old JVM metrics view. Need to click explicitly on metric tab to get new view and then need to search and select container/JVM to get new GC metrics. Is this expected behavior?

---

<div class="post-metadata">

**Author:** ![Jonas\_Kunz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonas_kunz/32/110740_2.png) [@Jonas\_Kunz](https://discuss.elastic.co/u/Jonas_Kunz)\
**Post date:** [October 17, 2023, 10:14am UTC](https://discuss.elastic.co/t/new-gc-metrics-in-elastic-8-10/343384/6 "2023-10-17T10:14:35Z")

</div>

To me that indeed looks like a UI bug. I'll open a Ticket with the UI Team, thanks for reporting!

---

<div class="post-metadata">

**Author:** ![Jonas\_Kunz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jonas_kunz/32/110740_2.png) [@Jonas\_Kunz](https://discuss.elastic.co/u/Jonas_Kunz)\
**Post date:** [October 17, 2023, 11:06am UTC](https://discuss.elastic.co/t/new-gc-metrics-in-elastic-8-10/343384/7 "2023-10-17T11:06:55Z")

</div>

[Here's](https://github.com/elastic/kibana/issues/169085) the corresponding Issue you can follow.

---

<div class="post-metadata">

**Author:** ![senyam08](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/senyam08/32/106230_2.png) [@senyam08](https://discuss.elastic.co/u/senyam08)\
**Post date:** [October 17, 2023, 12:14pm UTC](https://discuss.elastic.co/t/new-gc-metrics-in-elastic-8-10/343384/8 "2023-10-17T12:14:45Z")

</div>

thanks

---

<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:** [November 14, 2023, 12:15pm UTC](https://discuss.elastic.co/t/new-gc-metrics-in-elastic-8-10/343384/9 "2023-11-14T12:15:42Z")

</div>

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