views:

2022

answers:

8

Hi,

we need a tool to detect easily memory leaks in an ASP.NET Application. We have an application, which consumes lot of memory.

Thanks

A: 

Well, "easily" is the trick... however dotTRACE might be worth a look.

Marc Gravell
+2  A: 

Using WinDbg is not as easy as using dotTrace but it can help you to discover lots of oddities in your application. Other than that you can find invaluable information about debugging ASP.Net applications on Tess Ferrandez's blog.

idursun
+1 for Tess's Blog - Saw her present at Tech.Ed - she really knows her stuff, and her blog is full of useful tips on tracking down issues in ASP.NET applications
Zhaph - Ben Duguid
And she is going to prepare a new lab set :)
idursun
+2  A: 

Rob Mariani wrote a nice article on Tracking down managed memory leaks which helped me track down the dangling references in a desktop application.

Todd Smith
+1  A: 

check out Microsoft's FxCop which also analyzes performance issues, etc.

Spikolynn
A: 

.Net Memory Profiler. Used the trial version once. It was helpful, but I don't need it often enough to warrant buying one.

The thing I found was to ALWAYS make sure you dispose of any resources, particularly in DirectoryServices, that implement IDisposable.

tvanfosson
Actually, don't try to dispose disposable static resources such as Brushes.Black if you intend to use them again :) Learned that the hard way...
Spikolynn
A: 

I read about Ants Profiler. Good luck.

tobsen
A: 

Read Tess at If broken it is, fix it you should. It should get you on the right path.

idstam
+1  A: 

I have published a new article on the subject on MSDN. It contains a list of tools.

Fabrice