SBDavid
Jun 10th, 2009
Jun 10th, 2009
How to increase the MaxClients value greater than the current HARD_SERVER_LIMIT set for Apache.
How to increase the MaxClients value greater than the current HARD_SERVER_LIMIT set for Apache.
1. Check if there is any hard server limit.
/usr/local/apache/bin/httpd -V | grep HARD_SERVER_LIMIT
2. Look for this directive in the Apache’s header file /usr/local/apache/include/httpd.h
3. Edit this file and increase the HARD_SERVER_LIMIT as per your requirement.
4. Recompile Apache using
/scripts/easyapache
5. There you will have an option to increase the Apache HARD_SERVER_LIMIT, since easyapache looks for the header files and sees the new value while build. By default the MaxClients value will be 256.
Once the build completes, you can see the new HARD_SERVER_LIMIT.