Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 73641 invoked from network); 18 Mar 2010 09:26:59 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Mar 2010 09:26:59 -0000 Received: (qmail 23862 invoked by uid 500); 18 Mar 2010 09:26:59 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 23812 invoked by uid 500); 18 Mar 2010 09:26:59 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 23805 invoked by uid 99); 18 Mar 2010 09:26:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Mar 2010 09:26:59 +0000 X-ASF-Spam-Status: No, hits=-1.2 required=10.0 tests=AWL,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [209.85.217.225] (HELO mail-gx0-f225.google.com) (209.85.217.225) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Mar 2010 09:26:54 +0000 Received: by gxk25 with SMTP id 25so986386gxk.11 for ; Thu, 18 Mar 2010 02:26:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.132.13 with SMTP id f13mr5325727ybd.293.1268904392830; Thu, 18 Mar 2010 02:26:32 -0700 (PDT) In-Reply-To: <20100317201619.106370@gmx.net> References: <20100317181547.90050@gmx.net> <9ac0c6aa1003171230k18f74894i1d60f91704e1e62d@mail.gmail.com> <20100317201619.106370@gmx.net> Date: Thu, 18 Mar 2010 04:26:32 -0500 Message-ID: <9ac0c6aa1003180226n7f9ad939rf55678ff8654072c@mail.gmail.com> Subject: Re: IndexWriter.synced field accumulates data From: Michael McCandless To: java-dev@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks! Mike On Wed, Mar 17, 2010 at 3:16 PM, Gregor Kaczor wrote: > followup in > > https://issues.apache.org/jira/browse/LUCENE-2328 > > > -------- Original-Nachricht -------- >> Datum: Wed, 17 Mar 2010 14:30:25 -0500 >> Von: Michael McCandless >> An: java-dev@lucene.apache.org >> Betreff: Re: IndexWriter.synced field accumulates data > >> You're right! >> >> Really we should delete from sync'd when we delete the files. =A0We need >> to tie into IndexFileDeleter for that, maybe moving this set into >> there. >> >> Though in practice the amount of actual RAM used should rarely be an >> issue? =A0But we should fix it... >> >> Can you open an issue? >> >> Mike >> >> On Wed, Mar 17, 2010 at 1:15 PM, Gregor Kaczor wrote: >> > I am running into a strange OutOfMemoryError. My small test applicatio= n >> does index and delete some few files. This is repeated for 60k times. >> =A0Optimization is run from every 2k times a file is indexed. Index size= is 50KB. >> I did analyze the HeapDumpFile and realized that IndexWriter.synced fiel= d >> occupied more than half of the heap. That field is a private HashSet >> without a getter. Its task is to hold files which have been synced alrea= dy. >> > >> > There are two calls to addAll and one call to add on synced but no >> remove or clear throughout the lifecycle of the IndexWriter instance. >> > >> > According to the Eclipse Memory Analyzer synced contains 32618 entries >> which look like file names "_e065_1.del" or "_e067.cfs" >> > >> > The index directory contains 10 files only. >> > >> > I guess synced is holding obsolete data >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org >> > For additional commands, e-mail: java-dev-help@lucene.apache.org >> > >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-dev-help@lucene.apache.org > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-dev-help@lucene.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org