pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Rajesh Kumar Mallah <mallah@trade-india.com>
To: James Taylor <jtx@hatesville.com>
Cc: 'pgsql-admin@postgresql.org' <pgsql-admin@postgresql.org>
Subject: Re: Idle processes won't die
Date: Wed, 25 Feb 2004 07:00:14 +0530
Message-ID: <403BFAA6.8090906@trade-india.com> (raw)
In-Reply-To: <E1040641-671B-11D8-9DBE-000A95982628@hatesville.com>
References: <E1040641-671B-11D8-9DBE-000A95982628@hatesville.com>


Dear James,

We have been using mod_perl with PostgreSQL in web environment
without any problems. I hope you are already using Apache::DBI for
connection pooling.

Regds
Mallah

James Taylor wrote:

> Hi everyone, using mod_perl with Postgres, postgres is on the same 
> server as the webserver.  Perl is opening connections, and then 
> closing them at the end of every script, however Pg
> is refusing to close the connection, and I have tons and tons of Idle 
> processes sitting around, which causes the web site to crash because 
> the maximum number of pgsql processes gets reached after the site is 
> accessed 32 times.  From everything I know about Perl, even if I 
> didn't implicitly close the database handles, the perl garbage handler 
> would close them for me.  Is there some sort of configuration for 
> postgres to disallow all these idle processes from sticking around, so 
> they maybe... close themselves after 5 seconds or something similar?
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>




view thread (3+ messages)

Message-ID: <403BFAA6.8090906@trade-india.com>
Permalink:  ../403BFAA6.8090906@trade-india.com/
Also on:    postgresql.org/message-id/403BFAA6.8090906@trade-india.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: mallah@trade-india.com, jtx@hatesville.com
  Subject: Re: Idle processes won't die
  In-Reply-To: <403BFAA6.8090906@trade-india.com>
  References: <E1040641-671B-11D8-9DBE-000A95982628@hatesville.com> <403BFAA6.8090906@trade-india.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox