pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Jim Davis <j.a.davis@larc.nasa.gov>
Cc: Roland Walter <rwa@mosaic-ag.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Exception in thread "main" java.lang.OutOfMemoryError:
Date: Fri, 25 Aug 2006 14:00:57 -0400
Message-ID: <F199BE4A-9B2E-47C7-B1E4-E4DC3091CE96@fastcrypt.com> (raw)
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>

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
>




view thread (9+ messages)  latest in thread

Message-ID: <F199BE4A-9B2E-47C7-B1E4-E4DC3091CE96@fastcrypt.com>
Permalink:  ../F199BE4A-9B2E-47C7-B1E4-E4DC3091CE96@fastcrypt.com/
Also on:    postgresql.org/message-id/F199BE4A-9B2E-47C7-B1E4-E4DC3091CE96@fastcrypt.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: pg@fastcrypt.com, j.a.davis@larc.nasa.gov, rwa@mosaic-ag.com
  Subject: Re: Exception in thread "main" java.lang.OutOfMemoryError:
  In-Reply-To: <F199BE4A-9B2E-47C7-B1E4-E4DC3091CE96@fastcrypt.com>
  References: <44EDDD23.2040605@larcb.ecs.nasa.gov> <44EEA9D9.4060309@mosaic-ag.com> <44EEE89E.8060506@larcb.ecs.nasa.gov> <F199BE4A-9B2E-47C7-B1E4-E4DC3091CE96@fastcrypt.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