Any tool to detect which dll is leaking memory?

2019-04-15 04:49发布

I have an application which includes many dlls (managed and unmanaged). The application is leaking memory when it is executing some functionalists. So I am wondering, is there anyway to detect which exactly dlls are leaking memory when the functionality is running?

I am not talking about at source code level yet, just locate the dlls that leak memory.

Thanks!

2条回答
在下西门庆
2楼-- · 2019-04-15 04:59

ANTS memory profiler is the best one out there in my opinion. It isn't free, but it does have a 14 day free trial.

http://www.red-gate.com/products/dotnet-development/ants-memory-profiler/

查看更多
可以哭但决不认输i
3楼-- · 2019-04-15 05:11

Sounds like you need a profiler! If used properly you can not only find out what dll file is leaking memory, but you can find out what class/method is leaking memory. I personally like to use the Eqatec profiler.

There are several free or pay for profilers out there. And plenty of information out there to figure out which one will work best for your needs. This question is very popular and can help guide you into finding the profiler which fits you best

查看更多
登录 后发表回答