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)
 

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

Back
Top