Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 2DF5A633A4F for ; Sat, 26 Sep 2009 10:51:26 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 55053-01 for ; Sat, 26 Sep 2009 13:51:05 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from leary.csoft.net (leary.csoft.net [205.205.214.5]) by mail.postgresql.org (Postfix) with ESMTP id 25DE36330AA for ; Sat, 26 Sep 2009 10:51:14 -0300 (ADT) Received: by leary.csoft.net (Postfix, from userid 1112) id 49294A2D1; Sat, 26 Sep 2009 09:51:12 -0400 (EDT) Date: Sat, 26 Sep 2009 09:51:12 -0400 (EDT) From: Kris Jurka X-X-Sender: books@leary.csoft.net To: Michael Andreasen cc: pgsql-jdbc@postgresql.org Subject: Re: DataSource.setMaxConnections() - Does not work In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSO 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=AWL=0.000, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200909/48 X-Sequence-Number: 19995 On Sat, 26 Sep 2009, Michael Andreasen wrote: > Even though I set it at 3, if I look on the server I can see many more > connections have been made? The three connection limit is the most the datasource will open for you, but it cannot prevent other people/processes from opening other connections to the server. If you really believe all of these are being opened by the datasource, perhaps you really have many instances of the datasource, each of which will open up to three connections. Kris Jurka