Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 32080 invoked from network); 5 Oct 2008 11:56:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Oct 2008 11:56:23 -0000 Received: (qmail 15387 invoked by uid 500); 5 Oct 2008 11:56:14 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 15346 invoked by uid 500); 5 Oct 2008 11:56:14 -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 15335 invoked by uid 99); 5 Oct 2008 11:56:13 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Oct 2008 04:56:13 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of petercheng456@gmail.com designates 209.85.142.187 as permitted sender) Received: from [209.85.142.187] (HELO ti-out-0910.google.com) (209.85.142.187) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 05 Oct 2008 11:55:11 +0000 Received: by ti-out-0910.google.com with SMTP id b8so1367477tic.11 for ; Sun, 05 Oct 2008 04:55:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:references:subject :date:message-id:mime-version:content-type:content-transfer-encoding :x-mailer:x-mimeole:thread-index:in-reply-to; bh=8n7immX6CWmfXC0Lzy9T5G48s2zJFQj/0s1DTaObXcQ=; b=seYDkkXv+Q0Z7hsHPN9q9w7tJeSe7wQWGzTB1nziAqGetKlDKUwguR6uIl7ZxyPaCe HuiyRVMLJcg4KphHGnKoeXIVn7I53zOu+Zu/4Ck1UqPTSskjTXjT6SA73OPdyTPNGLK1 jF/bwiZixJpMlnXyNre+XClVYX27UYYrJwqeg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:references:subject:date:message-id:mime-version :content-type:content-transfer-encoding:x-mailer:x-mimeole :thread-index:in-reply-to; b=GlisqVHhroB24D1tI1uZsfb3B35l9grk6Z+JutzWRofpuBjxmSZTQLjEBiPACdpAPf PnfmEsZc3RcwkhEnm1IpgvI70aKCPfeaKXK8ITRfCOz041MNhnMTaijkkVpZQSLMuSWC uLHJsgaXnhKKaiSrimvjENnVxD8s1AAYWM4XE= Received: by 10.110.92.8 with SMTP id p8mr4236774tib.11.1223207727997; Sun, 05 Oct 2008 04:55:27 -0700 (PDT) Received: from gcheng ([211.65.234.164]) by mx.google.com with ESMTPS id d7sm16535073tib.7.2008.10.05.04.55.23 (version=SSLv3 cipher=RC4-MD5); Sun, 05 Oct 2008 04:55:25 -0700 (PDT) From: "Peter Cheng" To: References: <02dc01c91671$f813ea20$8c458c0a@gcheng> <6e3ae6310809140703l790d3928x5b28f0e7d825398c@mail.gmail.com> <2DFB7BA9-9357-4F55-AB19-E8BF586458FA@mikemccandless.com> Subject: RE: Memory eaten up by String, Term and TermInfo? Date: Sun, 5 Oct 2008 19:55:25 +0800 Message-ID: <644A40A067364E3CA7331E3FB314193E@gcheng> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 Thread-Index: AckWdl0PQFXQ9rc3RdKl/tcAsL+FGgQamDMw In-Reply-To: <2DFB7BA9-9357-4F55-AB19-E8BF586458FA@mikemccandless.com> X-Virus-Checked: Checked by ClamAV on apache.org I have confirmed that the OutOfMemoryError is not Lucene's problem. It's just because JVM failed to perform GC when necessary, and I don't know why. To fix this, I started another thread to call GC every six hours, and problems got solved. Thank you all. Gong > -----Original Message----- > From: Michael McCandless [mailto:lucene@mikemccandless.com] > Sent: Sunday, September 14, 2008 10:28 PM > To: java-user@lucene.apache.org > Subject: Re: Memory eaten up by String, Term and TermInfo? > > > Small correction: it was checked in this morning (at least, on the > East Coast of the US). > > So you need to either build your own JAR using Lucene's trunk, or, > wait for tonite's build to run and then download the build artifacts > from here: > > http://hudson.zones.apache.org/hudson/job/Lucene-trunk > > If possible, please report back if this fixed your OutOfMemoryError. > > 2.4 will include this fix. > > Mike > > Chris Lu wrote: > > > Can you try to update to the latest Lucene svn version, like > > yesterday? > > LUCENE-1383 was checked in yesterday. This patch is > addressing a leak > > problem particular to J2EE applications. > > > > -- > > Chris Lu > > ------------------------- > > Instant Scalable Full-Text Search On Any Database/Application > > site: http://www.dbsight.net > > demo: http://search.dbsight.com > > Lucene Database Search in 3 minutes: > > > http://wiki.dbsight.com/index.php?title=Create_Lucene_Database > _Search_in_3_minutes > > DBSight customer, a shopping comparison site, (anonymous per > > request) got > > 2.6 Million Euro funding! > > > > On Sun, Sep 14, 2008 at 6:58 AM, Peter Cheng > > wrote: > > > >> Hi the community, > >> > >> In a Tomcat application (a keyword-based search engine), I use > >> Lucene 2.3.2 > >> to index 60 million documents, but each document is small-sized. > >> The total > >> index size is about 60GB. > >> After a successful running for a week, Tomcat was down due to > >> OutOfMemory. > >> Then I restarted Tomcat, and after three days, I used jmap > and jhat > >> to find > >> out what had eaten up the memory. I found millions of > instances of > >> String, > >> Term, and TermInfo. Why? > >> > >> In my application, I use a single IndexSearcher object, which is > >> shared by > >> all the requests. It is opened initially, and will never be closed. > >> > >> What could have eaten up the memory? What is referring to > millions of > >> instances of Term and TermInfo? > >> > >> I can provide any snippets of codes if necessary. > >> Thank you so much! > >> > >> Gong Cheng > >> > >> > >> > --------------------------------------------------------------------- > >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > >> For additional commands, e-mail: java-user-help@lucene.apache.org > >> > >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org