Can I run a .NET garbage collection from WinDbg?

后端 未结 4 2110
北海茫月
北海茫月 2021-01-04 01:40

I\'m looking into why a managed process is using a lot of memory. Is there a way to run GC.Collect(3) from WinDbg, so that I can focus on the actual memory allo

4条回答
  •  没有蜡笔的小新
    2021-01-04 02:44

    WinDBG is first and foremost a Win32/Kernel Debugger. So you may want to try one of the managed debuggers, like mDBG. But I used to do .NET Debugging support for MSFT, and I've never needed anything like that to troubleshoot memory leaks.

提交回复
热议问题