perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Artem Kuchin <mat...@itlegion.ru>
Subject DBI Connectons accumulate under Mod_perl
Date Tue, 20 Oct 2009 16:59:13 GMT
Hello!

I have a very weird situation. I use MYSQL. Apache 2.2 with mod_perl2

O use Modperl::RegistryBB to run the script, but the script itself is
written very nicely
for mod_perl. That is no globals at all. Everything is in sub handler.
I do not use Apache::DBI, just plain "use DBI;"

So, what it does (basic idea)

sub  handler {
    db->connect();

    .. does all the thing...

    db->disconnect();

    print $output;

}

however, whe i do in mysql

show processlist;

I see many connection hanging in sleep state and they grow and grow slowly!
Any idea why this happens?

Artem



Mime
View raw message