I'm having System.OutOfMemory exceptions in my .NET开发者_StackOverflow Windows Service. I'm not sure what's causing it. I suspect fragmentation in the large object heap but i'm not sure. How can I verify my hypothesis?
I can use debuggers of all kinds, but what in the debugger should I look for?
Thanks
CLR Profiler is your friend for this. It can attach to a Windows Service and gather all the metrics you need to find what's the culprit when your OOM hits.
I guess this happens randomly and never when you are debugging on your machine, right?
What you can do is to create a dump and analyse the remains.
You need to turn to the true master of debugging, Tess. She is the Chuck Norris of debugging.
Check this out, for example.
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论