Operating System - HP-UX
1821469 Members
2976 Online
109633 Solutions
New Discussion юеВ

Apache server (maxclients)

 
j773303
Super Advisor

Apache server (maxclients)

Does this parameter (MaxClients) have maximun value ? or it depend on hardware resource (CPU and RAM) ?
- Currently, my web server running on rp2470 with 1CPU and 1GB RAM, does anyone have idea how much MaxClient or page view it can perform ?
Hero
2 REPLIES 2
Con O'Kelly
Honored Contributor

Re: Apache server (maxclients)

Hi

My understanding is that there is no maximum value, the default is 256. You should definitely exercise care when setting this value.

See the Performance Tuning Guide link (Hardware & Operating System Issues) for info on setting MaxClients.
http://httpd.apache.org/docs/misc/perf-tuning.html

The directives link will give you more info on various Apache directives such as Maxclients.
http://httpd.apache.org/docs/mod/directives.html

Cheers
Con
Rajeev  Shukla
Honored Contributor

Re: Apache server (maxclients)

Hi,
You can have this value set to maximum 256, thats the default hard limit, but can be over written by changing the parameter "HARD_SERVER_LIMIT" in httpd.h.
http://www.apacheref.com/ref/http_core/MaxClients.html (have a look at this)
But this value should be choosen as low as possible with minimum impact on your webserver, here is something intresting i found for you

Low MaxClients


Set your MaxClients low, such that if you have that many httpd servers running, which will happen on busy site, your system will not start swapping to disk because of excessive RAM usage. Typical settings are less than 100 even with 1 gig RAM! To handle more client connections, look into a dual server, mod_proxy front end

from http://www.apache-asp.org/tuning.html