You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Evelin Halling <ev...@online.ee> on 2000/09/12 13:06:14 UTC
Apache::DBI problem
Hi,
I am using Apache::DBI for user authentication
and it works just fine with one exception,
it does not kill the sql backend server process starting up during authentication,
so after some time postgres is running out of allowed backend server
processes and authentication does not work any more.
Please help
I'm using:
perl 5.005_03,
Apache/1.3.11 (Unix) with mod_perl/1.21,
ApacheDBI-0.87,
DBI-1.13,
PostgreSQL-7.0
thanx,
evelin
Re: Apache::DBI problem
Posted by Perrin Harkins <pe...@primenet.com>.
On Tue, 12 Sep 2000, Evelin Halling wrote:
> I am using Apache::DBI for user authentication and it works just fine
> with one exception, it does not kill the sql backend server process
> starting up during authentication, so after some time postgres is
> running out of allowed backend server processes and authentication
> does not work any more.
That's what Apache::DBI does. It makes your connections persistent. If
you want the connections to be re-established and closed on every request,
don't use Apache::DBI. If you want to use Apache::DBI for speed, try to
get your database to handle more connections or reduce the number of
mod_perl processes by using a proxy server.
- Perrin