开发者

Debug released managed code (.net 3.5) using a dump file

开发者 https://www.devze.com 2023-01-06 15:45 出处:网络
Our application开发者_运维百科 started to have some strange performance problems in the production environment. Constant CPU usage, although the app doesn\'t seem to be doing anything, and high memory

Our application开发者_运维百科 started to have some strange performance problems in the production environment. Constant CPU usage, although the app doesn't seem to be doing anything, and high memory usage.

We've created a dump file of the process using the Task Manager's feature. Now we're trying to debug it, but it doesn't seem to be that easy :)

VS2010 won't debug managed code, the only action available is "Debug with Native Only", that's probably because of the app being a .NET 3.5 app.

Is there a way to see the managed call stacks for all threads in this kind of situation?


You can use Windbg( http://www.windbg.org/) to debug and resolve performance problems in production environment. Though you will not be able to perform thread stack analysis, it gives a snapshot of all objects in-memory that can be used to analyse your application.The SOS Debugging Extension (SOS.dll) helps you debug managed programs in the WinDbg.exe debugger and in Visual Studio.

If you are willing to shell out money, the redgate ants profiler is a safe bet.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号