Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 282B34E92 for ; Tue, 21 Jun 2011 17:38:17 +0000 (UTC) Received: (qmail 75192 invoked by uid 500); 21 Jun 2011 17:38:14 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 75141 invoked by uid 500); 21 Jun 2011 17:38: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 75133 invoked by uid 99); 21 Jun 2011 17:38:14 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jun 2011 17:38:14 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of erickerickson@gmail.com designates 209.85.210.48 as permitted sender) Received: from [209.85.210.48] (HELO mail-pz0-f48.google.com) (209.85.210.48) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jun 2011 17:38:07 +0000 Received: by pzk10 with SMTP id 10so6020832pzk.35 for ; Tue, 21 Jun 2011 10:37:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=/0sXXlv+6xnHHMav0sUb7u3iQmxOE4ITXfnA/y1g4B8=; b=vj3tPdEvVB/DdSkz5uQJ9pPQSyTzujrj3/op8s+KuKP+8+mjP4ZNAquPPR3oXKLy1o CmNrlIc6EmJkynqiA56pM9lEtuF8+GRetQU2KJZ5J+kkV4OwPJvB9KysB7HWrcE+eG9V iILbG0ZUxiR5XB3MpFj0g+wwyZvpn3FammyLk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=GqJyE6IUC1H2vvFmG3UEX8p1QELxJITOe18u3FvBnEZVMT2FENnskrenX+cB1lPJrE k7CcAoJ5EpQCcxPu/NIyT7z/HQ8CFaX/+5Ep5UM5iEGeGpiY4fAKc8uO+KvFa1V1WpOd mmwGTd2znqzzcdXlRPGGqEVYI9c79n+oU0s+I= MIME-Version: 1.0 Received: by 10.68.1.68 with SMTP id 4mr3145007pbk.306.1308677866414; Tue, 21 Jun 2011 10:37:46 -0700 (PDT) Received: by 10.68.41.133 with HTTP; Tue, 21 Jun 2011 10:37:46 -0700 (PDT) In-Reply-To: <17741_1308659988_ZZh0u321fM5SQ.00_4E009113.6020402@uni-bielefeld.de> References: <780_1308648748_ZZh0u11fzJ~dL.00_4E00652B.6010903@uni-bielefeld.de> <17741_1308659988_ZZh0u321fM5SQ.00_4E009113.6020402@uni-bielefeld.de> Date: Tue, 21 Jun 2011 13:37:46 -0400 Message-ID: Subject: Re: questions about fieldCache From: Erick Erickson 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 > So action that starts a new searcher and closes the old one (like > replication) > should release cache from fieldCache through garbage collection? Absolutely. It won't be immediate, because the JVM has some heuristics it uses to initiate garbage collection. You could try attaching to the Solr instance with jConsole and use that to trigger garbage collections to see what that could tell you... Best Erick On Tue, Jun 21, 2011 at 8:39 AM, Bernd Fehling wrote: > > Currently I'm using version 3.2. > I used already 4.x some month ago but there was to much change to that ti= me > so I decided to go with 3.0.x and updated to 3.1 and now to 3.2. > > I'm still dealing with my fieldCache OOM issue and want to understand > why things are as they are. > I have already removed/solved one "insane message" from fieldCache and > three ReadOnlyDirectoryReader Entries from fieldCache. > Only sorting produces now an entry. > > So action that starts a new searcher and closes the old one (like > replication) > should release cache from fieldCache through garbage collection? > > Regards > Bernd > > Am 21.06.2011 13:49, schrieb Erick Erickson: >> >> Hmmm, I'm not going to even try to talk about the code itself, but I wil= l >> add >> a couple of clarifications: >> >> Jetty has nothing to do with it. It's in Lucene, and it's used for sorti= ng >> and >> sometimes faceting. The cache is associated with a reader on a machine >> used to search. When replication happens, that searcher should be closed >> and any data associated with the cache is returned to the system. >> >> Someone else will have to chime in on the underlying details.. >> >> By the way, what version of Solr are you using? Because the memory >> requirements for string sorting and faceting have been drastically >> reduced on the trunk version. In a really rough test I've seen 75% >> reductions in memory requirements (note I was doing the worst things >> I could think of, so I don't necessarily expect your results to be as >> drastic). >> >> Best >> Erick >> >> On Tue, Jun 21, 2011 at 5:32 AM, Bernd Fehling >> =A0wrote: >>> >>> I'm trying to understand the logic of/behind fieldCache. >>> >>> Who has written this peace of code or has good knowledge about it? >>> >>> Why is it under the hood of jetty? >>> >>> I see FieldCache$StringIndex with >>> - f_dccollection >>> - f_dcyear >>> - f_dctype >>> but also >>> - dctitle --> =A0f_dctitle --> =A0f_dccreator >>> - title --> =A0f_dcyear >>> >>> There are some entries without further reference like the first example= s >>> and some that have references to further HashMaps like a chain. >>> Why is it this way, what is the purpose? >>> >>> What is fieldCache doing if a server is replicated, will all old conten= t >>> be cleaned up because of a new index with new content? >>> >>> Regards >>> Bernd >>> > > --------------------------------------------------------------------- > 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