Measuring Memory Useage

  • Thread starter Thread starter Guadala Harry
  • Start date Start date
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
 
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)
 
Back
Top