Skip site navigation (1) Skip section navigation (2)

Re: connection limit exceeded

From: Gergely CZUCZY <phoemix(at)harmless(dot)hu>
To: "Jonah H(dot) Harris" <jonah(dot)harris(at)gmail(dot)com>
Cc: Tena Sakai <tsakai(at)gallo(dot)ucsf(dot)edu>, pgsql-admin(at)postgresql(dot)org
Subject: Re: connection limit exceeded
Date: 2007-11-30 20:43:01
Message-ID: 20071130204301.GA93231@harmless.hu (view raw or flat)
Thread:
Lists: pgsql-admin
Hi,

I also have this issue (I'm using 8.2.4), but whenever this happens
I see only a few (4-6) postgresql processes in the system, and my
connection limit is set to 128. Kinda strange. Next time when I
notice it I will check pg_stat_activity and report back.

On Fri, Nov 30, 2007 at 03:03:31PM -0500, Jonah H. Harris wrote:
> On Nov 30, 2007 2:55 PM, Tena Sakai <tsakai(at)gallo(dot)ucsf(dot)edu> wrote:
> >  On my postgres 8.1.1, I get a response
> >    psql: FATAL:  connection limit exceeded for non-superusers
> 
> >  1) Is this to do with max_connections setting in the postgres
> >     configuration file?  (my setting is 100 (I think this is the
> >     default).)
> 
> Yep.
> 
> >  2) how would I look at the "open/used" connections?
> 
> select * from pg_stat_activity;
> 
> >  3) should I try restarting postgres without changing the setting?
> 
> Has to be restarted for change to take effect.
> 
> >  4) what repercussion would there be if I increase this number to,
> >     say, 200? (and would that be a good idea?)
> 
> A little overhead, nothing bad.
> 
> >  5) finally, what's the best fix?  (Do I need to go to pgpool?)
> 
> see pgbouncer
> 
> -- 
> Jonah H. Harris, Sr. Software Architect | phone: 732.331.1324
> EnterpriseDB Corporation                | fax: 732.331.1301
> 499 Thornall Street, 2nd Floor          | jonah(dot)harris(at)enterprisedb(dot)com
> Edison, NJ 08837                        | http://www.enterprisedb.com/

Sincerely,

Gergely Czuczy
mailto: gergely(dot)czuczy(at)harmless(dot)hu

-- 
Weenies test. Geniuses solve problems that arise.

In response to

pgsql-admin by date

Next:From: Jonah H. HarrisDate: 2007-11-30 21:17:05
Subject: Re: connection limit exceeded
Previous:From: Steve CrawfordDate: 2007-11-30 20:42:22
Subject: Re: Enhancement request

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group