Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Increasing the number of Apache requests?

I want to increase the number of max requests, currently it's limited to 150 and it's slowing down my server when it reached that.

Im on cPanel/WHM by the way.

share|improve this question

migrated from Oct 26 '09 at 19:50

This question came from our site for professional and enthusiast programmers.

marked as duplicate by Jeff Atwood Nov 29 '09 at 8:05

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

The configuration settings you are searching for are:

<IfModule mpm_prefork_module>
    StartServers          10
    MinSpareServers       10
    MaxSpareServers      30
    MaxClients          256
    MaxRequestsPerChild   0

<IfModule mpm_worker_module>
    StartServers          5
    MaxClients          200
    MinSpareThreads      25
    MaxSpareThreads      75
    ThreadsPerChild      25
    MaxRequestsPerChild   0

Look what Module you are using. Normally prefork is used.

I dont know cpanel, but most of these Configuration tools use templates. So you can just grep in the template directory of cpanel

grep -ri "MaxClients" /patch/to/cpanel

Or maybe you can insert custum setting to your apache somewhere in the Webinterface. Also you can try to setup your apache by hand, and try if your Problems went away. Then if it works, try to adjust the cpanel thing.

share|improve this answer

This seems to be a duplicate of Please see my answer over there. Basically, you can't simply apply the changes evildead (or LapTop006 on the other question) are suggesting, they must be placed in /usr/local/apache/conf/includes/pre_virtualhost_2.conf

share|improve this answer