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

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

set alert in case of Memory Leak


Hello community,

we have a memory leak problem. Now we basically try to set an alert if the heap memory rises over a threshold.

Because of the many GCs of the JVM it is no use to just monitor the used heap memory. Periodically memory dumps are due to the huge infrastructure and server count not possible.

Is there a easy way to only get the used memory after a GC is done? In that case, we would get a graph like drawn below and see if the memory is increasing step by step and the GC frees less and less memory.

I appreciate every idea and help. May be we just overlooked some functionality of dynatrace.




Dynatrace Advisor
Dynatrace Advisor

Hi Simon,

Have you taken memory snapshots to see which classes instance counts are increasing? if so then you can place memory sensors on these and actually chart these in a chart to show them growing over time and set alerts on these if you wish. Another way is to create an alert on the Garbage collection itself. Under the JVM measures in Dynatrace you can see young generation and old generation and set thresholds based on this. Also if you wish in 6.1 > versions you of Dynatrace you can use a measure under JVM called High memory usage for application process which returns the % of Committed memory vs Max memory and set an alert to see when your memory is rising.

Hope this helps.