Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id C7F532E00C8 for ; Fri, 30 Nov 2007 16:43:11 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 68936-06 for ; Fri, 30 Nov 2007 16:43:05 -0400 (AST) Received: from marvin.harmless.hu (marvin.harmless.hu [195.56.55.204]) by postgresql.org (Postfix) with ESMTP id E794F2E37D4 for ; Fri, 30 Nov 2007 16:43:04 -0400 (AST) Received: from localhost (marvin-mail [192.168.0.2]) by marvin.harmless.hu (Postfix) with ESMTP id 112B47BFC3D; Fri, 30 Nov 2007 21:43:02 +0100 (CET) X-Virus-Scanned: by amavisd-new-2.4.2 (20060627) (Debian) at harmless.hu Received: from marvin.harmless.hu ([192.168.0.2]) by localhost (marvin.harmless.hu [192.168.0.2]) (amavisd-new, port 10024) with ESMTP id N3JEKlRaJ21R; Fri, 30 Nov 2007 21:43:02 +0100 (CET) Received: from marvin.harmless.hu (localhost [127.0.0.1]) by marvin.harmless.hu (Postfix) with ESMTP id C027C7BFC0A; Fri, 30 Nov 2007 21:43:01 +0100 (CET) Date: Fri, 30 Nov 2007 21:43:01 +0100 From: Gergely CZUCZY To: "Jonah H. Harris" Cc: Tena Sakai , pgsql-admin@postgresql.org Subject: Re: connection limit exceeded Message-ID: <20071130204301.GA93231@harmless.hu> References: <36e682920711301203g7fdb1b81vc7d2bbb2e4018827@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=x-unknown; protocol="application/pgp-signature"; boundary="8t9RHnE3ZwKMSgU+" Content-Disposition: inline In-Reply-To: <36e682920711301203g7fdb1b81vc7d2bbb2e4018827@mail.gmail.com> User-Agent: mutt-ng/devel-r804 (FreeBSD) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/259 X-Sequence-Number: 27502 --8t9RHnE3ZwKMSgU+ Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 wrote: > > On my postgres 8.1.1, I get a response > > psql: FATAL: connection limit exceeded for non-superusers >=20 > > 1) Is this to do with max_connections setting in the postgres > > configuration file? (my setting is 100 (I think this is the > > default).) >=20 > Yep. >=20 > > 2) how would I look at the "open/used" connections? >=20 > select * from pg_stat_activity; >=20 > > 3) should I try restarting postgres without changing the setting? >=20 > Has to be restarted for change to take effect. >=20 > > 4) what repercussion would there be if I increase this number to, > > say, 200? (and would that be a good idea?) >=20 > A little overhead, nothing bad. >=20 > > 5) finally, what's the best fix? (Do I need to go to pgpool?) >=20 > see pgbouncer >=20 > --=20 > Jonah H. Harris, Sr. Software Architect | phone: 732.331.1324 > EnterpriseDB Corporation | fax: 732.331.1301 > 499 Thornall Street, 2nd Floor | jonah.harris@enterprisedb.com > Edison, NJ 08837 | http://www.enterprisedb.com/ Sincerely, Gergely Czuczy mailto: gergely.czuczy@harmless.hu --=20 Weenies test. Geniuses solve problems that arise. --8t9RHnE3ZwKMSgU+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.4 (FreeBSD) owFlVU2P21QUHVpgYQmkLlAXSHA1IDqhscexEyaT0vlgpvMFLSNlJIRYjF7sa/sR +z33vefJpOoPYMECgVgVRHcsKqQu2LFDCLFixYoFEj8AdsC29zmTTJhGUT78fM89 99xzrz974fLCpSu/Pv7+o+uffv7gme+e/2VwvaiMEalbMHXChdvy/Za7GgZhy+26 7U4S+N2gu9JhnW4nWtk9rH7bksKgMO7RuMQeGDw1y2XOuLgBUcaURnOzMonbdab3 bXNdSs0Nl6IHXORc4OzsSDGhE1TuLRHJmIu0B3craTB2S8W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