HighTechTalks DotNet Forums  

Measuring Cache object sizes in ASP.NET 2.0

ASP.net Caching microsoft.public.dotnet.framework.aspnet.caching


Discuss Measuring Cache object sizes in ASP.NET 2.0 in the ASP.net Caching forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
chris
 
Posts: n/a

Default Measuring Cache object sizes in ASP.NET 2.0 - 09-18-2007 , 02:42 PM






I have an ASP.NET web application with some memory issues. I am
trying to quantify the amount of memory being used by the
application's Cache. I would also like to see the size of individual
Cached objects. I have searched the web and have come up empty on the
subject. It seems especially difficult in 2.0 because of the new
caching enhancements to serialization of types and objects, but I
could be wrong.

I am interested in knowing:
1. A way to monitor a web applications total Cached bytes in like
Perfmon.
2. A way to see the byte size of specific cached objects in an
accurate manner.

Thank you in advance,
Chris


Reply With Quote
  #2  
Old   
bruce barker
 
Posts: n/a

Default Re: Measuring Cache object sizes in ASP.NET 2.0 - 09-18-2007 , 02:48 PM






for number one, use the perfmon counters (can be called from code via
the registery calls).

for number two, there is no great solution. the most common is to binary
serialize the cache objects and add up the buffer sizes. this is only an
esitmate.

if you really need to know, then see the sos.dll addin for the win32
debugger.

-- bruce (sqlwork.com)

chris wrote:
Quote:
I have an ASP.NET web application with some memory issues. I am
trying to quantify the amount of memory being used by the
application's Cache. I would also like to see the size of individual
Cached objects. I have searched the web and have come up empty on the
subject. It seems especially difficult in 2.0 because of the new
caching enhancements to serialization of types and objects, but I
could be wrong.

I am interested in knowing:
1. A way to monitor a web applications total Cached bytes in like
Perfmon.
2. A way to see the byte size of specific cached objects in an
accurate manner.

Thank you in advance,
Chris


Reply With Quote
  #3  
Old   
chris
 
Posts: n/a

Default Re: Measuring Cache object sizes in ASP.NET 2.0 - 09-18-2007 , 09:07 PM



Thanks Bruce. I will try the sos.dll, we were just playing with that
today.

Chris


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.