How do I diagnose a Handle leak?

前端 未结 2 1743
慢半拍i
慢半拍i 2021-01-11 22:56

I\'ve got a process that is hosting a WCF ServiceHost. It leaks handles like crazy according to ProcessExplorer. I\'ve gone over the code and can\'t find anything obvious th

2条回答
  •  南方客
    南方客 (楼主)
    2021-01-11 23:37

    Use a memory profiler - they can help to find such leaks, for example:

    • http://www.red-gate.com/products/dotnet-development/ants-memory-profiler/ (commercial)
    • CLR Profiler from MS (free)

提交回复
热议问题