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 761B29FB1D4 for ; Tue, 29 Aug 2006 09:05:45 -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 60374-07 for ; Tue, 29 Aug 2006 09:05:28 -0300 (ADT) 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 B198E9FB1CC for ; Tue, 29 Aug 2006 09:05:28 -0300 (ADT) Received: (qmail 29927 invoked from network); 29 Aug 2006 12:05:27 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 29 Aug 2006 12:05:27 -0000 In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v752.2) X-Priority: 3 Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <6E13F8E6-8D37-4D2D-833D-AFFD87BF22B8@fastcrypt.com> Cc: pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: outOfMemoryError Date: Tue, 29 Aug 2006 08:05:26 -0400 To: "Vidas Makauskas" X-Mailer: Apple Mail (2.752.2) X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.038 tagged_above=0 required=5 tests=AWL, SPF_PASS X-Spam-Level: X-Archive-Number: 200608/156 X-Sequence-Number: 15683 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 >