Thanks that really helps. Shan -----Original Message----- From: Eddie Liu [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006 6:08 PM To: JCS Users List Subject: Re: Configuration of non-shrinkable LRU memory cache
We are using the following configuration and it's been working fine except for a NoClassDefFoundError that we got on application startup (most likely a class loader issue). It doesn't seem to affect the caching though. Hope that helps. Eddie ############################################################## ################## DEFAULT CACHE REGION ##################### # sets the default aux value for any non configured caches jcs.default=DC jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttribut es jcs.default.cacheattributes.MaxObjects=1200 jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory .lru.LRUMemoryCache jcs.default.cacheattributes.UseMemoryShrinker=false jcs.default.cacheattributes.MaxMemoryIdleTimeSeconds=7200 jcs.default.cacheattributes.ShrinkerIntervalSeconds=60 jcs.default.cacheattributes.MaxSpoolPerRun=500 jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes jcs.default.elementattributes.IsEternal=false jcs.default.elementattributes.MaxLifeSeconds=10 jcs.default.elementattributes.IdleTime=10 jcs.default.elementattributes.IsSpool=true jcs.default.elementattributes.IsRemote=true jcs.default.elementattributes.IsLateral=true ############################################################## ################ CACHE REGIONS AVAILABLE #################### #-- You may configure a particular region, in this example, set the #-- special configuration for region 'ABC' # Regions preconfigured for caching jcs.region.ABC=DC jcs.region.ABC.cacheattributes=org.apache.jcs.engine.CompositeCacheAttri butes jcs.region.ABC.cacheattributes.MaxObjects=1200 jcs.region.ABC.cacheattributes.MemoryCacheName=org.apache.jcs.engine.mem ory.lru.LRUMemoryCache jcs.region.ABC.elementattributes.IsEternal=false jcs.region.ABC.elementattributes.MaxLifeSeconds=7200 jcs.region.ABC.elementattributes.IdleTime=1800 jcs.region.ABC.elementattributes.IsSpool=true jcs.region.ABC.elementattributes.IsRemote=true jcs.region.ABC.elementattributes.IsLateral=true jcs.region.ABC.cacheattributes.UseMemoryShrinker=false jcs.region.ABC.cacheattributes.MaxMemoryIdleTimeSeconds=3600 jcs.region.ABC.cacheattributes.ShrinkerIntervalSeconds=60 jcs.region.ABC.cacheattributes.MaxSpoolPerRun=500 ############################################################## ################# AUXILIARY CACHES AVAILABLE ################# # Primary Disk Cache -- faster than the rest because of memory key storage jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheF actory jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.Indexe dDiskCacheAttributes jcs.auxiliary.DC.attributes.DiskPath=/usr/opt jcs.auxiliary.DC.attributes.MaxPurgatorySize=10000 jcs.auxiliary.DC.attributes.MaxKeySize=10000 jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=300000 jcs.auxiliary.DC.attributes.MaxRecycleBinSize=7500 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
