Prasanna,

 

Thanks for your valuable reply. My Apache was built from binary,so default
MPM is PREFORK. Is there any way to switch

>From prefork to worker without recompiling Apache ? I have found a way,which
is uncomment the "worker" line from the

/etc/sysconfig/httpd (HTTPD=/usr/sbin/httpd.worker) file. But it causes the
PHP stops its working. 

 

Thanks.

 

Greetings ....

BipinDas

+966543680643

 

From: Prasanna Ram Venkatachalam [mailto:vpra...@gmail.com] 
Sent: Sunday, June 07, 2009 8:39 AM
To: users@httpd.apache.org
Subject: Re: [us...@httpd] Good Prefork Configuration for better performance
??

 

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 <bipink...@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

 

 

Reply via email to