Portal Home > Knowledgebase > Articles Database > increase apache request


increase apache request




Posted by gozargah, 08-30-2010, 06:23 AM
Default apache MaxClients can set to max. 256 I need to change this to 1000 how can do that? help me please.

Posted by InoxHost, 08-30-2010, 06:31 AM
You need to edit apache configuration file located at /etc/httpd/conf/httpd.conf. In this file find out MaxClients directive.

Posted by Hillockhosting, 08-30-2010, 06:44 AM
Edit file /var/cpanel/conf/apache/local In this change max settings and restart httpd.

Posted by gozargah, 08-30-2010, 06:53 AM
I do that, but its not work with more than 256

Posted by Hillockhosting, 08-30-2010, 06:56 AM
Can you tell me who have to compile apache as mpm ?

Posted by Techbrace, 08-30-2010, 01:20 PM
If you're using Apache 2.x, you'll have to modify the value of the parameter ServerLimit before modifying MaxClients. eg:- ServerLimit 1000 MaxClients 1000

Posted by mellow-h, 08-30-2010, 08:59 PM
Are you using any control panel by any chance?

Posted by InstaCarma_Support, 08-30-2010, 11:38 PM
As you are trying to increase the MaxClients, so as to have Apache handle more requests. I would suggest that, instead of directly increasing its value, you can keep MaxClients either at 150 or 200 and specify MaxRequestsPerChild. Set MaxClients at 150 and MaxRequestsPerChild at 5000.

Posted by madaboutlinux, 08-31-2010, 06:47 AM
Are you using any control panel? In case of a cPanel server, you need to distilled the configuration file. In case of a Plesk server, you need to edit the MaxClients value in /etc/httpd/conf.d/swtune.conf file.

Posted by vps_ghost, 08-31-2010, 08:01 PM
mpm-prefork or mpm-worker?

Posted by gozargah, 09-01-2010, 04:35 AM
Im using cpanel. Here is my current "/usr/local/apache/conf/httpd.conf" settings: # These can be set in WHM under 'Apache Global Configuration' TraceEnable Off ServerSignature Off ServerTokens ProductOnly FileETag None #StartServers 5 # #MinSpareServers 5 #MaxSpareServers 10 # #MaxClients 256 #MaxRequestsPerChild 1000 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 1 ServerLimit 1500 StartServers 10 MinSpareServers 10 MaxSpareServers 15 MaxClients 1000 MaxRequestsPerChild 1000 I saved settings and run: "/usr/local/cpanel/bin/apache_conf_distiller --update" but its cannot be more than 256

Posted by derherr, 09-01-2010, 10:20 AM
just use apache's docs when editing the right stuff in httpd.conf

Posted by Techbrace, 09-01-2010, 11:05 AM
That's strange. Could you run the following commands and paste the output here: Last edited by Techbrace; 09-01-2010 at 11:08 AM.

Posted by InstaCarma_Support, 09-02-2010, 02:10 AM
Then you must not be having prefork module configured with apache. Try giving the directives under mpm_worker_module.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
HostGator help (Views: 602)
GlobalServers (Views: 611)