{"id":54,"date":"2009-09-21T17:56:14","date_gmt":"2009-09-21T21:56:14","guid":{"rendered":"http:\/\/linuxhostingsupport.net\/blog\/?p=54"},"modified":"2013-03-20T08:39:38","modified_gmt":"2013-03-20T12:39:38","slug":"warning-maxclients-exceeds-serverlimit","status":"publish","type":"post","link":"https:\/\/linuxhostingsupport.net\/blog\/warning-maxclients-exceeds-serverlimit","title":{"rendered":"server reached MaxClients setting, consider raising the MaxClients setting"},"content":{"rendered":"<p>Sometimes Apache stops responding and the error logs states the following<\/p>\n<p><span style=\"color: #0000ff;\"><strong>&#8220;[error] server reached MaxClients setting, consider raising the MaxClients setting&#8221;<\/strong><\/span><\/p>\n<p>this indicates that the maximum number of clients that are allowed to connect Apache webserver has reached and you should consider raising the <strong>MaxClients and ServerLimit<\/strong> values.<\/p>\n<p>The changes made in the Apache configuration file directly won&#8217;t work as cPanel look the new values in the file \/var\/cpanel\/conf\/apache\/local. However, you can still make the changes directly in the Apache configuration and run the distiller to save the changes.<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong># pico \/usr\/local\/apache\/conf\/httpd.conf<\/strong><\/span><\/p><\/blockquote>\n<p>Set the new values i.e.<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>ServerLimit xxx<br \/>\nMaxClients xxx<\/strong><\/span><\/p><\/blockquote>\n<p>and save the file. In order to make the changes permanent and make sure the changes don&#8217;t get overwritten on the next cPanel update, execute:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong># \/usr\/local\/cpanel\/bin\/apache_conf_distiller &#8211;update &#8211;main<br \/>\n# \/usr\/local\/cpanel\/bin\/build_apache_conf<br \/>\n# \/scripts\/restartsrv httpd<\/strong><\/span><\/p><\/blockquote>\n<p>Sometimes, you may receive the following warning message on restarting the Apache web service, for example:<\/p>\n<blockquote><p><span style=\"color: #0000ff;\"><strong>WARNING: MaxClients of 500 exceeds ServerLimit value of 256 servers, lowering MaxClients to 256. To increase, please see the ServerLimit directive.<\/strong><\/span><\/p><\/blockquote>\n<p>In such a case, make sure ServerLimit value\u00a0 should be equal to OR greater than MaxClients.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sometimes Apache stops responding and the error logs states the following<br \/>\n&#8220;[error] server reached MaxClients setting, consider raising the MaxClients setting&#8221;<br \/>\nthis indicates that the maximum number of clients that are allowed to connect Apache webserver has reached and you should consider raising the MaxClients and ServerLimit values.<br \/>\nThe changes made in the Apache configuration file directly won&#8217;t work as cPanel look the new values in the file \/var\/cpanel\/conf\/apache\/local. However, you can still make the changes directly in the Apache configuration and run the distiller to save the changes.<br \/>\n# pico \/usr\/local\/apache\/conf\/httpd.conf<br \/>\nSet [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[824,825,139,821,822,138,823],"_links":{"self":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/54"}],"collection":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/comments?post=54"}],"version-history":[{"count":7,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/54\/revisions"}],"predecessor-version":[{"id":131,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/posts\/54\/revisions\/131"}],"wp:attachment":[{"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/media?parent=54"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/categories?post=54"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostingsupport.net\/blog\/wp-json\/wp\/v2\/tags?post=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}