X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id AB635529EE for ; Wed, 13 Jul 2005 08:26:22 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 99869-03 for ; Wed, 13 Jul 2005 11:26:16 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id 17D1452B47 for ; Wed, 13 Jul 2005 08:26:15 -0300 (ADT) Received: (qmail 2073 invoked from network); 13 Jul 2005 11:26:19 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 13 Jul 2005 11:26:19 -0000 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> Mime-Version: 1.0 (Apple Message framework v730) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: Csaba Nagy , Postgres JDBC Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: out of memory error on a delete command Date: Wed, 13 Jul 2005 07:26:17 -0400 To: Oliver Jowett X-Mailer: Apple Mail (2.730) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.017 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/61 X-Sequence-Number: 13209 On 13-Jul-05, at 6:30 AM, Oliver Jowett wrote: > 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: Yes, this is what I meant. > > >>>> 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. If this is the case, I wonder if we can be more verbose about the message. Seems we can't see the forest for the trees here. > > -O > >