Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

Cache performance in ASP.NET 2.0

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
robm - 20 Sep 2007 14:35 GMT
Hi,

We have recently upgraded an application from .NET 1.1 to .NET 2.0.
It is a medium size enterprise application that makes quite heavy use
of the ASP.NET caching API to improve performance.  Since moving
to .NET 2.0 we have observed a marked degradation in performance in
certain areas of code.  In particular one function which accesses the
cache within a For loop seems to take considerably longer under high
load conditions.  Under normal load there doesn't appear to be any
difference in performance.  Extensive investigations have shown the
under high load the CPU of the web server is not maxed out, but
performance of the application drops off.  I have investigated the
cause of this and it appears to be to do with contention on the cache
between multiple worker threads.  On examining the framework code with
reflector there do seem to be some changes around locking between .NET
1.1 and .NET 2.0: specifically the addition of a new method
WaitInsertBlock inside the class CacheSingle.  Can anyone give me any
information about how the functionality has changed between the
framework versions and whether it is a likely cause of the problems
I'm experiencing.

Thanks,

Rob
Peter Bromberg [C# MVP] - 20 Sep 2007 20:34 GMT
robm,
It would be really hard to say since you are describing symptoms but we
don't have any idea what your code is doing, or how.  I use Caching in
ASP.NET 2.0 extensively and have never seen the kind of behavior you
describe. Maybe a little more detail of a snippet of working code sufficient
to reproduce the issue would help.
-- Peter
Recursion: see Recursion
site:  http://www.eggheadcafe.com
unBlog:  http://petesbloggerama.blogspot.com
BlogMetaFinder:    http://www.blogmetafinder.com

> Hi,
>
[quoted text clipped - 20 lines]
>
> Rob

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.