X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 4283A9FB52B for ; Fri, 25 Aug 2006 04:42:33 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 77453-04 for ; Fri, 25 Aug 2006 04:42:27 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mosaic02.mosaic.de (mosaic02.mosaic.de [195.247.16.18]) by postgresql.org (Postfix) with ESMTP id F3A449FB529 for ; Fri, 25 Aug 2006 04:42:26 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by mosaic02.mosaic.de (Postfix) with ESMTP id DD0EA778B3; Fri, 25 Aug 2006 09:44:31 +0200 (CEST) Received: from mosaic02.mosaic.de ([127.0.0.1]) by localhost (mosaic02.mosaic-ag.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 31926-19; Fri, 25 Aug 2006 09:44:31 +0200 (CEST) Received: from mailproxy.mosaic.de (proxy01.mosaic.de [172.17.201.1]) by mosaic02.mosaic.de (Postfix) with ESMTP id 0A01A778A9; Fri, 25 Aug 2006 09:44:31 +0200 (CEST) Received: by mailproxy.mosaic.de (Postfix, from userid 10000) id 792213A71C; Fri, 25 Aug 2006 09:42:24 +0200 (CEST) Received: from enterprise.mosaic-ag.com (enterprise.mosaic-ag.com [172.17.4.21]) by mailproxy.mosaic.de (Postfix) with ESMTP id 6AF7D3A71B; Fri, 25 Aug 2006 09:42:24 +0200 (CEST) Received: from [172.17.1.87] ([172.17.1.87]) by enterprise.mosaic-ag.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Fri, 25 Aug 2006 09:40:34 +0200 Message-ID: <44EEA9D9.4060309@mosaic-ag.com> Date: Fri, 25 Aug 2006 09:42:17 +0200 From: Roland Walter User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: Jim Davis Cc: pgsql-jdbc@postgresql.org Subject: Re: Exception in thread "main" java.lang.OutOfMemoryError: References: <44EDDD23.2040605@larcb.ecs.nasa.gov> In-Reply-To: <44EDDD23.2040605@larcb.ecs.nasa.gov> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 25 Aug 2006 07:40:34.0250 (UTC) FILETIME=[BFB22AA0:01C6C819] X-Virus-Scanned: mosaic-ag.com X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.193 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200608/129 X-Sequence-Number: 15656 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. -- Roland Walter mailto: rwa (at) mosaic-ag (dot) com MOSAIC SOFTWARE AG phone: +49 (0) 22 25 / 88 2-44 9 Am Pannacker 3 fax: +49 (0) 22 25 / 88 2-20 1 D-53340 Meckenheim http://www.mosaic-ag.com Die in dieser E-Mail enthaltenen Nachrichten und Anhaenge sind ausschliesslich fuer den bezeichneten Adressaten bestimmt. Sie koennen rechtlich geschuetzte, vertrauliche Informationen enthalten. Falls Sie nicht der bezeichnete Empfaenger oder zum Empfang dieser E-Mail nicht berechtigt sind, ist die Verwendung, Vervielfaeltigung oder Weitergabe von Nachrichten und Anhaengen untersagt. Falls Sie diese E-Mail irrtuemlich erhalten haben, informieren Sie bitte unverzueglich den Absender und vernichten Sie die E-Mail. This e-mail message and any attachment are intended exclusively for the named addressee. They may contain confidential information which may also be protected by professional secrecy. Unless you are the named addressee (or authorised to receive for the addressee) you may not copy or use this message or any attachment or disclose the contents to anyone else. If this e-mail was sent to you by mistake please notify the sender immediately and delete this e-mail.