I might not understand enough, but when I enabled MemoryShrinker, in the log
when it says:

[4/24/06 17:17:16:688 EDT] 00000036 CacheEventQue I   Cache event queue
created: CacheEventQueue [listenerId=-842985658, cacheName=enforce2ListDS]
[4/24/06 17:17:26:703 EDT] 00000041 CacheEventQue I   QProcessor exiting for
CacheEventQueue [listenerId=-842985658, cacheName=enforce2ListDS]

>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.  But
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=DC
jcs.region.listDS.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.region.listDS.cacheattributes.MaxObjects=1200
jcs.region.listDS.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.region.listDS.elementattributes.IsEternal=false
jcs.region.listDS.elementattributes.MaxLifeSeconds=30
jcs.region.listDS.elementattributes.IdleTime=1800
jcs.region.listDS.elementattributes.IsSpool=true
jcs.region.listDS.elementattributes.IsRemote=true
jcs.region.listDS.elementattributes.IsLateral=true
jcs.region.listDS.cacheattributes.UseMemoryShrinker=true
jcs.region.listDS.cacheattributes.MaxMemoryIdleTimeSeconds=5
jcs.region.listDS.cacheattributes.ShrinkerIntervalSeconds=5
jcs.region.listDS.cacheattributes.MaxSpoolPerRun=500
-----------------------------------------------------------------------------

Reply via email to