Re: OutOfMemory causing connection leaks - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: OutOfMemory causing connection leaks
Date
Msg-id Pine.BSO.4.63.0603241358300.10893@leary.csoft.net
Whole thread Raw
In response to OutOfMemory causing connection leaks  (David Blasby <dblasby@openplans.org>)
Responses Re: OutOfMemory causing connection leaks
Re: OutOfMemory causing connection leaks
List pgsql-jdbc

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.

Kris Jurka

pgsql-jdbc by date:

Previous
From: David Blasby
Date:
Subject: OutOfMemory causing connection leaks
Next
From: Tom Lane
Date:
Subject: Re: OutOfMemory causing connection leaks