Session variables size?

  • Thread starter Thread starter Lars Netzel
  • Start date Start date
L

Lars Netzel

Hi!

Is there a way to check to see how much bytesize a certain Session Variable
is using in RAM?

I have a lot of DataSets in session Objects.. I would like to know how heavy
this is!

best regards
/Lars
 
I asked this question a while back and basically got a NO as the answer.
I was a bit surprised by that. I assumed that manged objects would know lots
of details including how much memory they occupy.
Turns out it is far more difficult than that.
Oh well.
 
the usual trick is to serialize the object to binary bytestream, then check
the size of the stream. this will be a close approx, but not exact. you can
use the win32 debugger with sos.dll and look at the objects in the GC. you
will have to add up all the parts though.

-- bruce (sqlwork.com)
 
Back
Top