Re: jdbc pooling question

From: "Marcus Andree S(dot) Magalhaes" <marcus(dot)magalhaes(at)vlinfo(dot)com(dot)br>
To: <nhm(at)mimecast(dot)net>
Cc: <marcus(dot)magalhaes(at)vlinfo(dot)com(dot)br>, <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: jdbc pooling question
Date: 2004-01-11 21:52:07
Message-ID: 61025.200.174.148.100.1073857927.squirrel@webmail.webnow.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc


>
> I posed a similar question to the forum a couple of weeks back and got
> no answer. I have similar problems, but my biggest bugbear is the fact
> that the Jdbc3PoolingDataSource (I use the JDBC3 drivers) does not throw
> any timeout exception if you use getConnection() and there are no

Yes. That's exactly what we found here. If there are no connections
available, the getConnection will wait, wait and wait. The caller
class has no way to set a timeout...

> available connections in the pool. The reason why there are no
> connections left in the pool is a matter I need to investigate further,
> but I could be experiencing a similar problem to you.
>

I double checked the code and found a couple places where we did the
following:

if (statement != null) statement.close();
if (connection != null) connection.close();

but the ResultSet wasn't closed. This left me wandering if an opened
resultset could be the leak source.

> My team is working on our own connection pool - which will provide a bit
> more transparency.
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/docs/faqs/FAQ.html

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2004-01-11 21:56:36 Re: Connection Pool Timeout
Previous Message Kris Jurka 2004-01-11 21:27:31 Re: Connection Time