ASP.NET Performance

Published Wednesday, February 9, 2005 8:59 PM

I have been absolutely swamped lately with work, and in particular determining and rectifying performance issues with a major ASP.NEt application we are developing. Measuring, tuning, rectifying and reporting are all part of my current tasks. We are using only out of the box tools to do so, in particular, the CLR Profiler for memory profiling and Microsofts Application Centre Test for generating load. During this task, I have learned a couple of things. What is one of the most useful features of the .Net framework, but also one potentially one of the most dangerous?

Well, my answer is the Garbage Collector, or GC as its tentatively known. Its a fantastic thing, in that resources and memory is cleaned up on your behalf in a very efficient manner, eliminating some of the requirements of the old C/C++ days of manually having to release everything. It can also be lull developers into a false sense of security, especially where memory usage and performance is concerned. During my profiling of certain elements of the application, it became apparent that objects were being created and used all over the place, with the assumption that the GC would collect them later. Well as you can imagine, this lead to inefficient performance and memory consumption in many areas.

The CLR Profiler has been an invaluable tool for aiding me in determining whats going on, and where in the various parts of the application, which itself is quite large and complex.

Take a look at the comparitive "Histogram by Age" charts below.

Here is a link to the before image, and here is the after image.

This was from an isolated part of the application but is indicative of one of the many improvements that have been made using this tool.

This will also be part of a presentation that I hope to be making at TechEd 2005 in Australia at the Gold Coast later this year. I certainly have not been confirmed in any way, but have voiced my wish to present this kind of material. Hopefully, I get a chance to do so. If you feel this would be valuable, or even if you think it wouldn't be, I'd love to hear your opinion.


by Glav


# Geoff Appleby said on Wednesday, February 9, 2005 6:28 AM

Dude. I don't know if I'll be getting to TechEd, but it'd definately be a good one to present.

You coming to CodeCamp?

# Paul Glavich said on Thursday, February 10, 2005 6:05 AM

Hi Geoff,

Thanks for the comments. I will hopefully be coming to Code Camp. I haven't registered yet, but am trying to make sure work doesn't suck up that weekend. we are doing a live implementation that week and they have requested I be available that weekend but I am resisting :-) Our app will be ready and deployed well before the weekend.

Anyways, I hope to be registering soon.

Leave a Comment


This Blog