From owner-freebsd-questions@FreeBSD.ORG Fri May 4 10:55:21 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 6C69B16A401; Fri, 4 May 2007 10:55:21 +0000 (UTC) (envelope-from o.greve@axis.nl) Received: from smtp.interstroom.nl (smtp1.interstroom.nl [80.85.129.3]) by mx1.freebsd.org (Postfix) with ESMTP id 2E57A13C45D; Fri, 4 May 2007 10:55:21 +0000 (UTC) (envelope-from o.greve@axis.nl) Received: from 5571fe44.ftth.concepts.nl ([85.113.254.68]:49552 helo=[192.168.1.102]) by smtp.interstroom.nl with esmtpsa (TLS-1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.63) (envelope-from ) id 1HjvRX-0005oj-T1; Fri, 04 May 2007 12:55:19 +0200 In-Reply-To: References: <2BEB30C2-C9C5-43AB-9DCA-5C9A1B0AC2C0@axis.nl> <8DDF332E-A03A-44DC-A87B-D64EC6B91E5A@axis.nl> Mime-Version: 1.0 (Apple Message framework v752.3) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <1896C639-2518-484B-8CD1-5936811AB093@axis.nl> Content-Transfer-Encoding: 7bit From: Olaf Greve Date: Fri, 4 May 2007 12:55:16 +0200 To: Ivan Voras X-Mailer: Apple Mail (2.752.3) Cc: freebsd-questions@freebsd.org, 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:55:21 -0000 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? Cheers! Olafo PS: This morning (and some of the other past few days as well) I took a closer look to the server loads, and it looks like during the better part of the morning the load is virtually 0%, and around midday (or slighlty before?), all of a sudden Apache starts going crazy and receives very heavy load. I wonder if this can perhaps be some DOS attack, and hence I'd like to see what each of the stressed daemon instances is doing exactly...