pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Andreasen <michael@dunlops.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: DataSource.setMaxConnections() - Does not work
Date: Sat, 26 Sep 2009 14:27:24 +0100
Message-ID: <c752d6bd0909260627lef23db4lc517c58de38b1ea0@mail.gmail.com> (raw)
In-Reply-To: <c752d6bd0909260625w46aee4fepdb10f3c79d7ae2be@mail.gmail.com>
References: <c752d6bd0909260625w46aee4fepdb10f3c79d7ae2be@mail.gmail.com>

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 <michael@dunlops.com>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

view thread (4+ messages)  latest in thread

Message-ID: <c752d6bd0909260627lef23db4lc517c58de38b1ea0@mail.gmail.com>
Permalink:  ../c752d6bd0909260627lef23db4lc517c58de38b1ea0@mail.gmail.com/
Also on:    postgresql.org/message-id/c752d6bd0909260627lef23db4lc517c58de38b1ea0@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: michael@dunlops.com
  Subject: Re: DataSource.setMaxConnections() - Does not work
  In-Reply-To: <c752d6bd0909260627lef23db4lc517c58de38b1ea0@mail.gmail.com>
  References: <c752d6bd0909260625w46aee4fepdb10f3c79d7ae2be@mail.gmail.com> <c752d6bd0909260627lef23db4lc517c58de38b1ea0@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox