Showing results for 
Show  only  | Search instead for 
Did you mean: 

This product reached the end of support date on March 31, 2021.

Can we know Garbage Collection for each required method?


Can we know Garbage Collection for each required method? @reethika


DynaMight Leader
DynaMight Leader

What exactly do you mean by gargabe Collection of requered method?

If you wan't to know if a certain method was interrupted by Garbage Collection, you can check that in the Breakdown Column of the PurePath Tree.

Dynatrace Certified Master, AppMon Certified Master - Dynatrace Partner -

Dynatrace Champion
Dynatrace Champion

garbage collection in general is happening completely independent from method executions.

however, it is possible that garbage collections influence the execution time of methods, of course. especially when so-called stop-the-world GCs happen, basically the whole JVM/CLR is halted and as such all currently executed methods are affected by this.

this is also exactly what AppMon is showing as "suspension time", e.g. in the breakdown column in the PurePath dashlet, as mentioned by Patrick above.

HTH, Christian

Dynatrace Pro
Dynatrace Pro

Hi Reethika,

Additionally to the answer of Christian and Patrick: Have a look at the suspension dashlet (you can find it under diagnose events) to see all methods (with a sensor) influenced by a stop-the-world garbage collection and what the impact was on the specific method. This might also help you with figuring out which methods are generating the most garbage, as they are more likely to trigger a garbage collection.

Kind regards,