Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 9018 invoked from network); 25 Jun 2009 13:09:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Jun 2009 13:09:04 -0000 Received: (qmail 77645 invoked by uid 500); 25 Jun 2009 13:09:12 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 77590 invoked by uid 500); 25 Jun 2009 13:09:12 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 77556 invoked by uid 99); 25 Jun 2009 13:09:10 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 25 Jun 2009 13:09:10 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [217.110.223.67] (HELO mail.intermediate.de) (217.110.223.67) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 25 Jun 2009 13:09:00 +0000 Received: from [192.168.231.1] (helo=mail.intermediate.de) by mail.intermediate.de with AVK MailGateway; for ; Thu, 25 Jun 2009 15:08:41 +0200 Subject: AW: OutOfMemoryError using IndexWriter MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_001_01C9F596.0EFB0BE3" Date: Thu, 25 Jun 2009 15:08:40 +0200 Content-class: urn:content-classes:message Message-ID: X-MimeOLE: Produced By Microsoft Exchange V6.5 X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: OutOfMemoryError using IndexWriter Thread-Index: Acn1hf58VkkaCrThQw22omNTAcbxYAADxdDt References: <9ac0c6aa0906240148ybcd0694ua3b9f7b7788a1c4b@mail.gmail.com><9ac0c6aa0906240252v36bb1301u6abdd7e0d5ffbd56@mail.gmail.com><9ac0c6aa0906240557l616e9f7ch2b1067398d2f1082@mail.gmail.com><9ac0c6aa0906240850o65fe805dp28caa82b0c790da4@mail.gmail.com> <9ac0c6aa0906250413sa84469co71587e2bf6b61e24@mail.gmail.com> From: "stefan" To: X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C9F596.0EFB0BE3 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, I'm afraid my test setup and code this is far too big. What I use lucene for is fairly simple. I have a database with about 150 = tables, I iterate all tables and create for each row a String = representation similar to a toString method containing all database = data. This string is then fed together with the primary key to lucene. = Full-text search of my db is then possible. Each document in Lucene = represents a row in the database. I tried calling setMaxBufferedDeleteTerms with 100MB heap size to no = avail, but calling commit every 10000 documents does help. I assume a = commit is similar to creating a new IndexWriter. HTH, Stefan -----Urspr=FCngliche Nachricht----- Von: Michael McCandless [mailto:lucene@mikemccandless.com] Gesendet: Do 25.06.2009 13:13 An: java-user@lucene.apache.org Betreff: Re: OutOfMemoryError using IndexWriter =20 Can you post your test code? If you can make it a standalone test, then I can repro and dig down faster. Can you try calling IndexWriter.setMaxBufferedDeleteTerms (eg, 1000) and see if that prevents the OOM? Mike ------_=_NextPart_001_01C9F596.0EFB0BE3 Content-Type: text/plain; charset=us-ascii --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org ------_=_NextPart_001_01C9F596.0EFB0BE3--