Hi,
I am unable to use JCS to lookup from disk.
I want to test it with having a small in-memory size and then insert
huge number of elements.
So after inserting  "MaxObjects" number of elements, JCS should start
storing any more items on disk.
For now, I do not want purgatory to intervene, so I set it's size to 0.
I then set isEternal=true, so that none of the items are removed from
cache(neither from memory nor from disk).

After inserting 1000 elements, when I check on lookup, I see that
there are only a few entries(MaxObjects) in cache.
lookup fails for the rest of the entries.
In fact, lookup fails for the very first item itself.(If i start
looking up sequentially from 0-1000)

Can somebody help me on this please.
Is this a bug or is the cache configuration not right or is there any
other reason?

This is my cache configuration:

# PRE-DEFINED CACHE REGIONS
jcs.region.metadataCache=MDC
jcs.region.metadataCache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
#jcs.region.metadataCache.cacheattributes.MaxObjects=100
jcs.region.metadataCache.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.region.metadataCache.cacheattributes.UseMemoryShrinker=false
jcs.region.metadataCache.cacheattributes.MaxMemoryIdleTimeSeconds=60
jcs.region.metadataCache.cacheattributes.ShrinkerIntervalSeconds=600
jcs.region.metadataCache.cacheattributes.MaxSpoolPerRun=500
jcs.region.metadataCache.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.region.metadataCache.elementattributes.IsEternal=true
jcs.region.metadataCache.elementattributes.IsSpool=true
#jcs.region.metadataCache.elementattributes.MaxLifeSeconds=15
jcs.region..elementattributes.IsRemote=false
jcs.default.elementattributes.IsLateral=false


# AVAILABLE AUXILIARY CACHES
jcs.auxiliary.MDC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory
jcs.auxiliary.MDC.attributes=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes
jcs.auxiliary.MDC.attributes.DiskPath=${user.dir}/cache_files/jcs_metadata
jcs.auxiliary.MDC.attributes.MaxPurgatorySize=0
jcs.auxiliary.MDC.attributes.MaxKeySize=1000000
jcs.auxiliary.MDC.attributes.MaxRecycleBinSize=5000
jcs.auxiliary.MDC.attributes.OptimizeAtRemoveCount=100000
jcs.auxiliary.MDC.attributes.OptimizeOnShutdown=false
jcs.auxiliary.MDC.attributes.ClearDiskOnStartup=false
jcs.auxiliary.MDC.attributes.ShutdownSpoolTimeLimit=60

thanks,
Dilip

---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscr...@jakarta.apache.org
For additional commands, e-mail: jcs-users-h...@jakarta.apache.org

Reply via email to