Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EEBC110425 for ; Wed, 14 Aug 2013 21:30:20 +0000 (UTC) Received: (qmail 19179 invoked by uid 500); 14 Aug 2013 21:30:17 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 19110 invoked by uid 500); 14 Aug 2013 21:30:17 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 19102 invoked by uid 99); 14 Aug 2013 21:30:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Aug 2013 21:30:17 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [209.85.192.179] (HELO mail-pd0-f179.google.com) (209.85.192.179) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Aug 2013 21:30:10 +0000 Received: by mail-pd0-f179.google.com with SMTP id v10so7027147pde.10 for ; Wed, 14 Aug 2013 14:29:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-gm-message-state:date:from:to:subject:in-reply-to:message-id :references:user-agent:mime-version:content-type; bh=MnXW++zkeX4ISCJwlplkDiy/rwWR4g1ixkVMUrXZ9Ek=; b=a4pC7a+6JNOL3EuhJViXEnOQW2m/kolarop40h5TdzRrQjZ6Z9Iij5JqBafVsYLpnR PRrpr73gneWnsRHkvcaopu7XouSxK4cUR4F3ViaGGezZyWvSg+7vzyONZZY7VKCloy7e CR7SyuIgJc8HB30W8M85BFbdqtVpzj1lYJmv/fCfyIXenO5hyjwXWEIp4B0Q+w7WeXKu J4Er2Fs+gHVzP7SPP+2xy3d9zTTNJqOxaQQunAxIhiDLW7A4qUk+OGYFj053BRyuOXOw ZckzlIT4emNBR2wLsJR/pTxcKEN6rpqH2ZDA9oe3wGDozxXUcxCK9ZX8O7qUjFI7hPvH Pqnw== X-Gm-Message-State: ALoCoQmm/4rZtEzGGZHZEPvEQnuMIRURJ1LqDALCcfIKydMt4ftG2wE8FogPURVfWdOrhIX2bm0O X-Received: by 10.68.183.131 with SMTP id em3mr12091766pbc.56.1376515768078; Wed, 14 Aug 2013 14:29:28 -0700 (PDT) Received: from frisbee.local (c-68-63-180-159.hsd1.az.comcast.net. [68.63.180.159]) by mx.google.com with ESMTPSA id ib9sm52556275pbc.43.2013.08.14.14.29.26 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 14 Aug 2013 14:29:27 -0700 (PDT) Date: Wed, 14 Aug 2013 14:29:24 -0700 (MST) From: Chris Hostetter To: solr-user@lucene.apache.org Subject: Re: Who's cleaning the Fieldcache? In-Reply-To: <520B2F65.1060904@gmail.com> Message-ID: References: <520B2F65.1060904@gmail.com> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org : why? Those are my sort fields and they are occupying a lot of space (doubled : in this case but I see that sometimes I have three or four "old" segment : references) : : Is there something I can do to remove those old references? I tried to reload : the core and it seems the old references are discarded (i.e. garbage : collected) but I believe is not a good workaround, I would avoid to reload the : core for every replication cycle. You don't need to reload the core to get rid of the old FieldCaches -- in fact, there is nothing about reloading the core that will garuntee old FieldCaches get removed. FieldCaches are managed using a WeakHashMap - so once the IndexReader's associated with those FieldCaches are no logner used, they will be garbage collected when and if the JVMs garbage collector get arround to it. if they sit arround after you are done with them, they might look like the ytake upa log of memory, but that just means your JVM Heap has that memory to spare and hasn't needed to clean them up yet. -Hoss