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 specified for Apache max connections.

/usr/local/apache/bin/httpd -V | grep HARD_SERVER_LIMIT

2. If it is there, then you would need to 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.

Both comments and pings are currently closed.

Comments are closed.