Memory usage in your ASP.NET app

At the PDC I saw a presentation where some optimization tips on memory usage in ASP.NET pages were given. The performance monitor was used to look at Gen 0, Gen 1 en Gen 2 usage of the garbage collector. The example was using a StringBuilder class to combine data and write this out versus using direct writes using Response.Write (which was much faster and consumes less memory). I am wondering if there are any good tools to look at memory consumption and garbage collection on a high-load website... Anyone?
Published Monday, November 03, 2003 4:04 PM by svdoever
Filed under:

Comments

Monday, November 03, 2003 10:35 AM by Nicko

# re: Memory usage in your ASP.NET app

The most powerfully memory profiling app I have used is:

http://www.scitech.se/memprofiler/

It has a few rough edges but it will tell you exactly how many of each type of object you have, how fast you are allocating them, how many you allocated/freed since the last snapshot and exactly where they were allocated in the code.

If your web site load is too high then you can just use perfmon to monitor the asp & GC performance counters. This gives you a nice graph of allocations and requests etc..
Monday, November 03, 2003 10:35 AM by Nicko

# re: Memory usage in your ASP.NET app

The most powerfully memory profiling app I have used is:

http://www.scitech.se/memprofiler/

It has a few rough edges but it will tell you exactly how many of each type of object you have, how fast you are allocating them, how many you allocated/freed since the last snapshot and exactly where they were allocated in the code.

If your web site load is too high then you can just use perfmon to monitor the asp & GC performance counters. This gives you a nice graph of allocations and requests etc..
Monday, November 03, 2003 10:35 AM by Nicko

# re: Memory usage in your ASP.NET app

The most powerfully memory profiling app I have used is:

http://www.scitech.se/memprofiler/

It has a few rough edges but it will tell you exactly how many of each type of object you have, how fast you are allocating them, how many you allocated/freed since the last snapshot and exactly where they were allocated in the code.

If your web site load is too high then you can just use perfmon to monitor the asp & GC performance counters. This gives you a nice graph of allocations and requests etc..
Monday, November 03, 2003 11:47 AM by SBC

# re: Memory usage in your ASP.NET app

For starters, ry the new CLR Profiler v2 (http://weblogs.asp.net/sbchatterjee/posts/34858.aspx). I'll post some more info regarding .NET performance testing soon.

Leave a Comment

(required) 
(required) 
(optional)
(required)