pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: scott.marlowe <scott.marlowe@ihs.com>
To: Priya G <sreepriya@hotmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: t help PostgreSQL server: FATAL 1: S
Date: Tue, 7 Oct 2003 08:39:06 -0600 (MDT)
Message-ID: <Pine.LNX.4.33.0310070836350.11210-100000@css120.ihs.com> (raw)
In-Reply-To: <BAY99-F53Kljq65Rn8P00005143@hotmail.com>

On Tue, 7 Oct 2003, Priya G wrote:

> I saw this error
> PostgreSQL server: FATAL 1: Sorry, too many clients already in
> /usr/share/php/phplib/db_pgsql.inc on line 49.
>  
> It seems like I have to increase the maximum connections in the postgresql.conf .Is that the
> right step to fix the problem..Also I am seeing lot of idle processess

Are you using pg_pconnect, or pg_connect?

pg_pconnect is not simple connection pooling, and can quickly run your 
machine / apache server / postgresql server out of resources if improperly 
configured.

It's best to reduce the max apache children to something like 30 or 40 and 
increase postgresql to about 100 in this situation.

but for most people, persistant connects are no great advantage.  On my 
Dual PIII-750 server, I can create about 1,000 non-persistant connects a 
second, while I can create 1,000,000 persistant connections a second.  
Considering I can only server about 200 to 300 pages a second, the speed 
of connection is pretty much below the level of noise on this system, 
whether they be persistant or not.




view thread (2+ messages)

Message-ID: <Pine.LNX.4.33.0310070836350.11210-100000@css120.ihs.com>
Permalink:  ../Pine.LNX.4.33.0310070836350.11210-100000@css120.ihs.com/
Also on:    postgresql.org/message-id/Pine.LNX.4.33.0310070836350.11210-100000@css120.ihs.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: scott.marlowe@ihs.com, sreepriya@hotmail.com
  Subject: Re: t help PostgreSQL server: FATAL 1: S
  In-Reply-To: <Pine.LNX.4.33.0310070836350.11210-100000@css120.ihs.com>
  References: <BAY99-F53Kljq65Rn8P00005143@hotmail.com> <Pine.LNX.4.33.0310070836350.11210-100000@css120.ihs.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