From owner-freebsd-questions@FreeBSD.ORG Fri May 4 10:18:03 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 89BCD16A400 for ; Fri, 4 May 2007 10:18:03 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id 13F2C13C45A for ; Fri, 4 May 2007 10:18:02 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HjurO-0003jT-HT for freebsd-questions@freebsd.org; Fri, 04 May 2007 12:17:58 +0200 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 May 2007 12:17:58 +0200 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 04 May 2007 12:17:58 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Ivan Voras Date: Fri, 04 May 2007 12:17:49 +0200 Lines: 69 Message-ID: References: <2BEB30C2-C9C5-43AB-9DCA-5C9A1B0AC2C0@axis.nl> <8DDF332E-A03A-44DC-A87B-D64EC6B91E5A@axis.nl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig875B734D17E1B39C3E5BC07B" X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 1.5.0.10 (X11/20060911) In-Reply-To: <8DDF332E-A03A-44DC-A87B-D64EC6B91E5A@axis.nl> X-Enigmail-Version: 0.94.2.0 Sender: news Cc: freebsd-amd64@freebsd.org Subject: Re: How to make Apache (2.2.4) less greedy, or Sendmail less polite? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 May 2007 10:18:03 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig875B734D17E1B39C3E5BC07B Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Olaf Greve wrote: > Will that not have some other downsides? I remember that previously whe= n=20 > running PHP on the CGI, that e.g. a lot of debugging power got lost, as= =20 > each and every error would simply either return a blank page, or simply= =20 > an "internal servor error 500" or so.... Is that also the case with=20 > FastCGI? Yes, in case of critical / setup errors (i.e. ones that happen "between" = apache and php) you'll get that kind of message. Normal PHP and Apache=20 error messages and warnings are not affected. > >BUT, if something else changed when you switched to the new apache=20 > (e.g. PHP version, your web applications), it may not be > >apache's fault. >=20 > The PHP version got upgraded from 4.4.0 to 4.4.6 too, but none of the=20 > actual application scripts changed. >=20 > BTW: At times what one sees happening is that 2 of the httpd daemons=20 > quickly go up to (each, or in turn) about 50% (or 70% if it can grab=20 > that much), then stays quite a while at that, and then goes back to a=20 > more reasonable amount. You'll have to correlate this with HTTP requests apache receives - maybe = there's a PHP script that's unusually CPU intensive. > Meanwhile: I'm still open for suggestions as to how to best make Apache= =20 > behave less selfishly. You may try playing with login.conf(5) (see "resource limits"), but do=20 it on a spare machine first :) Also, you may try scaling down the number of processes Apache is allowed = to create (at the possible expense that some clients get an error=20 message instead of a page). Still, if the performance was OK before you switched to Apache2, my bet=20 would be that something changed in PHP or your scripts, not in Apache. --------------enig875B734D17E1B39C3E5BC07B Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org iD8DBQFGOwhOldnAQVacBcgRAnkbAKCu8FMKeuwx4PKuvHZHcVZ9n+hM4gCgko+p 27e9di7H2oEo3ucpT0FbCqE= =KaAP -----END PGP SIGNATURE----- --------------enig875B734D17E1B39C3E5BC07B--