Posterous theme by Cory Watilo

How to tell when memory leaks are about to kill your Asp.Net application

I just finished debugging an Asp.Net application that was dying intermittently from memory leaks caused by third party DLL's (in this case, the third party being microsoft). After mucking around trying to find what was wrong (after all, the private bytes were looking healthy at ~100mb), finally figured out what was the problem. It got to the stage where I could call our server admins and say 'the server is about to crash in the next hour', which got to be simultaneously good for a laugh and good for our users. Anyway, here's how its done:

Read the rest of this post »