Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 stackoverflow.com 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.

2 Answers 2

The configuration settings you are searching for are:

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

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

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 http://serverfault.com/questions/78554/increasing-the-number-of-apache-requests. 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