Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 7216 invoked from network); 14 Sep 2008 13:59:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Sep 2008 13:59:05 -0000 Received: (qmail 90054 invoked by uid 500); 14 Sep 2008 13:58:55 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 90022 invoked by uid 500); 14 Sep 2008 13:58:55 -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 90011 invoked by uid 99); 14 Sep 2008 13:58:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Sep 2008 06:58:55 -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.189 as permitted sender) Received: from [209.85.142.189] (HELO ti-out-0910.google.com) (209.85.142.189) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 14 Sep 2008 13:57:56 +0000 Received: by ti-out-0910.google.com with SMTP id b8so983495tic.11 for ; Sun, 14 Sep 2008 06:58: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:subject:date :message-id:mime-version:content-type:content-transfer-encoding :x-mailer:x-mimeole:thread-index; bh=c6mLBNYJwfjjYGdrJDXmGHereJmtyFQlnb1VkCQEWeQ=; b=SVuBteueeBu/2xmGJ3w38em9cBpSljrqJcTFTU0gBpPJPROah0/YZbPNkqg1rQB119 4ZxK0SirxMqEGkv1ZTX4LBVukizioOZdA8fEOl9l3dKxzdDSJx/H/6tf7JMIqu5QxCru bHXbEilFkMmOMfTNSYMtUyORjRqBH8E+KvGEg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:message-id:mime-version:content-type :content-transfer-encoding:x-mailer:x-mimeole:thread-index; b=wN78dgzOQbXdGnHe5veZ0QSh3a9GuORIi6KrCbHC7tvsQiMf9fSGoBzQfAaxyKtBvH QfICO5g+k4d+0SA/DeqUQqWocPIKOt5aqKIr7otcYH6f3l/SZlgVB6OnBeiE/bAdJb+k BgLHaLw61KkVQIvBt1rHLpPzvbk9z2Xq3WYAI= Received: by 10.110.3.15 with SMTP id 15mr8422151tic.48.1221400707985; Sun, 14 Sep 2008 06:58:27 -0700 (PDT) Received: from gcheng ( [211.65.234.238]) by mx.google.com with ESMTPS id y3sm7847271tia.3.2008.09.14.06.58.23 (version=SSLv3 cipher=RC4-MD5); Sun, 14 Sep 2008 06:58:26 -0700 (PDT) From: "Peter Cheng" To: Subject: Memory eaten up by String, Term and TermInfo? Date: Sun, 14 Sep 2008 21:58:24 +0800 Message-ID: <02dc01c91671$f813ea20$8c458c0a@gcheng> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 11 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350 Thread-Index: AckWcfR0rdumEV7YTsuUkZRVn/IDJQ== X-Virus-Checked: Checked by ClamAV on apache.org 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