From owner-freebsd-amd64@FreeBSD.ORG Fri May 4 14:33:30 2007 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E3FC816A402; Fri, 4 May 2007 14:33:30 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from noop.in-addr.com (noop.in-addr.com [208.58.23.51]) by mx1.freebsd.org (Postfix) with ESMTP id B7B8413C44C; Fri, 4 May 2007 14:33:30 +0000 (UTC) (envelope-from gpalmer@freebsd.org) Received: from gjp by noop.in-addr.com with local (Exim 4.54 (FreeBSD)) id 1HjyXG-000Gsg-9y; Fri, 04 May 2007 10:13:26 -0400 Date: Fri, 4 May 2007 10:13:26 -0400 From: Gary Palmer To: Olaf Greve Message-ID: <20070504141326.GB33045@in-addr.com> Mail-Followup-To: Olaf Greve , Ivan Voras , freebsd-questions@freebsd.org, freebsd-amd64@freebsd.org References: <2BEB30C2-C9C5-43AB-9DCA-5C9A1B0AC2C0@axis.nl> <8DDF332E-A03A-44DC-A87B-D64EC6B91E5A@axis.nl> <1896C639-2518-484B-8CD1-5936811AB093@axis.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1896C639-2518-484B-8CD1-5936811AB093@axis.nl> Cc: freebsd-amd64@freebsd.org, freebsd-questions@freebsd.org, Ivan Voras Subject: Re: How to make Apache (2.2.4) less greedy, or Sendmail less polite? X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 May 2007 14:33:31 -0000 On Fri, May 04, 2007 at 12:55:16PM +0200, Olaf Greve wrote: > Hi again, > > This time a question from the Apache side of this issue: > > >You'll have to correlate this with HTTP requests apache receives - > maybe there's a PHP script that's unusually CPU > >intensive. > > Is there any (easy) way to do this in conjunction with specific PIDs > of stressed httpd instances? > Of course I can take a look at the httpd-access log file, but at > present it doesn't log the PIDs (which can perhaps be changed by > changing the log format), but is there an easier way to > "inspect" (from the prompt) what a specific httpd instance is doing/ > serving? Investigate the Apache server-status handler (assuming its still there in 2.2). If you also enable the ExtendedStatus output from server-status, it includes a table that shows the daemon PID, number of accesses for that PID, current state, CPU usage, time to process the current request, client IP, virtual host and the first line of the HTTP request which shows GET/POST and file. Assuming thats still the same in Apache 2.2, that should help you identify whats hammering your server. (I only have Apache 2.0 to play around with here)