p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

  Return to Index  

proasp_howto thread: Memory use of session variables

Message #1 by "Steve Dierling" <sdierling@g...> on Tue, 13 Aug 2002 13:28:40
Unless you are storing object references, or large arrays, in session scope,
I don't think this would be the cause of your problem.

Assume you have 200 bytes of data (userID, username, some GUID for a
database driven shopping cart) stored in session scope. 5 users would be
using 1KB. 5000 users would be using 1MB. To fill a single 256 MB chip you'd
need to have 1,280,000 active sessions! Adding another 256 MB chip would
give you nearly 2.5 million active sessions.

Somehow I don't think this woudl be the cause of memory related problems.
You'd be having bandwidth problems, processor problems etc well before you
hit this limit.


From: "Steve Dierling" <sdierling@g...>
Subject: [proasp_howto] Memory use of session variables

: I have been assigned the task of determining how much memory is being used
: by each users session variables.  Does anyone have an idea of how to
: calculate this?


  Return to Index