Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 50002 invoked from network); 15 Dec 2008 14:23:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Dec 2008 14:23:38 -0000 Received: (qmail 81566 invoked by uid 500); 15 Dec 2008 14:23:48 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 81500 invoked by uid 500); 15 Dec 2008 14:23:47 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 81491 invoked by uid 99); 15 Dec 2008 14:23:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Dec 2008 06:23:47 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of torsten.foertsch@gmx.net designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 15 Dec 2008 14:23:26 +0000 Received: (qmail invoked by alias); 15 Dec 2008 14:23:03 -0000 Received: from p57A5DF3E.dip.t-dialin.net (EHLO opi.home) [87.165.223.62] by mail.gmx.net (mp011) with SMTP; 15 Dec 2008 15:23:03 +0100 X-Authenticated: #1700068 X-Provags-ID: V01U2FsdGVkX18Lla1KEgYLlQrjNatgNLmey8rh0ClBiTOrvKpu2o wC9IQEqv/ZTqkl From: Torsten Foertsch To: dev@httpd.apache.org Subject: Scoreboard question Date: Mon, 15 Dec 2008 15:23:02 +0100 User-Agent: KMail/1.9.9 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812151523.02498.torsten.foertsch@gmx.net> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.61 X-Virus-Checked: Checked by ClamAV on apache.org Hi, I am working on a monitoring tool that works independently from apache and analyzes the scoreboard stored in shared memory. One thing I am trying to monitor is the current req/sec and bytes/sec rate. On my test system I get about 3.5-4 Mbytes/sec (while testing with ab) which corresponds to the output in the mod_status page. But then suddenly the rate jumps to about 9 Mbytes/sec and I cannot explain it. I suspect it starts when the first generation of worker processes has reached MaxRequestsPerChild. Am I right that the worker_score members access_count and bytes_served are only increased over the whole lifetime of the server? Do they reflect the sum of requests and bytes served by any process using the slot? Initially I had simply added up those values from all worker_score entries. Then I took from mod_status this condition: if( ws->access_count!=0 || (ws->status!=SERVER_READY && ws->status!=SERVER_DEAD) ) result[k].count+=ws->bytes_served; which doesn't seem to help much. Are there any conditions when a worker_score must not be counted? Thanks, Torsten