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 050489FB1FC for ; Tue, 29 Aug 2006 04:45:23 -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 38331-05 for ; Tue, 29 Aug 2006 04:45:13 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id C0CB19FB1F9 for ; Tue, 29 Aug 2006 04:45:12 -0300 (ADT) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id 7AE6130952; Tue, 29 Aug 2006 09:45:10 +0200 (MET DST) From: "Vidas Makauskas" X-Newsgroups: pgsql.interfaces.jdbc Subject: outOfMemoryError Date: Tue, 29 Aug 2006 10:46:57 +0300 Organization: Hub.Org Networking Services Lines: 43 Message-ID: Reply-To: "Vidas Makauskas" X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2869 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 To: pgsql-jdbc@postgresql.org X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.05 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200608/153 X-Sequence-Number: 15680 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