httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Prasanna Ram Venkatachalam <vpra...@gmail.com>
Subject Re: [users@httpd] Good Prefork Configuration for better performance ??
Date Sun, 07 Jun 2009 05:39:05 GMT
Dear BipinDas, Under these loads i would suggest you to try Worker-MPM
model. Because in prefork whatever you do, if you get 500 requests which are
being served *simultaneously*, it would create 500 processes!! Its a one
process per request model. So at higher load you would definitely run out of
resources which is causing your server to hang perhaps. And the details you
have provided are quite normal for your configuration. I get even more than
that in my test scenarios!. The problem might be because of some peak load
times which consumes your resources.

Also, is there any chances of number of *simultaneous* clients to go above
251 at peak loads? If so, try increasing that. (though i personally wont
prefer prefork in high load scenarios)

Regards
Prasanna Ram


On Sat, Jun 6, 2009 at 8:30 PM, BipinDas-Gmail <bipinkdas@gmail.com> wrote:

>  Dear Friends.
>
>
>
> One of my Webserver running with following configurations.
>
> Processor  : Intel(R) Xeon(R) CPU      E5430  @ 2.66GHz
>
> Memory    : 4Giga
>
> Apache      : 2.2.3 (Installed from Binary)
>
> MPM         : Prefork
>
>
>
> Some of output from the server is as follows (Almost All Time ….).
>
>
>
> ps -ef | grep httpd  | wc -l     ==  45
>
> netstat -tn | wc -l  == 1221
>
> netstat -tn | grep ESTABLISHED | grep 443 | wc -l  == 29
>
>
>
> My Prefork configuration is as follows...
>
>
>
> <IfModule prefork.c>
>
> StartServers       8
>
> MinSpareServers    5
>
> MaxSpareServers   20
>
> ServerLimit      251
>
> MaxClients       251
>
> MaxRequestsPerChild  4000
>
> </IfModule>
>
>
>
> My problem is sometimes server is shoot up with heavy load and hangs. I
> need to restart the Apache to settle down the load to normal.
>
> This is Moodle installed server. Students uploading Assignments, checking
> for timetable, will attend Quiz and online exams. MySQL is
>
> also running in the same server. I suspect Apache is causing the load
> problem.
>
>
>
> Please recommend a perfect Prefork configuration on the above scenario.
>
>
>
> Thanks in Advance.
>
>
>
> *Greetings ....*
>
> BipinDas
>
> +966543680643
>
>
>

Mime
View raw message