Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 10196 invoked from network); 7 Jun 2009 06:31:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Jun 2009 06:31:54 -0000 Received: (qmail 51059 invoked by uid 500); 7 Jun 2009 06:32:03 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 51011 invoked by uid 500); 7 Jun 2009 06:32:03 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 51002 invoked by uid 99); 7 Jun 2009 06:32:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Jun 2009 06:32:03 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of bipinkdas@gmail.com designates 72.14.220.153 as permitted sender) Received: from [72.14.220.153] (HELO fg-out-1718.google.com) (72.14.220.153) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Jun 2009 06:31:53 +0000 Received: by fg-out-1718.google.com with SMTP id 16so864230fgg.17 for ; Sat, 06 Jun 2009 23:31:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:references :in-reply-to:subject:date:message-id:mime-version:content-type :x-mailer:thread-index:content-language; bh=4uKyTsWFZjX1TOzguevyOpwBQRlPBV3k2HnKMesD+s4=; b=TGulWKnHfF4JnMb3jMzM9y1ghHaYC4hORQW8/7+lGi66s0e0XQ7aXItXKLItEbQEEI RmatYqV9tysHr2pY4qHjQEr3fj/lr/eTLimtyDzi7NTYKcYikqPsajb28vFkzX6RXqcm g4DrdPhej7Ep7z8vovns6ml5jWY+0draRd89U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:references:in-reply-to:subject:date:message-id:mime-version :content-type:x-mailer:thread-index:content-language; b=j9aTpIeMHzaZ+oGPS00I0n0hqWcofCYv4Bi+njxwFzl43VaCwB71tFrSFzg7ylrITE 6JvrhQatoezOs7PxCxT9cUSRDZUdbokHyb3ppZttnFCMqa/HaXxXWXIXn2A1Hhtpoy3B IfHqm4m/DkbsEEbHkKCerDcrZJ+OqneN8ygiM= Received: by 10.86.81.15 with SMTP id e15mr5742861fgb.35.1244356291894; Sat, 06 Jun 2009 23:31:31 -0700 (PDT) Received: from bipinPC ([213.230.13.65]) by mx.google.com with ESMTPS id 3sm77649fge.19.2009.06.06.23.31.28 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 06 Jun 2009 23:31:31 -0700 (PDT) From: "BipinDas-Gmail" To: References: <000001c9e6b7$95842980$c08c7c80$@com> <001201c9e738$ac1a2830$044e7890$@com> In-Reply-To: Date: Sun, 7 Jun 2009 09:31:27 +0300 Message-ID: <001a01c9e739$99c42310$cd4c6930$@com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_001B_01C9E752.BF115B10" X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: AcnnOS9UEcHeRWRNRJqilg1maztMwQAAB8lg Content-Language: en-us X-Virus-Checked: Checked by ClamAV on apache.org Subject: RE: [users@httpd] Good Prefork Configuration for better performance ?? ------=_NextPart_000_001B_01C9E752.BF115B10 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit I stuck up J. I got it,we need to recompile either PHP or Apache. Thanks again for your valuable time. Greetings .... BipinDas +966543680643 From: Prasanna Ram Venkatachalam [mailto:vpram86@gmail.com] Sent: Sunday, June 07, 2009 9:28 AM To: users@httpd.apache.org Subject: Re: [users@httpd] Good Prefork Configuration for better performance ?? I understand the problem. But till now if i want to use a mode i will recompile apache only :(. So am not sure how to do it without recompiling! Regards Prasanna Ram On Sun, Jun 7, 2009 at 11:54 AM, BipinDas-Gmail wrote: 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:vpram86@gmail.com] Sent: Sunday, June 07, 2009 8:39 AM To: users@httpd.apache.org Subject: Re: [users@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 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... StartServers 8 MinSpareServers 5 MaxSpareServers 20 ServerLimit 251 MaxClients 251 MaxRequestsPerChild 4000 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 ------=_NextPart_000_001B_01C9E752.BF115B10 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

I stuck up J.  I got it,we need to = recompile either PHP or Apache.  Thanks again for your valuable = time.

 

Greetings ....

BipinDas

+966543680643

 

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

 

I understand the = problem. But till now if i want to use a mode i will recompile apache only :(. So am = not sure how to do it without recompiling!

Regards
Prasanna Ram

On Sun, Jun 7, 2009 at 11:54 AM, BipinDas-Gmail = <bipinkdas@gmail.com> = wrote:

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=3D/usr/sbin/httpd.worker) file. But it causes the PHP stops its = working.

 

Thanks.

 

Greetings = ....

BipinDas

+966543680643<= /p>

 

From: Prasanna Ram Venkatachalam [mailto:vpram86@gmail.com]
Sent: Sunday, June 07, 2009 8:39 AM
To: users@httpd.apache.org
Subject: Re: [users@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 <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     =3D=3D  45

netstat -tn | wc -l  =3D=3D = 1221

netstat -tn | grep ESTABLISHED | = grep 443 | wc -l  =3D=3D 29

 

My Prefork configuration is as = follows...

 

<IfModule = prefork.c>

StartServers     &nbs= p; 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

 

 

 

------=_NextPart_000_001B_01C9E752.BF115B10--