Resolve JVM GC Collection Time and Count Discrepancies Using DQL

Hi,

I am trying set up a query for jvm gc.collection_time & gc.collection_count.

timeseries avg(dt.runtime.jvm.gc.collection_time), by: { host.name }, filter: { (host.name == xxxx)}

timeseries avg(dt.runtime.jvm.gc.collection_count), by: { host.name }, filter: { (host.name == xxxx)}

My value are not matching when  check from comand line using jstat

garbage collection count 70164
garbage collection time 1182.307

where as in dyntrace the value are not even close

hiya,

Looking with your timeseries metric configuration, its understood that you are using the average to calculate the GC count and time. whereas with the jstat command it will be more of sum or the sum of samples. So, would recommend to change the aggregation  to sum and validate once.

timeseries sum instead of timeseries avg

Thanks

We tried sum but the value is still not matching

Hey @koushickpatel ,
I just wanted to check in and see if you still need help with this. If so, I’d be happy to look into it for you! :blush:
Please let me know what works best for you.