Return-Path: Delivered-To: apmail-jakarta-jcs-users-archive@www.apache.org Received: (qmail 12997 invoked from network); 18 Aug 2009 13:48:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Aug 2009 13:48:07 -0000 Received: (qmail 96966 invoked by uid 500); 18 Aug 2009 13:48:26 -0000 Delivered-To: apmail-jakarta-jcs-users-archive@jakarta.apache.org Received: (qmail 96942 invoked by uid 500); 18 Aug 2009 13:48:26 -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 96932 invoked by uid 99); 18 Aug 2009 13:48:26 -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 13:48:26 +0000 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: local policy) Received: from [209.191.125.77] (HELO web38701.mail.mud.yahoo.com) (209.191.125.77) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 18 Aug 2009 13:48:17 +0000 Received: (qmail 89543 invoked by uid 60001); 18 Aug 2009 13:47:54 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1250603274; bh=7At1rOGi7GiRyWOTifEnUNLf7i25A1E8wcn/kDJ1HCI=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=AU2PcC6aJYylzIovwuCf7/YOH08J0cGo9BkomIEwg5ojlSvSCsCzTQb4ymG49OAvIOmcRJ+9IE/UcgtRbEvjBrPfSWzD4AjtVrnMlDyfTb2fCpDoUuklu1iPTR/Nqc9jomGzCpSeO5CyScxt0xjwkSCu30QybdUhUQuC1PbQhi4= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=VDOxrTMHTFFy+70km9o7HuHWFnku/ptil8lO9lOHZ293FNXz8kXfrpwG3RJ1a+QjonXf2mB/5HdV0nZp8Lr/iGiJNIJ50xXBwqN3IpfqIPEcM9HIlDoEN0PHO4JNj2NwHV1TSBp4dDRbKLU3lUbPcCi2B22HiPplXGJUv5BFBkM=; Message-ID: <27119.70251.qm@web38701.mail.mud.yahoo.com> X-YMail-OSG: rDftF0YVM1nFhH.I1cCWVmKZoJwIMm1F32DCPGDt4PNzCwhguB5DbVo7ztGrmBZ3xV99pZPHoR.94uEOEp4nKqY5kJTGEBAzTzIDNLbA32YYPCZZYMZf_YwDr9dZr7QWwlqZLgpDN.n3Setn8MkwOPlRp3xF.fPqaiBKpyMf_AEApqYKkXos661YTNRoLntJVKAC3ztiZmphjSudiB_7qTwz1iG6SCmfJIdqzRxt2mZdppzTXOQ403.c.jVQXb37f9HYyQT32ILLvGrpoXLK80dHNSmE_D.fFslM1nVyRikyUUhqB_lNYjGkESqlpESDFThUfnXKWRFpkP6ZMCvZyMM- Received: from [208.120.39.220] by web38701.mail.mud.yahoo.com via HTTP; Tue, 18 Aug 2009 06:47:53 PDT X-Mailer: YahooMailClassic/6.1.2 YahooMailWebService/0.7.338.2 Date: Tue, 18 Aug 2009 06:47:53 -0700 (PDT) From: Aaron Smuts Subject: Re: Indexed Disk Cache and MaxPurgatorySize To: JCS Users List In-Reply-To: <4A8A5FD5.5000701@ipsoft.it> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Purgatory is a queue with a size limit. If you exceed the size, by putting= a very large number of elements in faster than they can be written to disk= , then the oldest will be expelled. They won't make it to disk, as they've= been dropped from the queue.=0A=0AThe danger in having an unlimited queue = is that you could run out of memory if there is a tremendous spike. . . .= =0A=0AWe need some utility for creating a disk files and then telling the d= isk cache to use them . . . =0A=0AAaron=0A=0A--- On Tue, 8/18/09, Silvano = wrote:=0A=0A> From: Silvano =0A> Subject: = Indexed Disk Cache and MaxPurgatorySize=0A> To: "JCS Users List" =0A> Date: Tuesday, August 18, 2009, 1:01 AM=0A> Dear A= ll,=0A> =0A> I'm using the Indexed Disk Cache in my application and I=0A> e= ncountered some strange behavior that I try to summarize=0A> following.=0A>= =0A> The steps are:=0A> 1. I fill in the cache using a preliminary job whi= ch goal=0A> is to "warm-up" the cache.=0A> 2. When I try to retrieve the sa= me items put in cache=0A> during the step one, it seems they are not in cac= he, or at=0A> least some of them are missing.=0A> REMARK: As you can see in= the configuration chunk below,=0A> the elements are eternal.=0A> =0A> I ha= ve already found a problem in the "MaxKeySize"=0A> parameter that was too s= mall, but after fixing it, the=0A> problem is still there :-(=0A> =0A> So m= y questions are:=0A> 1. Is it possible that the "MaxPurgatorySize" can lead= to=0A> this kind of problem? I set it to 5000=0A> 2. What are the drawback= s if I set "MaxPurgatorySize" equal=0A> to -1 (infinite)? Is there the risk= to obtain memory=0A> exceptions?=0A> 3. What are your suggestions to debug= /solve the problem?=0A> =0A> Following some details of the configuration:= =0A> =0A> # DEFAULTS=0A> jcs.default=3DDC=0A> jcs.default.cacheattributes= =3Dorg.apache.jcs.engine.CompositeCacheAttributes=0A> jcs.default.cacheattr= ibutes.MaxObjects=3D1000=0A> jcs.default.cacheattributes.DiskUsagePatternNa= me=3DUPDATE=0A> =0A> # REGION=0A> jcs.region.Common=3DDC=0A> jcs.region.Com= mon.cacheattributes=3Dorg.apache.jcs.engine.CompositeCacheAttributes=0A> jc= s.region.Common.cacheattributes.MaxObjects=3D50=0A> jcs.region.Common.cache= attributes.MemoryCacheName=3Dorg.apache.jcs.engine.memory.lru.LRUMemoryCach= e=0A> jcs.region.Common.cacheattributes.UseMemoryShrinker=3Dtrue=0A> jcs.re= gion.Common.cacheattributes.MaxMemoryIdleTimeSeconds=3D30=0A> jcs.region.Co= mmon.cacheattributes.ShrinkerIntervalSeconds=3D20=0A> =0A> jcs.region.Commo= n.elementattributes=3Dorg.apache.jcs.engine.ElementAttributes=0A> jcs.regio= n.Common.elementattributes.IsEternal=3Dtrue=0A> =0A> jcs.region.Common.elem= entattributes.IsSpool=3Dtrue=0A> jcs.region.Common.elementattributes.IsRemo= te=3Dfalse=0A> jcs.region.Common.elementattributes.IsLateral=3Dtrue=0A> =0A= > # AUX=0A> jcs.auxiliary.DC=3Dorg.apache.jcs.auxiliary.disk.indexed.Indexe= dDiskCacheFactory=0A> jcs.auxiliary.DC.attributes=3Dorg.apache.jcs.auxiliar= y.disk.indexed.IndexedDiskCacheAttributes=0A> jcs.auxiliary.DC.attributes.D= iskPath=3D/usr/local/ptt/liferay/pttCache=0A> jcs.auxiliary.DC.attributes.M= axPurgatorySize=3D5000=0A> jcs.auxiliary.DC.attributes.MaxKeySize=3D1000000= =0A> =0A> =0A> If You need the full .ccf I can send you!=0A> =0A> Thanks in= advance,=0A> =A0=A0=A0Silvano.=0A> =0A> =0A> =0A> ------------------------= ---------------------------------------------=0A> To unsubscribe, e-mail: j= cs-users-unsubscribe@jakarta.apache.org=0A> For additional commands, e-mail= : jcs-users-help@jakarta.apache.org=0A> =0A> --------------------------------------------------------------------- To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org For additional commands, e-mail: jcs-users-help@jakarta.apache.org