[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.caching

Measuring Cache object sizes in ASP.NET 2.0

chris

9/18/2007 7:42:00 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

5 Answers

unknown

9/18/2007 7:49:00 PM

0

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:
> 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
>

chris

9/19/2007 2:08:00 AM

0

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

Chris

Beam Me Up Scotty

3/20/2010 2:16:00 AM

0

On 3/19/2010 1:11 AM, Gnome@cold.com wrote:
> On Thu, 18 Mar 2010 14:42:45 -0400, Beam Me Up Scotty
> <Then-Fire-A-Full-Spred-Of-Photon-Torpedoes@blackhole.NebulaX.com>
> wrote:
>
>> Pick your own Socialist...
>
> How?
>
> We don't have any here.
>
You can pick your friends and you can pick your nose, but you can't pick
your friends nose.

Gnome

3/20/2010 4:22:00 AM

0

On Fri, 19 Mar 2010 22:15:33 -0400, Beam Me Up Scotty
<Then-Fire-A-Full-Spred-Of-Photon-Torpedoes@blackhole.NebulaX.com>
wrote:

>You can pick your friends and you can pick your nose, but you can't pick
>your friends nose.

You aint my friend, and I ain't picking your nose.

It's your duty to pick your own nose and contribute one booger to pay
for all you get

Beam Me Up Scotty

3/20/2010 3:05:00 PM

0

On 3/20/2010 12:22 AM, Gnome@cold.com wrote:
> On Fri, 19 Mar 2010 22:15:33 -0400, Beam Me Up Scotty
> <Then-Fire-A-Full-Spred-Of-Photon-Torpedoes@blackhole.NebulaX.com>
> wrote:
>
>> You can pick your friends and you can pick your nose, but you can't pick
>> your friends nose.
>
> You aint my friend, and I ain't picking your nose.
>
> It's your duty to pick your own nose and contribute one booger to pay
> for all you get
>
social justice is another Utopian Socialist platitude.

*You can pick your friends and you can pick your nose, but *you* *can't*
*pick* *your friends nose*