Jump to content

Session Limit


phpretard

Recommended Posts

There was a similar question asked on a different forum, here are the answers:

 

>2. Is there a practical limit on the number of simultaneous

>sessions a simple server can handle? Would exceeding

>this generate a "too many users" message or something?

 

Again, you're limited by the session handler. If your OS has a limit

on the number of files in a single directory, that's your answer.

 

------------------

 

> 2. Is there a practical limit on the number of simultaneous

> sessions a simple server can handle? Would exceeding this

> generate a "too many users" message or something?

 

UNIX doesn't work real well with directories with large numbers

of files in them. I'd try to keep it well under 100,000 session

files. However, you can easily write a session handler that

stuffs sessions in a database table rather than in files. This

has advantages that the sessions can be accessed from multiple

round-robin servers serving the same content (for when you run

low on CPU power). That can probably handle a few hundred million

simultaneous sessions (but probably not the associated hit rate

unless you've got some really powerful hardware).

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.