Sunday, December 04, 2005

I'll be spending Christmas searching for memory leaks

I got a note from my web host today letting me know that they've detected some pretty heavy RAM usage in one of the larger sites I manage. Great.

While I've got enough to worry about Christmas shopping, shooting PSAs, 'Seasons Greetings' commercials, blogging, VODcasting, reporting, hosting TV and radio shows, emceeing events and a kajillion other things, I've got to be on the holiday hunt for memory leaks in my web app. Fantastic.

Seriously though, this does concern me, as this has been a traffic-based concern in the past. Hopefully I'll be able to identify what type(s) of user behavior and what specific scripts are dedicating server RAM. Recycling the site's application pool cut the RAM allocation down by more than a half, which implies that it might be an excessive amount of stored cache items. That's easy enough to fix - reduce the CacheDuration for ASP.NET pages using OutputCaching and reduce the expiration/rehydration timespans for those directly inserted in the .NET Cache API.

Hope that does it.

Comments:

Post a Comment



Links to this post:

Create a Link



<< Home

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]