Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 26728 invoked from network); 11 Nov 2009 05:35:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Nov 2009 05:35:59 -0000 Received: (qmail 55071 invoked by uid 500); 11 Nov 2009 05:35:57 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 55020 invoked by uid 500); 11 Nov 2009 05:35:56 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 55010 invoked by uid 99); 11 Nov 2009 05:35:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Nov 2009 05:35:56 +0000 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Raja.Kulasekaran@netapp.com designates 216.240.18.37 as permitted sender) Received: from [216.240.18.37] (HELO mx2.netapp.com) (216.240.18.37) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Nov 2009 05:35:48 +0000 X-IronPort-AV: E=Sophos;i="4.44,721,1249282800"; d="scan'208";a="272907318" Received: from smtp2.corp.netapp.com ([10.57.159.114]) by mx2-out.netapp.com with ESMTP; 10 Nov 2009 21:35:11 -0800 Received: from sacrsexc1-prd.hq.netapp.com (sacrsexc1-prd.hq.netapp.com [10.99.115.27]) by smtp2.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id nAB5ZB0O025882; Tue, 10 Nov 2009 21:35:11 -0800 (PST) Received: from btcrsexc1-prd.hq.netapp.com ([10.73.251.109]) by sacrsexc1-prd.hq.netapp.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 10 Nov 2009 21:35:11 -0800 Received: from BTCMVEXC1-PRD.hq.netapp.com ([10.73.251.108]) by btcrsexc1-prd.hq.netapp.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 11 Nov 2009 11:05:08 +0530 X-MimeOLE: Produced By Microsoft Exchange V6.5 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable x-cr-hashedpuzzle: Cy7I FSkP FpjL HeAB JicF KGsz Kdo0 LGMN LQgs T+q3 Xw74 Y37v afYH c0ZM dTAa gh/F;3;ZABhAHYAaQBkAEAAawBpAG4AZQB0AGkAYwBvAGQAZQAuAGMAbwBtADsAbQBhAHQAcgBpAHgAQABpAHQAbABlAGcAaQBvAG4ALgByAHUAOwBtAG8AZABwAGUAcgBsAEAAcABlAHIAbAAuAGEAcABhAGMAaABlAC4AbwByAGcA;Sosha1_v1;7;{846555B0-DADA-4EF3-9A78-476C983A7CFA};cgBhAGoAYQAuAGsAdQBsAGEAcwBlAGsAYQByAGEAbgBAAG4AZQB0AGEAcABwAC4AYwBvAG0A;Wed, 11 Nov 2009 05:34:55 GMT;UgBFADoAIABEAEIASQAgAEMAbwBuAG4AZQBjAHQAbwBuAHMAIABhAGMAYwB1AG0AdQBsAGEAdABlACAAdQBuAGQAZQByACAATQBvAGQAXwBwAGUAcgBsAA== x-cr-puzzleid: {846555B0-DADA-4EF3-9A78-476C983A7CFA} Content-class: urn:content-classes:message Subject: RE: DBI Connectons accumulate under Mod_perl Date: Wed, 11 Nov 2009 11:04:55 +0530 Message-ID: In-Reply-To: <2E99EB9D-8E5C-4255-B72D-958C3E66C4D5@kineticode.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: DBI Connectons accumulate under Mod_perl Thread-Index: AcpiLAEq/IBxp8NOSMWaTGsO4gM96QAZG9+g References: <4ADDEC61.2080300@itlegion.ru> <4AF9810E.9050001@itlegion.ru> <1440789C-0B10-44FC-A6CE-6256FA08EE85@kineticode.com> <2E99EB9D-8E5C-4255-B72D-958C3E66C4D5@kineticode.com> From: "Kulasekaran, Raja" To: "David E. Wheeler" Cc: "Artem Kuchin" , X-OriginalArrivalTime: 11 Nov 2009 05:35:08.0466 (UTC) FILETIME=[BAF12920:01CA6290] X-Virus-Checked: Checked by ClamAV on apache.org I'm connecting against oracle. So for every request it establish the connection and it remains stable even though the request=20 has been completed successfully .=20 -Raja=20 -----Original Message----- From: David E. Wheeler [mailto:david@kineticode.com]=20 Sent: Tuesday, November 10, 2009 11:03 PM To: Kulasekaran, Raja Cc: Artem Kuchin; modperl@perl.apache.org Subject: Re: DBI Connectons accumulate under Mod_perl On Nov 10, 2009, at 9:19 AM, Kulasekaran, Raja wrote: > I'm using Apache::DBI and DBI->connect (persistence connection)=20 >=20 > So, Do I need to call $dbh->disconnect() for each child to close the > connection ? No, because Apache::DBI turns it into a no-op. Apache::DBI is a very weird beast, with unanticipated action-at-a-distance issues that crop up here and there. It's crazy stuff like this that led me to abandon it -- at first for DBI->connect_cached (though I had to do some extra work to make sure it was safe), and more recently for DBIx::Connector, which does that extra work for me. Can you see what PIDs MySQL is accepting connections from? Are they the same as currently-running Apache processes? Or are (some of them) from dead Apache child processes? Best, David