23 Feb 2023 04:06 AM
This was asked back in 2020 but now that we're 2 to 3 years out I figured I'd ask again.
Also, with Dynatrace's push for API first I thought it might be relevant to ask again.
We have a need to trigger this when a specific process reaches 86% of heap for 5 minutes. That way we can get a dump right before it freezes up.
(builtin:tech.jvm.memory.pool.used:filter(and(or(in("dt.entity.process_group_instance",entitySelector("type(process_group_instance),entityId(~"PROCESS_GROUP_INSTANCE-84A1A852CED43316~")"))))):splitBy():max) / (builtin:tech.jvm.memory.pool.max:filter(and(or(in("dt.entity.process_group_instance",entitySelector("type(process_group_instance),entityId(~"PROCESS_GROUP_INSTANCE-84A1A852CED43316~")"))))):splitBy():max)*(100)
24 Feb 2023 02:42 PM
We too are looking to automate these on our full stack webspehere applications as we routinely see memory leaks here and with mule. We are looking at ways to automate a mem dump using ansible tower and recycle the service.