Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > IIS and Session Variables

Reply
Thread Tools

IIS and Session Variables

 
 
Eric
Guest
Posts: n/a
 
      08-14-2008
What are the dangers of using session variables in IIS 6.0. My application
is servicing about 500 users each of which are authenticated separately and
have individual characteristics that are stored in cache and session
variables.

My concern is that memory could become an issue if concurrent user activity
is high. Is this a legitimate concern? Are their settings on the host server
that should be increased in order to prevent a memory issue?


 
Reply With Quote
 
 
 
 
Anthony Jones
Guest
Posts: n/a
 
      08-18-2008
"Eric" <(E-Mail Removed)> wrote in message
news:Ol9HnPk$(E-Mail Removed)...
> What are the dangers of using session variables in IIS 6.0. My application
> is servicing about 500 users each of which are authenticated separately

and
> have individual characteristics that are stored in cache and session
> variables.
>
> My concern is that memory could become an issue if concurrent user

activity
> is high. Is this a legitimate concern? Are their settings on the host

server
> that should be increased in order to prevent a memory issue?
>
>


The fact that you use the terms 'cache' and 'session' together suggest that
your question is related to ASP.NET whereas this NG is for Classic ASP. Use
m.p.dotnet.framework.aspnet

That said, its difficult to give a definitive answer without some suggestion
as to how much memory a single use will require. Cache won't be a problem
it'll start dropping stuff if demand gets high. Session might be problem
but really does depend on how much each session costs.



--
Anthony Jones - MVP ASP/ASP.NET



 
Reply With Quote
 
 
 
 
Old Pedant
Guest
Posts: n/a
 
      08-20-2008


"Eric" wrote:

> What are the dangers of using session variables in IIS 6.0. My application
> is servicing about 500 users each of which are authenticated separately and
> have individual characteristics that are stored in cache and session
> variables.


Do the math.

Suppose all 500 users happened to be online simultaneously.

Suppose your web server has 2GB of memory (even my laptop has that much).

Suppose you are willing to dedicate 5 megabytes (a drop in the bucket) of
memory to session variable usage.

So 5MB/500 is 10KB per user.

Meaning that is you don't store more than 10KB of information, per user, in
session variables, you are way way home free.

Willing to dedicate 50MB to the cause? Now you can have 100KB per user.

But I'm here to tell you now that if you have 100KB per user, you are doing
something wrong, anyway. At that point, you should be using a database as
your "cache" instead of session variables. 2KB or 3KB? Sure.
*Occasionally* 10KB? Maybe. But 100KB? You have a bad design.


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Put variables into member variables or function variables? tjumail@gmail.com C++ 9 03-23-2008 04:03 PM
Session Timeout problems-web.confg session state and IIS session s =?Utf-8?B?Um9iSEs=?= ASP .Net 4 04-11-2007 04:52 PM
Session Variables and Static Variables cobus.lombard@gmail.com ASP .Net 1 03-26-2006 11:05 AM
Global Session Variables and Session State Earl Teigrob ASP .Net 1 12-17-2003 07:02 AM
session variables losing information with IIS 4.0 and I.E. 5.0 Pam Downey ASP General 1 11-14-2003 08:44 PM



Advertisments