From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16125 invoked by uid 1002); 12 Apr 2003 21:47:54 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 29484 invoked from network); 12 Apr 2003 21:47:53 -0000 From: Benjamin Podszun To: "Robin H.Johnson" Cc: Brian Jackson , gentoo-dev@gentoo.org In-Reply-To: <20030412204540.GA5108@cherenkov.orbis-terrarum.net> References: <1050174571.1279.17.camel@blafasel> <200304121524.19816.brian@mdrx.com> <1050179520.1274.24.camel@blafasel> <20030412204540.GA5108@cherenkov.orbis-terrarum.net> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-gvxTQmD0CV0gaZGhWYNn" Organization: Message-Id: <1050184000.1273.32.camel@blafasel> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.3- Date: 12 Apr 2003 23:46:40 +0200 Subject: Re: [gentoo-dev] Performance once again.. X-Archives-Salt: 1ed1903b-769d-4862-a8df-6f0dcf54f2b2 X-Archives-Hash: 7ab3372035926fe84e31044403250f5c --=-gvxTQmD0CV0gaZGhWYNn Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sat, 2003-04-12 at 22:45, Robin H.Johnson wrote: > On Sat, Apr 12, 2003 at 10:32:00PM +0200, Benjamin Podszun wrote: > > The Apache-Version is the same, so is the configuration. > > The only thing that I noticed is that one apache instance sucks up to > > 99% CPU... It never uses less than 30% .. > > And since this is a Compaq Server with Dual P3 1GHz and 2GB RAM I doubt > > that this is right (tm). > Do you use PHP (and possibly MySQL) on that machine? I saw that problem > on my Slackware box a few months ago. I never did find the solution tho, > as I upgraded to Apache2. I did confirm that the bug didn't occur when > PHP wasn't being used for me. For some reason, PHP seemed to be in a > massive loop after the page was sent, eating CPU and memory. Uhm.. Yes, I use Apache and PHP. MySQL as well, but not on that host (3 production servers, two of them only with apache/php, both compaq as stated above, the third only serves as DB-Server. Both Webserver have that problem. You upgraded to Apache2? I guess (hope?) that you don't talk about production environments? I tried to use Apache2 with PHP twice and wouldn't recommend it to anyone.. It's just buggy and not usable. As my current Gentoo-Servers are.. *cough* > A good temporary workaround is to have a little watcher shell script > that looks for any apache processes that have been eating >80% CPU for > the all of the last 30 seconds (I checked at 30 second intervals) and > send a SIGKILL to them. Well, that's an ugly hack.. Yes, thanks for the hint, but I already thought about something like this.. And I don't think that it solves a single problem, nor is it a suitable solution on a (I love this word) production environment. --=-gvxTQmD0CV0gaZGhWYNn Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQA+mIlAeGGfskjv0zURAvmZAJ9pOcjE3M/X/473L/vkG+4fPmce6gCg21U8 Cr1KacXRCI6CDenkCNN25x0= =RgQT -----END PGP SIGNATURE----- --=-gvxTQmD0CV0gaZGhWYNn--