Return-Path: Delivered-To: apmail-jakarta-jcs-users-archive@www.apache.org Received: (qmail 41623 invoked from network); 24 Apr 2006 21:40:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Apr 2006 21:40:34 -0000 Received: (qmail 92244 invoked by uid 500); 24 Apr 2006 21:40:34 -0000 Delivered-To: apmail-jakarta-jcs-users-archive@jakarta.apache.org Received: (qmail 92227 invoked by uid 500); 24 Apr 2006 21:40:34 -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 92205 invoked by uid 99); 24 Apr 2006 21:40:33 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Apr 2006 14:40:33 -0700 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=HTML_10_20,HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of eidde.com@gmail.com designates 64.233.184.236 as permitted sender) Received: from [64.233.184.236] (HELO wproxy.gmail.com) (64.233.184.236) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Apr 2006 14:40:33 -0700 Received: by wproxy.gmail.com with SMTP id 68so1115832wra for ; Mon, 24 Apr 2006 14:40:12 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=Q1BuJi4gx42dLhxNd5X/dBu3DI4lxuF8kTKyGFc0YQBgMSaO8VT/YdALMBt31TThoBvnhmEVnhnBEXje4/lYHnALp82xaaDjgeUabCOh/9xKDajMDhlwxuXfLdAk0dKZm+0/E40PofNeaA6CLdzfCq2lO+IHj5lt9BjPOGEiPA8= Received: by 10.54.126.5 with SMTP id y5mr154049wrc; Mon, 24 Apr 2006 14:40:12 -0700 (PDT) Received: by 10.54.93.3 with HTTP; Mon, 24 Apr 2006 14:40:12 -0700 (PDT) Message-ID: <1e17dbc50604241440l5fda96abr1ae8046c2fb73bd7@mail.gmail.com> Date: Mon, 24 Apr 2006 17:40:12 -0400 From: "Eddie Liu" To: "JCS Users List" Subject: Disk Cache and MemoryShrinker MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_13368_30664887.1145914812444" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_13368_30664887.1145914812444 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I might not understand enough, but when I enabled MemoryShrinker, in the lo= g when it says: [4/24/06 17:17:16:688 EDT] 00000036 CacheEventQue I Cache event queue created: CacheEventQueue [listenerId=3D-842985658, cacheName=3Denforce2List= DS] [4/24/06 17:17:26:703 EDT] 00000041 CacheEventQue I QProcessor exiting fo= r CacheEventQueue [listenerId=3D-842985658, cacheName=3Denforce2ListDS] >From my observation, that was when it wrote to disk cache? Right after I saw that, I made another request for the same cached data, but this time it returned null on the jcs.get(id) call. Why it didn't load it from disk? I timed it and made sure I made the new request after it wrote to disk but BEFORE it exceed the maxLifeSeconds. Bu= t it behaved as if it has already expired. Is there anything else I need to do to get the data from disk-cache? Thanks alot! Eddie Configuration as follow: ---------------------------------------------------------------------------= -- jcs.region.listDS=3DDC jcs.region.listDS.cacheattributes=3Dorg.apache.jcs.engine.CompositeCacheAtt= ributes jcs.region.listDS.cacheattributes.MaxObjects=3D1200 jcs.region.listDS.cacheattributes.MemoryCacheName=3Dorg.apache.jcs.engine.m= emory.lru.LRUMemoryCache jcs.region.listDS.elementattributes.IsEternal=3Dfalse jcs.region.listDS.elementattributes.MaxLifeSeconds=3D30 jcs.region.listDS.elementattributes.IdleTime=3D1800 jcs.region.listDS.elementattributes.IsSpool=3Dtrue jcs.region.listDS.elementattributes.IsRemote=3Dtrue jcs.region.listDS.elementattributes.IsLateral=3Dtrue jcs.region.listDS.cacheattributes.UseMemoryShrinker=3Dtrue jcs.region.listDS.cacheattributes.MaxMemoryIdleTimeSeconds=3D5 jcs.region.listDS.cacheattributes.ShrinkerIntervalSeconds=3D5 jcs.region.listDS.cacheattributes.MaxSpoolPerRun=3D500 ---------------------------------------------------------------------------= -- ------=_Part_13368_30664887.1145914812444--