Set in httpd.conf:
MaxClients N
1, apache1.x
n is an integer that represents the maximum number of connections between 1 and 256, if you want to allow Apache to support more connections, then you need to modify the Httpd.h file in the source code, edit the/httpd-2.0.59/include/httpd.h in the Hard_server_ The limit value is changed to large and then compiled.
Ways to increase the maximum number of Apache connections:
Set in httpd.conf:
MaxClients N
n is an integer that represents the maximum number of connections between 1 and 256, if you want to allow Apache to support more connections, then you need to modify the Httpd.h file in the source code, the definition of the Hard_server_limit value and then compile
2, apache2.x
The system defaults to the number of 150 connections, and the following example is modified to 1500.
modifying httpd.conf files
Found it
<ifmodule prefork.c>startservers 8MinSpareServers 5MaxSpareServers 20MaxClients 150MaxRequestsPerChild 1000</ifmodule> modified maxclients 150 to Serverlimit 1500MaxClients 1500
Then save the exit.
Restart the HTTP service (/etc/rc.d/init.d/httpd restart)