Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 68658 invoked from network); 13 Dec 2005 18:16:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Dec 2005 18:16:46 -0000 Received: (qmail 678 invoked by uid 500); 13 Dec 2005 18:16:37 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 618 invoked by uid 500); 13 Dec 2005 18:16:37 -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 607 invoked by uid 99); 13 Dec 2005 18:16:36 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2005 10:16:36 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of kmcgrail@pccc.com designates 209.225.49.10 as permitted sender) Received: from [209.225.49.10] (HELO intel1.peregrinehw.com) (209.225.49.10) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Dec 2005 10:16:36 -0800 Received: from ACCOUNT4 (localhost.localdomain [127.0.0.1]) by intel1.peregrinehw.com (8.13.3/8.13.3) with SMTP id jBDIGEIf020030 for ; Tue, 13 Dec 2005 13:16:15 -0500 Message-ID: <01d101c60011$4e134e90$960b0a0a@thoughtworthy.internal> From: "Kevin A. McGrail" To: Subject: Re: Persistent DB Connection problem Date: Tue, 13 Dec 2005 13:16:14 -0500 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2670 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2670 X-Scanned-By: MIMEDefang 2.51 on 209.225.49.11 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Albert: You will need 1000 database connections to handle 1000 apache children with persistent connections. The persistent connection only helps get rid of the delay of connecting to the database each time with each script. What I believe you are asking for is a database proxy. Sorry, I don't know if one exists. Regards, KAM ----- Original Message ----- From: "Albert Vila" >I thought the persistent connection was only one for all childs. > > What happens then if I have 1000 childs each one with 1 db connection? > This means 1000 database connections. How do you setup apache + mod_perl > in this environment? > > Albert > > Kevin A. McGrail wrote: >>> I'm having problems setting up the apache + mod_perl + Apache::DBI in >>> order to get persistent db connections. >>> >>> I've added the following line in my httpd.conf: >>> PerlRequire /home/xxx/startup.pl >> >> The persistent connection is one per child process so I don't know if >> your test is correct. Try instead to write a quick perl script that >> connects to the database, disconnects and connects/disconnects again. >> >> That should definitely result in a persistent connection being used >> again. >> >> Make sense?