perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Perrin Harkins <phark...@gmail.com>
Subject Re: DBI Connectons accumulate under Mod_perl
Date Fri, 13 Nov 2009 18:40:54 GMT
On Fri, Nov 13, 2009 at 4:47 AM, Artem Kuchin <matrix@itlegion.ru> wrote:
> Nope, i don't use those. Just plain DBI. Parent process does not open up any
> connections.

This is getting really confusing because two of you are on this thread
with completely different problems.

Artem, if you aren't using Apache::DBI and your connections are
building up, it means you're keeping the connections around in a
global or closure variable and not calling disconnect.  Since you
aren't using something to keep your connections persistent, you should
call disconnect at the end of every request.  You should also look at
your code to see if you put $dbh in a global somewhere.

- Perrin

Mime
View raw message