pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Marcus Andree S. Magalhaes <marcus.magalhaes@vlinfo.com.br>
To: oliver@opencloud.com
Cc: sylvain.laurent@elca.ch
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Bug (and fix): leaks of TCP connections when connected
Date: Mon, 21 Jun 2004 23:57:06 -0300 (BRT)
Message-ID: <61835.200.174.151.240.1087873026.squirrel@200.155.0.57> (raw)
In-Reply-To: <40D7937A.3040703@opencloud.com>
References: <A13B47F8EC3FD111A91500C04FD2A2820567E6FA@exchange.elca.ch>
	<40D7937A.3040703@opencloud.com>

<snip>

> In theory the discarded connections should eventually be garbage
> collected and closed, right? So at least the leak is bounded.
>

I don't think so. We had a similar problem here.

After many hours of debugging, we came to the fact that either
java garbage collector does _not_ close open connections or do it
after a long time (much longer than one would expect).
This feature/bug caused a severe connection leak in our code and
we had to issue a explicit close() to our socket connections.






view thread (10+ messages)  latest in thread

Message-ID: <61835.200.174.151.240.1087873026.squirrel@200.155.0.57>
Permalink:  ../61835.200.174.151.240.1087873026.squirrel@200.155.0.57/
Also on:    postgresql.org/message-id/61835.200.174.151.240.1087873026.squirrel@200.155.0.57

 · 

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: marcus.magalhaes@vlinfo.com.br, oliver@opencloud.com, sylvain.laurent@elca.ch
  Subject: Re: Bug (and fix): leaks of TCP connections when connected
  In-Reply-To: <61835.200.174.151.240.1087873026.squirrel@200.155.0.57>
  References: <A13B47F8EC3FD111A91500C04FD2A2820567E6FA@exchange.elca.ch> <40D7937A.3040703@opencloud.com> <61835.200.174.151.240.1087873026.squirrel@200.155.0.57>

* 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