X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id DFCB111F6002 for ; Fri, 28 Apr 2006 21:09:06 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 29401-02 for ; Fri, 28 Apr 2006 21:09:02 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by postgresql.org (Postfix) with SMTP id 16DB211F6004 for ; Fri, 28 Apr 2006 21:08:59 -0300 (ADT) Received: (qmail 20452 invoked by uid 1112); 29 Apr 2006 00:09:00 -0000 Date: Fri, 28 Apr 2006 19:09:00 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary2.csoft.net To: David Blasby cc: pgsql-jdbc@postgresql.org Subject: Re: OutOfMemory causing connection leaks In-Reply-To: Message-ID: References: <44243ECF.9020301@openplans.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200604/191 X-Sequence-Number: 15125 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