The KB article every one should know about

Have you read http://support.microsoft.com/?kbid=307340? If not, I suggest you do so. If you need convincing or simply want to know why this problem occurs I suggest you keep reading. The problem described in the article above can cause your application to spike in CPU time, Memory usage or both. This will lead to your application…

10

Memory management in the .NET Framework

This is a subject that has been covered before and I have no intention of writing the ultimate post on the subject. Still I think this is something that every good developer should know. Why do I need to know this? My colleagues and I are quite often asked about the necessity of knowing how…

12

Why adding more memory won’t resolve OutOfMemoryExceptions

Quite often I am met with the incorrect assumption that out of memory exceptions can be resolved by adding more memory. I can understand why you’d think that, but actually it won’t matter at all. Additional RAM may increase performance, but an additional 8GB of memory won’t increase the available amount of memory for the…

7

I am getting OutOfMemoryExceptions. How can I troubleshoot this?

Problem: You’ve written an ASP.NET application that is getting OutOfMemoryExceptions. Cause: Let’s find out… Resolution: Use Windbg to take a look at the heap.   Is it a leak? Take a look at the memory usage of you application using perfmon. If memory is slowly increasing and never released, then you have a leak. If…

13

Are you getting OutOfMemoryExceptions when uploading large files?

Problem: Using the WebClient.Upload method for posting large files will eventually leave you stranded with OutOfMemoryExceptions. Cause: WebClient.Upload reads the entire file to memory by default. Resolution: Build your own uploader. Scenario: One of my customers was using WebClient.Upload in a Winforms application to transfer files to a webserver. The idea in itself was fine,…

38