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

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

Tracing StackOverflowException on .NET Agents

Hi guys,

So we have these agents whose CLR is shutting down every 50 seconds due to StackOverflow, I only know it is due to StackOverflow because I see it on the Windows Event Viewer..

 

According to stackoverflow.com these issues are super hard to track down, is there anything I can do with Dynatrace to check it? I am looking through logs, exceptions, errors, purepaths and what have you but I cannot find a single clue of what is happening, I wish I could simply see the stack trace that was overflown...

Every switch of color is a new CLR going up:

 

Anyone have experience tracking down Stackoverflow exceptions on NET?

 

Thanks

1 REPLY 1

andreas_grabner
Dynatrace Guru
Dynatrace Guru

If you are lucky and you have Sensors you should find PurePaths that are really long in Size - meaning - lots of nodes.

You might also be lucky with the Auto Sensors. So - open the Methods Hotspot and click through the top methods and then focus on the reverse call stack on the bottom. You might find some really deep one that would potentially result in stack overflows.

The other thing you can try is a CPU Sample