Return-Path: Delivered-To: apmail-jakarta-jcs-users-archive@www.apache.org Received: (qmail 68821 invoked from network); 18 Aug 2009 08:01:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Aug 2009 08:01:45 -0000 Received: (qmail 3474 invoked by uid 500); 18 Aug 2009 08:02:04 -0000 Delivered-To: apmail-jakarta-jcs-users-archive@jakarta.apache.org Received: (qmail 3437 invoked by uid 500); 18 Aug 2009 08:02:04 -0000 Mailing-List: contact jcs-users-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JCS Users List" Delivered-To: mailing list jcs-users@jakarta.apache.org Received: (qmail 3427 invoked by uid 99); 18 Aug 2009 08:02:03 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Aug 2009 08:02:03 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [85.33.2.25] (HELO smtp-out25.alice.it) (85.33.2.25) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Aug 2009 08:01:54 +0000 Received: from FBCMMO02.fbc.local ([192.168.68.196]) by smtp-out25.alice.it with Microsoft SMTPSVC(6.0.3790.3959); Tue, 18 Aug 2009 10:01:31 +0200 Received: from FBCMCL01B05.fbc.local ([192.168.69.86]) by FBCMMO02.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Tue, 18 Aug 2009 10:01:30 +0200 Received: from [192.168.1.161] ([79.14.61.133]) by FBCMCL01B05.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Tue, 18 Aug 2009 10:01:29 +0200 Message-ID: <4A8A5FD5.5000701@ipsoft.it> Date: Tue, 18 Aug 2009 10:01:25 +0200 From: Silvano Organization: Interplay User-Agent: Thunderbird 2.0.0.22 (X11/20090608) MIME-Version: 1.0 To: JCS Users List Subject: Indexed Disk Cache and MaxPurgatorySize Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 18 Aug 2009 08:01:30.0166 (UTC) FILETIME=[18217D60:01CA1FDA] X-Virus-Checked: Checked by ClamAV on apache.org Dear All, I'm using the Indexed Disk Cache in my application and I encountered some strange behavior that I try to summarize following. The steps are: 1. I fill in the cache using a preliminary job which goal is to "warm-up" the cache. 2. When I try to retrieve the same items put in cache during the step one, it seems they are not in cache, or at least some of them are missing. REMARK: As you can see in the configuration chunk below, the elements are eternal. I have already found a problem in the "MaxKeySize" parameter that was too small, but after fixing it, the problem is still there :-( So my questions are: 1. Is it possible that the "MaxPurgatorySize" can lead to this kind of problem? I set it to 5000 2. What are the drawbacks if I set "MaxPurgatorySize" equal to -1 (infinite)? Is there the risk to obtain memory exceptions? 3. What are your suggestions to debug/solve the problem? Following some details of the configuration: # DEFAULTS jcs.default=DC jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes jcs.default.cacheattributes.MaxObjects=1000 jcs.default.cacheattributes.DiskUsagePatternName=UPDATE # REGION jcs.region.Common=DC jcs.region.Common.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes jcs.region.Common.cacheattributes.MaxObjects=50 jcs.region.Common.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache jcs.region.Common.cacheattributes.UseMemoryShrinker=true jcs.region.Common.cacheattributes.MaxMemoryIdleTimeSeconds=30 jcs.region.Common.cacheattributes.ShrinkerIntervalSeconds=20 jcs.region.Common.elementattributes=org.apache.jcs.engine.ElementAttributes jcs.region.Common.elementattributes.IsEternal=true jcs.region.Common.elementattributes.IsSpool=true jcs.region.Common.elementattributes.IsRemote=false jcs.region.Common.elementattributes.IsLateral=true # AUX jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes jcs.auxiliary.DC.attributes.DiskPath=/usr/local/ptt/liferay/pttCache jcs.auxiliary.DC.attributes.MaxPurgatorySize=5000 jcs.auxiliary.DC.attributes.MaxKeySize=1000000 If You need the full .ccf I can send you! Thanks in advance, Silvano. --------------------------------------------------------------------- To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org For additional commands, e-mail: jcs-users-help@jakarta.apache.org