Portal Home > Knowledgebase > Articles Database > Apache Maximum Request
Apache Maximum Request
Posted by indianboy, 08-31-2010, 01:31 AM |
Hello friends my site is loading slow when ever i see httpd status it shows 256 requests currently being processed.
Can i increase the no. of request? if yes how ?
|
Posted by InstaCarma_Support, 08-31-2010, 01:36 AM |
Before increasing, could you check the netstat output, to check whether the connections are valid or a kind of attack. Also check in the top output.
|
Posted by indianboy, 08-31-2010, 01:40 AM |
i have checked that already
|
Posted by tulix, 08-31-2010, 01:42 AM |
yes, you can increase the number of simultaneous connections in httpd.conf file, as long as you have good enough server. With current hardware, usually this wouldn't be a problem. Only if you have to complex database query behind HTML or each request is to download huge binary file server can get overloaded.
|
Posted by indianboy, 08-31-2010, 01:45 AM |
pls tell me what to do in httpd.conf
|
Posted by indianboy, 08-31-2010, 01:49 AM |
pls tell me how to set that
|
Posted by InstaCarma_Support, 08-31-2010, 01:50 AM |
The MaxClients by default is set to 256. You can increase it, but provided you have proper hardware (enough free memory). Set a MaxRequestsPerChild directive also, which will set a limit on the number of requests an individual child process will handle. You can set it around 5000.
|
Posted by indianboy, 08-31-2010, 01:54 AM |
my current httpd.conf have
ServerLimit 1000
MaxClients 1000
MaxRequestsPerChild 5000
but in status i alwways see 256 requests currently being processed.
|
Posted by InstaCarma_Support, 08-31-2010, 02:53 AM |
Could you paste the complete settings made in the apache configuration file regarding this ? Has the settings been given under proper mpm module ?
|
Posted by indianboy, 08-31-2010, 02:58 AM |
problem solved after i set
ServerLimit 1000
MaxClients 1000
i was restarting apache but it was not working so i stopped apache and started so its working now
|
Posted by vps_ghost, 08-31-2010, 08:08 PM |
you should care about what thread mode you use(prefork or worker)?
how many threads you want to keep at least to serve client request,
and how much ram you want to allot for web server use.
|
Add to Favourites Print this Article
Also Read
relio down?? (Views: 639)
Ioncube ? (Views: 571)