You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Søren Neigaard <s....@mobilethink.dk> on 2003/02/27 12:54:45 UTC

[users@httpd] MaxClients = clients who can simultaneously connect?

If I read the following:

#
# Limit on total number of servers running, i.e., limit on the number
# of clients who can simultaneously connect --- if this limit is ever
# reached, clients will be LOCKED OUT, so it should NOT BE SET TOO LOW.
# It is intended mainly as a brake to keep a runaway server from taking
# the system with it as it spirals down...
#
MaxClients 250

Is there then a good hand rule to calculate the max number of users each
second this server can handle, or no?

Med venlig hilsen/Best regards
Søren Neigaard
System Architect
................................
Mobilethink A/S
Arosgaarden
Åboulevarden 23, 5.sal
DK - 8000 Århus C
Telefon: +45 86207800
Direct: +45 86207810
Fax: +45 86207801
Email: s.neigaard@mobilethink.dk
Web: www.mobilethink.dk
................................


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] MaxClients = clients who can simultaneously connect?

Posted by Joshua Slive <jo...@slive.ca>.
On Thu, 27 Feb 2003, Søren Neigaard wrote:
> Is there then a good hand rule to calculate the max number of users each
> second this server can handle, or no?

It has little to do with the number of users per second.  One request can
take a hundredth of a second or several minutes.  And one user may use
several connections at the same time.  MaxClients controls the total
number of connections that can be made at once.

The most basic method of determining a good setting for MaxClients is to
find the amount of memory per apache process (eliminating shared memory)
and then divide the amount of free memory on your system by that number.
MaxClients most important job is to protect against the server getting
swamped by trying to serve requests out of swap space.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org