From: Kris Jurka <books@ejurka.com>
To: David Blasby <dblasby@openplans.org>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: OutOfMemory causing connection leaks
Date: Fri, 28 Apr 2006 19:09:00 -0500 (EST)
Message-ID: <Pine.BSO.4.63.0604281907230.7730@leary2.csoft.net> (raw)
In-Reply-To: <Pine.BSO.4.63.0603241358300.10893@leary.csoft.net>
References: <44243ECF.9020301@openplans.org>
<Pine.BSO.4.63.0603241358300.10893@leary.csoft.net>
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
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: books@ejurka.com, dblasby@openplans.org
Subject: Re: OutOfMemory causing connection leaks
In-Reply-To: <Pine.BSO.4.63.0604281907230.7730@leary2.csoft.net>
References: <44243ECF.9020301@openplans.org> <Pine.BSO.4.63.0603241358300.10893@leary.csoft.net> <Pine.BSO.4.63.0604281907230.7730@leary2.csoft.net>
* 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