pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Csaba Nagy <nagy@ecircle-ag.com>
Cc: Dave Cramer <pg@fastcrypt.com>
Cc: Postgres JDBC <pgsql-jdbc@postgresql.org>
Subject: Re: out of memory error on a delete command
Date: Wed, 13 Jul 2005 10:30:17 +0000
Message-ID: <42D4ED39.8060506@opencloud.com> (raw)
In-Reply-To: <1121244636.3085.187.camel@coppola.muc.ecircle.de>
References: <1121165003.3085.165.camel@coppola.muc.ecircle.de>
	<9284674D-C33E-44BE-98F6-1B939AB143D2@fastcrypt.com>
	<1121244636.3085.187.camel@coppola.muc.ecircle.de>

Csaba Nagy wrote:
> OK, that might very well be a reason... is there a way to see what were
> the error messages ? Are they accumulating at server side or on the JDBC
> side ? If it's the JDBC side, is it reasonable maybe to just discard
> error messages if they are too many, or truncate if it's too big, in
> order to avoid this exception (which is not very helpful in itself...) ?

I think Dave actually means "too many warnings" (or NOTICEs?) which can 
indeed fill Java heap as they're accumulated as SQLWarnings attached to 
the relevant Statement. In that case, though, you'd see an 
OutOfMemoryError. This exception:

>>>org.postgresql.util.PSQLException: ERROR: out of memory

is just the driver reporting a server-side error, so it's the server 
that's run out of memory in this case.

-O



view thread (13+ messages)  latest in thread

Message-ID: <42D4ED39.8060506@opencloud.com>
Permalink:  ../42D4ED39.8060506@opencloud.com/
Also on:    postgresql.org/message-id/42D4ED39.8060506@opencloud.com

 · 

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: oliver@opencloud.com, nagy@ecircle-ag.com, pg@fastcrypt.com
  Subject: Re: out of memory error on a delete command
  In-Reply-To: <42D4ED39.8060506@opencloud.com>
  References: <1121165003.3085.165.camel@coppola.muc.ecircle.de> <9284674D-C33E-44BE-98F6-1B939AB143D2@fastcrypt.com> <1121244636.3085.187.camel@coppola.muc.ecircle.de> <42D4ED39.8060506@opencloud.com>

* 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