X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (wm.hub.org [200.46.204.128]) by postgresql.org (Postfix) with ESMTP id 661D79FBBF3 for ; Fri, 25 Aug 2006 15:01:11 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.128]) (amavisd-new, port 10024) with ESMTP id 15708-06 for ; Fri, 25 Aug 2006 18:00:58 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by postgresql.org (Postfix) with SMTP id AA6019FBBEE for ; Fri, 25 Aug 2006 15:00:57 -0300 (ADT) Received: (qmail 29875 invoked from network); 25 Aug 2006 18:00:56 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 25 Aug 2006 18:00:56 -0000 In-Reply-To: <44EEE89E.8060506@larcb.ecs.nasa.gov> References: <44EDDD23.2040605@larcb.ecs.nasa.gov> <44EEA9D9.4060309@mosaic-ag.com> <44EEE89E.8060506@larcb.ecs.nasa.gov> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Cc: Roland Walter , Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: Exception in thread "main" java.lang.OutOfMemoryError: Date: Fri, 25 Aug 2006 14:00:57 -0400 To: Jim Davis X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200608/137 X-Sequence-Number: 15664 Jim, What happens when you try to do this in psql. It's possible that there are notify messages filling up memory. Dave On 25-Aug-06, at 8:10 AM, Jim Davis wrote: > Jim Davis wrote: > > I changed the executeUpdate to just an execute, saved, re-ran java > application and received the same > Exception in thread "main" java.lang.OutOfMemoryError: Java heap > space error. > > > > > Roland Walter wrote: > >> Jim Davis schrieb: >> >>> I am not a java programmer, so it is possible I am doing >>> something wrong: >>> >>> I saw this problem initially on my test system using sequoia jdbc >>> driver with my postgresql 8.1.4 database servers trying >>> to create an index on a 27 million row table. After many >>> suggestions and tests, It was suggested I try using the postgresql >>> jdbc driver to perform the create index to try and isolate where >>> the out of memory condition is occurring. So I edited a >>> java application I was testing with and pointed it to the >>> postgresql jdbc driver. I used version postgresql-. >>> 2dev-503.jdbc3.jar >>> the first time and postgresql-9.2dev-503.jdbc3.jar the second >>> time with the same results: Exception in thread "main" >>> java.lang.OutOfMemoryError: Java heap space >>> >> I have no idea, why this happens. I would not expect that. But i >> saw in your code example that you use executeUpdate for a defining >> sql statement. I would use just the execute method. A cursor >> should not be needed. >> >> Regards, >> Roland. >> > > > ---------------------------(end of > broadcast)--------------------------- > TIP 3: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faq >