Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 2F6DD1337CCF for ; Wed, 27 Apr 2011 10:59:53 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 99193-01-8 for ; Wed, 27 Apr 2011 13:59:35 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from gw.wicourts.gov (gwmta.wicourts.gov [165.219.244.99]) by mail.postgresql.org (Postfix) with ESMTP id 00B591337C12 for ; Wed, 27 Apr 2011 10:44:41 -0300 (ADT) Received: from Courts-MTA by gw.wicourts.gov with Novell_GroupWise; Wed, 27 Apr 2011 08:44:42 -0500 Message-Id: <4DB7D775020000250003CF28@gw.wicourts.gov> X-Mailer: Novell GroupWise Internet Agent 8.0.1 Date: Wed, 27 Apr 2011 08:44:37 -0500 From: "Kevin Grittner" To: "Suprabhat" , Subject: Re: BUG #5995: connection pooling not working References: <201104271155.p3RBtDwu092291@wwwmaster.postgresql.org> In-Reply-To: <201104271155.p3RBtDwu092291@wwwmaster.postgresql.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201104/205 X-Sequence-Number: 30124 "Suprabhat" wrote: > FATAL: too many connections already and there are too many > postgres processes on the server. We have used connection > pooling methods after unsuccessfully using pgpool2. Is there a thread somewhere where you were trying to get help configuring pgpool? > Probably we are doing some basics wrong. > > Total number of connections we are trying to make is something > around 300 concurrently. Well, the main point of a connection pool is to allow multiple client-side processes or threads to see a large number of logical connections to the database while those funnel down to a small number on the database side. 300 active users might do quite well on a connection pool which maintains 10 or 20 connections to the database. It sounds like you haven't used the correct settings to achieve that. -Kevin