Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 37594633A99 for ; Sat, 26 Sep 2009 10:35:08 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 49132-06 for ; Sat, 26 Sep 2009 13:35:00 +0000 (UTC) X-Greylist: delayed 00:07:34.016239 by SQLgrey-1.7.6 Received: from mail-ew0-f228.google.com (mail-ew0-f228.google.com [209.85.219.228]) by mail.postgresql.org (Postfix) with ESMTP id 53B6063342A for ; Sat, 26 Sep 2009 10:35:00 -0300 (ADT) Received: by ewy28 with SMTP id 28so4299300ewy.42 for ; Sat, 26 Sep 2009 06:34:58 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.45.203 with SMTP id p53mr289272web.77.1253971644136; Sat, 26 Sep 2009 06:27:24 -0700 (PDT) In-Reply-To: References: Date: Sat, 26 Sep 2009 14:27:24 +0100 Message-ID: Subject: Re: DataSource.setMaxConnections() - Does not work From: Michael Andreasen To: pgsql-jdbc@postgresql.org Content-Type: multipart/alternative; boundary=0016e6dbea9e683f2604747b0685 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.598 tagged_above=-10 required=5 tests=BAYES_00=-2.599, HTML_MESSAGE=0.001 X-Spam-Level: X-Archive-Number: 200909/46 X-Sequence-Number: 19993 --0016e6dbea9e683f2604747b0685 Content-Type: text/plain; charset=ISO-8859-1 Even though I set it at 3, if I look on the server I can see many more connections have been made? On Sat, Sep 26, 2009 at 2:25 PM, Michael Andreasen wrote: > Hi, > > Using version: 8.3-605.jdbc3 > > DataSource.setMaxConnections() does not work. > > I create my datasource as such; > dataSource = new PGPoolingDataSource(); > dataSource.setServerName("10.44.73.50"); > dataSource.setDatabaseName("ops"); > dataSource.setUser("postgres"); > dataSource.setPassword("postgres"); > dataSource.setMaxConnections(3); > > -- > Regards, > Michael Andreasen > Senior Analyst / Developer > -- Regards, Michael Andreasen Senior Analyst / Developer --0016e6dbea9e683f2604747b0685 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Even though I set it at 3, if I look on the server I can see many more conn= ections have been made?


On Sat, Sep 2= 6, 2009 at 2:25 PM, Michael Andreasen <michael@dunlops.com> wrote:
Hi,

Using = version: 8.3-605.jdbc3

DataSource.setMaxConnections() does not work.=

I create my datasource as such;
dataSource =3D new PGPoolingDataSour= ce();
=A0=A0=A0=A0=A0=A0=A0 dataSource.setServerName("10.44.73.50&q= uot;);
=A0=A0=A0=A0=A0=A0=A0 dataSource.setDatabaseName("ops");
=A0= =A0=A0=A0=A0=A0=A0 dataSource.setUser("postgres");
=A0=A0=A0= =A0=A0=A0=A0 dataSource.setPassword("postgres");
=A0=A0=A0=A0= =A0=A0=A0 dataSource.setMaxConnections(3);

--
Regards,
Michael Andreasen
Senior Analyst / Developer



--
Regards,
Mich= ael Andreasen
Senior Analyst / Developer
--0016e6dbea9e683f2604747b0685--