Jump to content

Apache MaxClients


sirjune

Recommended Posts

Hi,

Can someone kindly elaborate what MaxClient means?  i have set it up to 256.

 

Does it mean, my server can only have 256 users (unique) at max?

or

Does it mean 256 connections from non-unique users? like if a single user connects to my site and he gets the index.html file, with links to 10 jpgs, and 10 gif files .. -does it mean that user had 21 connections to my server?

 

thanks,

sir june

 

Link to comment
Share on other sites

The MaxClients directive sets the limit on the number of simultaneous requests that will be served. Any connection attempts over the MaxClients  limit will normally be queued, up to a number based on the ListenBacklog  directive. Once a child process is freed at the end of a different request, the connection will then be serviced.

 

http://httpd.apache.org/docs/2.2/mod/mpm_common.html#maxclients

 

"Does it mean 256 connections from non-unique users? like if a single user connects to my site and he gets the index.html file, with links to 10 jpgs, and 10 gif files .. -does it mean that user had 21 connections to my server?"

 

 

Yes, and no.  If the user's client (as in web browser) does keep-alive requests, then it will open anywhere between 1 and 21 connections.

 

Keep-alive requests essentially keep the socket open so sequential requests don't need to reopen a new socket.

 

Read http://httpd.apache.org/docs/2.2/mod/core.html#keepalive

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.