pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Itai Zukerman <zukerman@math-hat.com>
To: Colleen Williams <colleen@digital-arts.co.uk>
Cc: pgsql-sql@postgresql.org
Subject: Re: Persistent Connects (pg_pconnect)
Date: 21 Nov 2000 23:22:24 -0500
Message-ID: <87d7foocu7.fsf@matt.w80.math-hat.com> (raw)
References: <4.3.2.7.2.20001121122024.00b41aa8@192.168.1.253>

On Tue, 21 Nov 2000 12:34:19 +0000, Colleen Williams <colleen@digital-arts.co.uk> wrote:
> Each time one of us uses the CMS, a new
> persistent connection process owned by postgres is started up. With 3
> people accessing the CMS sporadically, 32 persistent connections are
> in existence and then Linux tells me there are too many connections!
> Sometimes I believe existing connections are reused but not often!

Not sure if this is related, but under the non-threading Apache
server, you get 1 persistent connection per Apache process.  I don't
think you can be sure which process gets the page with the connection
request, so if you have a limit of, say, 50 processes, and your server
is hit fairly often, eventually you'll see 50 connections even though
only a few simultaneous accesses to PHP/PostgreSQL are made.

Or, I could be totally off.

-itai



view thread (8+ messages)  latest in thread

Message-ID: <87d7foocu7.fsf@matt.w80.math-hat.com>
Permalink:  ../87d7foocu7.fsf@matt.w80.math-hat.com/
Also on:    postgresql.org/message-id/87d7foocu7.fsf@matt.w80.math-hat.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-sql@postgresql.org
  Cc: zukerman@math-hat.com, colleen@digital-arts.co.uk
  Subject: Re: Persistent Connects (pg_pconnect)
  In-Reply-To: <87d7foocu7.fsf@matt.w80.math-hat.com>
  References: <4.3.2.7.2.20001121122024.00b41aa8@192.168.1.253> <87d7foocu7.fsf@matt.w80.math-hat.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