[Apache fix Error] server reached MaxClients setting, consider raising the MaxClients setting

It is a bit misused term error if "maxclients REACHED server setting, consider raising the maxclients setting“. It's more of a notification administratorThe server has been warned that the "MaxClients" limit has been exceeded. It is true that exceeding this limit leads to the instability of the Apache server and automatically to problems in the functioning of the web sites hosted on the server.

Maxclients this Apache directive that sets request limit numberSites that can be served simultaneously. All inquiries that will be made beyond this limit will be put on hold until a number set by the value of the directive. ListenBacklog. If servers using prefork, Maxclients translates to the maximum number of processes launched to serve requests. Limit default of simultaneous requests set by the "MaxClients" directive is 150. If we increase this limit, we must also consider increasing the value of the directive ServerLimit (sets the maximum value for the lifetime of Apache processes). ServerLimit is set default la 256. Increase value maxclients must be directly proportional to ServerLimit. Apache Web Server
Be careful, however, because increasing these two limits well above the default values ​​can prevent the Apache server from running and the operating system from being unstable. As much as the value ServerLimit is higher, the more additional memory (shared memory) will be assigned.

If you encounter the error "[error] server reached MaxClients setting, consider raising the MaxClients setting”(Visible in Apache Error log) And you decide to change the values ​​that we talked about above, you can do this in two ways.

1. Using the WHM you can change the values ​​of Hair >> Service Configuration >> Apache Configuration >> Global Configuration (Applies to servers that have installed cPanel / WHM)

2. Change values ServerLimit si Maxclients by editing httpd.conf. Usually, httpd.conf can be found in "/usr/local/apache/conf/httpd.conf".

After changing the values ​​in httpd.conf, restart the apache server. (service httpd restart).

Stealth Settings - Fix Apache Error : server reached MaxClients setting.

Founder and editor Stealth Settings, from 2006 to the present. Experience on operating systems Linux (in particular CentOS), Mac OS X, Windows XP> Windows 10 si WordPress (CMS).

How to » Linux » Apache » [Apache fix Error] server reached MaxClients setting, consider raising the MaxClients setting
Leave a Comment