How to increase the maximum number of Apache connections? Details of

  

Set in httpd.conf:

MaxClients n

1, apache1.x

n is an integer, indicating The maximum number of connections, the value range is between 1 and 256. If you want apache to support more connections, you need to modify the httpd.h file in the source code, edit /httpd-2.0.59/include/httpd.h The HARD_SERVER_LIMIT value is changed to larger and then compiled.

To increase the maximum number of Apache connections:

Set in httpd.conf:

MaxClients n

n is an integer, indicating the maximum number of connections, The value range is between 1 and 256. If you want apache to support more connections, you need to modify the httpd.h file in the source code, change the defined HARD_SERVER_LIMIT value and then compile

2. Apache2.x

The system defaults to 150 connections. The following example is modified to 1500.

Modify the httpd.conf file

Find

Then save and exit.

Restart the http service (/etc/rc.d/init.d/httpd restart)

Copyright © Windows knowledge All Rights Reserved