Any tool to detect which dll is leaking memory?

2019-04-15 04:43发布

问题:

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!

回答1:

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/



回答2:

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