Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 33302 invoked from network); 5 Jan 2009 08:57:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Jan 2009 08:57:03 -0000 Received: (qmail 60880 invoked by uid 500); 5 Jan 2009 08:56:52 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 60867 invoked by uid 500); 5 Jan 2009 08:56:52 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 60858 invoked by uid 99); 5 Jan 2009 08:56:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jan 2009 00:56:52 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of craig@animalhead.com designates 198.66.255.31 as permitted sender) Received: from [198.66.255.31] (HELO animalhead.com) (198.66.255.31) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Jan 2009 08:56:44 +0000 Received: from [192.168.0.3] (pool-71-116-115-15.snfcca.dsl-w.verizon.net [71.116.115.15]) (authenticated bits=0) by animalhead.com (8.13.6.20060614/8.13.6) with ESMTP id n058uNBo098728 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Mon, 5 Jan 2009 00:56:23 -0800 (PST) Message-Id: From: craig@animalhead.com To: users@httpd.apache.org Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Mon, 5 Jan 2009 00:56:17 -0800 X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] ThreadsPerChild vs THR in top using Event MPM Hi, I'm running Apache2.2.11 with the Event MPM under FreeBSD 6.3, on a site that's largely mod_perl2 driven. ThreadsPerChild is specified as 25 in an include file of httpd.conf: MaxClients 250 MinSpareThreads 25 MaxSpareThreads 150 ThreadsPerChild 25 The documentation of the Worker MPM (which is supposed to have the same configuration characteristics as Event) states that each child process creates (ThreadsPerChild) threads when it inits, and never changes the number of threads. But the THR column of the 'top' utility shows 11 threads per process. Is 'top' just wrong, or is something constraining how many threads are being created? The only way I know to ask Apache about its threads configuration is the Apache2::MPM->query facility. Using this facility for all of the values noted in the Apache2::Const documentation yields: MPMQ_MAX_DAEMON_USED(1) = -1 MPMQ_IS_THREADED(2) = 1 MPMQ_IS_FORKED(3) = 2 MPMQ_HARD_LIMIT_DAEMONS(4) = 16 MPMQ_HARD_LIMIT_THREADS(5) = 64 MPMQ_MAX_THREADS(6) = 25 MPMQ_MIN_SPARE_DAEMONS(7) = 0 MPMQ_MIN_SPARE_THREADS(8) = 25 MPMQ_MAX_SPARE_DAEMONS(9) = 0 MPMQ_MAX_SPARE_THREADS(10) = 150 MPMQ_MAX_REQUESTS_DAEMON(11) = 0 MPMQ_MAX_DAEMONS(12) = 10 MPMQ_MAX_THREADS has the same value as ThreadsPerChild, but its name suggests that this number is a maximum. Perhaps this implies that this number may not be created? Help will be much appreciated, craig www.animalhead.com --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org