Re: OutOfMemory causing connection leaks

From: Kris Jurka <books(at)ejurka(dot)com>
To: David Blasby <dblasby(at)openplans(dot)org>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: OutOfMemory causing connection leaks
Date: 2006-04-29 00:09:00
Message-ID: Pine.BSO.4.63.0604281907230.7730@leary2.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Fri, 24 Mar 2006, Kris Jurka wrote:

> On Fri, 24 Mar 2006, David Blasby wrote:
>
>> [OutOfMemory errors leave protocol stream in unknown state]
>
> Yeah, that's a problem alright. The easiest thing to do is to treat an out
> of memory error like an IOException and destroy the whole connection
> immediately. This isn't terribly friendly though and the vast majority of
> the errors are going to come from ReceiveTupleV3, so we could put some checks
> in that path that could get the protocol back into a known state. Adding
> checks around every allocation isn't going to be worth the effort.
>

I've applied a patch for this to 8.0, 8.1, and HEAD cvs branches and new
official releases should hopefully be out soon.

Kris Jurka

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2006-04-29 02:20:05 Re: gcj has a lot of complaints about 8.1-405 release
Previous Message Jason Porter 2006-04-28 20:25:05 Re: connection pooling with servlets