Talk:Ab

http://kb.mediatemple.net/questions/246/(dv)+HOWTO:+Basic+Apache+performance+tuning+(httpd)

 3. to a more reasonable value like the following:

Timeout 20

4. Save this file by pressing the escape key followed by :wq! which will save the file and exit vi. 5. Restart Apache to apply the changes:

/etc/init.d/httpd restart

Max Client Settings

On (dv) Dedicated-Virtual v2.0 Servers:

1. First backup the file with the following command:

cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.bkup.kb-246.2

2. The following command opens httpd.conf and searches for MaxClients:

vi +/MaxClients /etc/httpd/conf/httpd.conf

You should see the following section marked prefork MPM. 3. Edit the section that reads:

     StartServers       2 MinSpareServers   1 MaxSpareServers   5 MaxClients        10 MaxRequestsPerChild 1000 

to something more like this: * For Base servers:

           StartServers       1 MinSpareServers   1 MaxSpareServers   3 MaxClients        50 MaxRequestsPerChild 1000 

* For Rage servers:

           StartServers       2 MinSpareServers   2 MaxSpareServers   5 MaxClients        100 MaxRequestsPerChild 1000 

* For Extreme servers:

           StartServers       2 MinSpareServers   2 MaxSpareServers   5 MaxClients        200 MaxRequestsPerChild 1000 

4. Save this file and restart Apache to apply the changes:

/etc/init.d/httpd restart

On (dv) Dedicated-Virtual v3.x Servers:

1. First backup the file with the following command:

cp /etc/httpd/conf/httpd.conf /etc/httpd/conf/httpd.bkup.kb-246.2

2. The following command opens httpd.conf and searches for MaxClients:

vi +/MaxClients /etc/httpd/conf/httpd.conf

You should see the following section marked prefork MPM. 3. Edit the section that reads:

     StartServers       1 MinSpareServers   1 MaxSpareServers   20 ServerLimit       20 MaxClients        150 MaxRequestsPerChild 4000 

to something more like this: * For Base servers:

           StartServers       1 MinSpareServers   1 MaxSpareServers   3 ServerLimit       50 MaxClients        50 MaxRequestsPerChild 4000 

* For Rage servers:

           StartServers       2 MinSpareServers   2 MaxSpareServers   5 ServerLimit       100 MaxClients        100 MaxRequestsPerChild 4000 

* For Extreme servers:

           StartServers       2 MinSpareServers   2 MaxSpareServers   5 ServerLimit       200 MaxClients        200 MaxRequestsPerChild 4000 </IfModule>

* For Nitro servers:

           StartServers       20 MinSpareServers   20 MaxSpareServers   50 ServerLimit       500 MaxClients        500 MaxRequestsPerChild 4000 </IfModule>

4. Save this file and restart Apache to apply the changes:

/etc/init.d/httpd restart

</PRE>