Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-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 1D7F117BDA for ; Tue, 14 Oct 2014 16:49:59 +0000 (UTC) Received: (qmail 93988 invoked by uid 500); 14 Oct 2014 16:49:58 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 93876 invoked by uid 500); 14 Oct 2014 16:49:58 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 93865 invoked by uid 99); 14 Oct 2014 16:49:58 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Oct 2014 16:49:58 +0000 Received: from Malagant.local (unknown [46.253.48.102]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 8A8ED1A0446 for ; Tue, 14 Oct 2014 16:49:43 +0000 (UTC) Message-ID: <543D5415.5040700@apache.org> Date: Tue, 14 Oct 2014 18:49:25 +0200 From: Thomas Vandahl User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: Commons Users List Subject: Re: correct estimate of the disk cache size References: In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 09.10.14 17:43, arnout cator wrote: > jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=250 That's the key here. In general, you would expect the cache size that you calculated. However, considering the way the disk cache works, this is only true if your data objects are of exactly the same size (which is very improbable). So if a new data object is somewhat bigger than the previously expired one, the cache will append to the cache file and the file will grow. If you want to have better control over your disk usage, I'd recommend to test the BlockDiskCache. It may fit your use case better. Bye, Thomas. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org