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 D97409FB9E7 for ; Fri, 25 Aug 2006 09:11:29 -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 70437-09 for ; Fri, 25 Aug 2006 12:11:17 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey- Received: from l0isi08.larcb.ecs.nasa.gov (l0isi08u.ecs.nasa.gov [129.165.226.2]) by postgresql.org (Postfix) with ESMTP id 9B06A9FB9EB for ; Fri, 25 Aug 2006 09:11:16 -0300 (ADT) Received: (from hermes@localhost) by l0isi08.larcb.ecs.nasa.gov (AIX5.3/8.11.6p2/8.11.0) id k7PCFVr1261646; Fri, 25 Aug 2006 08:15:31 -0400 X-Authentication-Warning: l0isi08.larcb.ecs.nasa.gov: hermes set sender to using -f Received: by larcb.ecs.nasa.gov via smwrap Version 5.1.5 id smwrap1T3p7a; Fri Aug 25 08:14:38 2006 Message-ID: <44EEE89E.8060506@larcb.ecs.nasa.gov> Date: Fri, 25 Aug 2006 08:10:06 -0400 From: Jim Davis User-Agent: Mozilla Thunderbird 1.0.8-1.1.fc4 (X11/20060501) MIME-Version: 1.0 To: Roland Walter CC: Subject: Re: Exception in thread "main" java.lang.OutOfMemoryError: References: <44EDDD23.2040605@larcb.ecs.nasa.gov> <44EEA9D9.4060309@mosaic-ag.com> In-Reply-To: <44EEA9D9.4060309@mosaic-ag.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=UNPARSEABLE_RELAY X-Spam-Level: X-Archive-Number: 200608/135 X-Sequence-Number: 15662 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. >