From: Dave Cramer <pg@fastcrypt.com>
To: Vidas Makauskas <vms@centras.lt>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: outOfMemoryError
Date: Tue, 29 Aug 2006 08:05:26 -0400
Message-ID: <6E13F8E6-8D37-4D2D-833D-AFFD87BF22B8@fastcrypt.com> (raw)
In-Reply-To: <ed0ra2$5ct$1@news.hub.org>
References: <ed0ra2$5ct$1@news.hub.org>
Vidas,
Can you post your basic loop ?
From what I can see your expectations are a little unrealistic how
do you expect to process 10G rows at a time?
Dave
On 29-Aug-06, at 3:46 AM, Vidas Makauskas wrote:
> Hi,
>
> I've upgrade
> SLES9 with pg73b1jdbc3.jar, IBMjava1.4.2, postgres 7.4.3
> to
> SLES10 with postgresql-8.1-404.jdbc3.jar, sunjava1.4.2, postgres 8.1.4
> and get error in well working program previously with 10,000,000+
> rows:
> Exception in thread "main" java.lang.OutOfMemoryError
> on ResultSet.insertRow() in application source row after 100,000+
> inserted
> rows from Oracle to Postgres table.
>
> With java -Xmx128M i can insert 200,000+ rows.
> But i need 10,000,000+ rows - previosly inserted without problems.
>
> Then I make suppose what it's memory java managment isue
> there fore atempt close and open outputResultSet every 100,000
> inserted
> records
> and reach 1,000,000+ inserted records.
>
> But i need 10,000,000,000+ and with java -Xmx can't.
>
> Next i check with pg73b1jdbc3.jar and get the exacly same result.
> I've check SELECT * FROM outputTable WHERE oid=0,
> because i need append only.
>
> I found in google "Reduce the amount of memory you need during
> processing of
> the ResultSets".
> setFetchSize(1) not impact.
> How to do?
>
> Next I plan remove sun java and will install IBM java?
> Why my program work previously with default configuration?
>
> What next?
>
> I can't believe that it is problem for me only.
> May be I'm too new to java and miss some requirements.
>
> Any advices are wellcome.
>
> Vidas
>
>
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 5: don't forget to increase your free space map settings
>
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, vms@centras.lt
Subject: Re: outOfMemoryError
In-Reply-To: <6E13F8E6-8D37-4D2D-833D-AFFD87BF22B8@fastcrypt.com>
References: <ed0ra2$5ct$1@news.hub.org> <6E13F8E6-8D37-4D2D-833D-AFFD87BF22B8@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