Measuring Memory Useage

G

Guadala Harry

Just wondering if/how it is possible to measure how much memory (physical
and/or virtual) is used by objects stored in
1. Cache object
2. Application State
3. Session States (across all current sessions of an application)
4. Output Cache (Page/Control caching)

Thanks
 
B

bruce barker

you will notice little in the way of memory usage.

..net has no direct support for getting the memory footprint of any object.
you can estimate by serialing an object to a binary stream and getting the
size of the stream.

if you want to know about memory usage, then you want to download the win32
debugger, add the SOS.dll for .net GC support, and start peeking at the GC.

start here:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/DBGch01.asp


-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,733
Messages
2,569,440
Members
44,830
Latest member
ZADIva7383

Latest Threads

Top