From owner-freebsd-questions@FreeBSD.ORG Wed Oct 25 21:48:23 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 89AA816A49E for ; Wed, 25 Oct 2006 21:48:23 +0000 (UTC) (envelope-from speedtoys.racing@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8685643D8D for ; Wed, 25 Oct 2006 21:48:11 +0000 (GMT) (envelope-from speedtoys.racing@gmail.com) Received: by nf-out-0910.google.com with SMTP id p77so737464nfc for ; Wed, 25 Oct 2006 14:48:10 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=bSL6wyk63hOfx77oHabyhm+FIZm/a6jj9P2xQfyeDbQUd1sy/w1sElMSTgkAiq5j0vDY/SlTwDuDSMl7G53Evar3WjNtL3arrdsiIHPIcdAAdMu7JZqiGhYCKKLQ/cYQcWzY5+IVQw/rI+jlGngMMpLEiStMdK0EI9T+8JymtNY= Received: by 10.48.254.10 with SMTP id b10mr4141579nfi; Wed, 25 Oct 2006 14:48:10 -0700 (PDT) Received: by 10.48.203.16 with HTTP; Wed, 25 Oct 2006 14:48:09 -0700 (PDT) Message-ID: Date: Wed, 25 Oct 2006 13:48:09 -0800 From: "Jeff Mohler" To: John In-Reply-To: <20061025214340.GA8976@yoafrica.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061025214340.GA8976@yoafrica.com> Cc: freebsd-questions@freebsd.org Subject: Re: apache20 going nuts 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: Wed, 25 Oct 2006 21:48:23 -0000 I was just there on 5.1 for the last few months..when I did a kdump/ktrace, I saw invalid fnctl's just sucking things up. I nailed it down to something in PHP, because I could trigger this immediately by uploading photos to my coppermine installation, or randomly with zencart. Moving those services to another box but still using mysql on the questionable server was just fine, so I said phuk it and built a new faster box on 6.1 with apache22, the 5.1 sql server, and the latest 5.x PHP. its been fine, and fast as heck. IE: I gave up on finding the problem as its beyond my skills. On 10/25/06, John wrote: > Hi all, > > Recently, occasionally apache starts using lots of processor on one of > my servers. This has started out of the blue. I am running apache > 2.0.58 and > FreeBSD codeine.yoafrica.com 6.1-STABLE FreeBSD 6.1-STABLE #0: Sat Jun > 17 01:52:21 CAT 2006 > sysjo@codeine.yoafrica.com:/usr/obj/usr/src/sys/CODEINE i386 > > I have just upgraded to apache 2.0.59. This happens randomly and I > can't trace it to anything else. > > On the webserver, I am running roundcube, vexim, mailman and a couple of > very small php apps I've built myself. When I say small I mean very > very small. > > Does anyone have any ideas about what I could do about this. Find out > what in apache is using the processor so much. > > TIA, > > -John > > > last pid: 70289; load averages: 8.38, 7.15, 3.95 up 52+17:42:14 23:12:10 > 168 processes: 9 running, 159 sleeping > CPU states: 98.1% user, 0.0% nice, 1.9% system, 0.0% interrupt, 0.0% idle > Mem: 316M Active, 366M Inact, 217M Wired, 50M Cache, 110M Buf, 39M Free > Swap: 2004M Total, 142M Used, 1862M Free, 7% Inuse > > PID USERNAME THR PRI NICE SIZE RES STATE TIME WCPU COMMAND > 51874 www 1 130 0 19148K 12976K RUN 1:01 12.30% httpd > 67045 www 1 129 0 16308K 10028K RUN 0:55 11.96% httpd > 29639 www 1 130 0 19188K 13032K RUN 1:22 11.91% httpd > 62291 www 1 130 0 19160K 13020K RUN 1:05 11.77% httpd > 87078 www 1 130 0 19108K 12888K RUN 0:57 11.77% httpd > 67445 www 1 129 0 22812K 16668K RUN 1:06 11.72% httpd > 67056 www 1 129 0 18848K 12600K RUN 0:55 11.72% httpd > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >