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.

Measuring Cache object sizes in ASP.NET 2.0

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
chris - 18 Sep 2007 20:42 GMT
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
bruce barker - 18 Sep 2007 20:48 GMT
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)

> I have an ASP.NET web application with some memory issues.  I am
> trying to quantify the amount of memory being used by the
[quoted text clipped - 12 lines]
> Thank you in advance,
> Chris
chris - 19 Sep 2007 03:07 GMT
Thanks Bruce.  I will try the sos.dll, we were just playing with that
today.

Chris

Rate this thread:







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.