Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 6007 invoked from network); 5 Jun 2010 09:55:52 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 5 Jun 2010 09:55:52 -0000 Received: (qmail 97703 invoked by uid 500); 5 Jun 2010 09:55:50 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 97442 invoked by uid 500); 5 Jun 2010 09:55:50 -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 97433 invoked by uid 99); 5 Jun 2010 09:55:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Jun 2010 09:55:49 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.211.194] (HELO mail-yw0-f194.google.com) (209.85.211.194) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 05 Jun 2010 09:55:42 +0000 Received: by ywh32 with SMTP id 32so1949418ywh.5 for ; Sat, 05 Jun 2010 02:55:21 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.242.3 with SMTP id p3mr12219957ybh.130.1275731721461; Sat, 05 Jun 2010 02:55:21 -0700 (PDT) Received: by 10.151.11.20 with HTTP; Sat, 5 Jun 2010 02:55:21 -0700 (PDT) In-Reply-To: References: Date: Sat, 5 Jun 2010 05:55:21 -0400 Message-ID: Subject: Re: Index Writer, RawPostingList and Memory Management From: Michael McCandless To: java-user@lucene.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org They are reclaimed, but, you may be hitting one of the memory leak bugs recently fixed but not yet (though soon to be) released. Can you try running with the tip of whichever release you are using? Mike On Fri, Jun 4, 2010 at 10:10 PM, Shay Banon wrote: > Hi, > > =A0I have a question on how IndexWriter manages its memory when it comes = to > RawPostingList. Its pretty late, so sorry if the question is obvious, but > the question is when does the RawPostingList array gets reclaimed or > shrinked? I assume they get factored in the ram balancing process, but, i= s > there a chance that they won't be reclaimed? Can I force them to be > reclaimed, I think that IndexWriter#commit does not affect that... . Here= is > a link to a sample heap dump I took (I do call flush): > http://skitch.com/kimchy/dg3e4/eclipse-memory-analyzer. > > Thanks, > Shay > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org