Return-Path: Delivered-To: apmail-httpd-dev-archive@www.apache.org Received: (qmail 35408 invoked from network); 20 Oct 2008 13:56:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Oct 2008 13:56:32 -0000 Received: (qmail 93122 invoked by uid 500); 20 Oct 2008 13:56:31 -0000 Delivered-To: apmail-httpd-dev-archive@httpd.apache.org Received: (qmail 92717 invoked by uid 500); 20 Oct 2008 13:56:30 -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 92705 invoked by uid 99); 20 Oct 2008 13:56:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Oct 2008 06:56:30 -0700 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 jim@jagunet.com designates 209.133.199.10 as permitted sender) Received: from [209.133.199.10] (HELO jimsys.jaguNET.com) (209.133.199.10) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Oct 2008 13:55:22 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) by jimsys.jaguNET.com (Postfix) with ESMTP id BA8713FB30FE for ; Mon, 20 Oct 2008 09:55:37 -0400 (EDT) Message-Id: <26BD8AC2-D345-4868-BB79-FA5AD27992E5@jaguNET.com> From: Jim Jagielski To: dev@httpd.apache.org In-Reply-To: <48FB969B.5020808@apache.org> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Subject: Re: strange usage pattern for child processes Date: Mon, 20 Oct 2008 09:55:37 -0400 References: <20081015115548.GA9872@eilebrecht.net> <48F651DE.5060003@sharp.fm> <48F657A1.2070806@apache.org> <48F6752F.5030000@sharp.fm> <48F8EDEE.3080908@apache.org> <48F9E231.7060401@sharp.fm> <48F9F5C2.60209@apache.org> <48FA4590.2010106@sharp.fm> <5FA0452E-A1A8-4E1C-9F51-A27DA2A298C9@jaguNET.com> <48FB969B.5020808@apache.org> X-Mailer: Apple Mail (2.929.2) X-Virus-Checked: Checked by ClamAV on apache.org On Oct 19, 2008, at 4:20 PM, Ruediger Pluem wrote: > > > On 10/19/2008 07:35 PM, Jim Jagielski wrote: >> >> On Oct 18, 2008, at 4:22 PM, Graham Leggett wrote: >> >>> Ruediger Pluem wrote: >>> >>>>> As a result, the connection pool has made the server slower, not >>>>> faster, >>>>> and very much needs to be fixed. >>>> I agree in theory. But I don't think so in practice. >>> >>> Unfortunately I know so in practice. In this example we are seeing >>> single connections being held open for 30 second or more. :( >>> >>>> 1. 2.0.x behaviour: If you did use keepalive connections to the >>>> backend >>>> the connection to the backenend was kept alive and as it was bound >>>> to the >>>> frontend connection in 2.0.x it couldn't be used by other >>>> connections. >>>> Depending on the backend server it wasted the same number of >>>> resources >>>> as without the optimization (backend like httpd worker, httpd >>>> prefork) or >>>> a small amount of resources (backend like httpd event with HTTP or >>>> a recent >>>> Tomcat web connector). So you didn't benefit very well from this >>>> optimization >>>> in 2.0.x as long as you did not turn off the keepalives to the >>>> backend. >>> >>> Those who did need the optimisation, would have turned off >>> keepalives >>> to the backend. >>> >>>> >> >> Trying to grok things better, but doesn't this imply that >> for those who needed the optimization, disabling the >> connection pool would be the required work-around for 2.2? > > No. Without a connection pool (e.g. the default reverse worker) the > backend > connection does not get freed any faster than without a connection > pool. > Ok strictly spoken you cannot turn off the connection pools at all > (reverse > is also one), you can only turn off a reuse of the connections. > I thought that was the concern; that the pool wasn't released immediately. If you disable reuse, then you don't need to worry about when it is released... or I must be missing something obvious here :/