Please reply. On Dec 6, 2007 11:07 AM, Abhishek Guru <[EMAIL PROTECTED]> wrote:
> Hi JCS Gurus, > > My tomcat is throwing OutOfMemoryException. How should I implement > cache for File Caching and not memory caching. Please suggest. > > My cache.ccf is as below. > > # Registry used to register and provide the > # IRemoteCacheService service. > registry.host=localhost > registry.port=1102 > # call back port to local caches. > remote.cache.service.port=1102 > # cluster setting > remote.cluster.LocalClusterConsistency=true > remote.cluster.AllowClusterGet=true > > > # DEFAULT CACHE REGION > > # sets the default aux value for any non configured caches > jcs.default=DC > jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes > jcs.default.cacheattributes.MaxObjects=10000 > > jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache > jcs.default.elementattributes.IsEternal=false > jcs.default.elementattributes.MaxLifeSeconds=864000 > jcs.default.elementattributes.IdleTime=18000 > jcs.default.elementattributes.IsSpool=true > jcs.default.elementattributes.IsRemote=true > jcs.default.elementattributes.IsLateral=true > > > # CACHE REGIONS AVAILABLE > > # Regions preconfigured for caching > jcs.region.CAL_CACHE=DC > > jcs.region.CAL_CACHE.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes > jcs.region.CAL_CACHE.cacheattributes.MaxObjects=10000 > > jcs.region.CAL_CACHE.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache > jcs.region.CAL_CACHE.elementattributes.IsEternal=false > jcs.region.CAL_CACHE.elementattributes.MaxLifeSeconds=864000 > jcs.region.CAL_CACHE.elementattributes.IdleTime=18000 > jcs.region.CAL_CACHE.elementattributes.IsSpool=true > jcs.region.CAL_CACHE.elementattributes.IsRemote=true > jcs.region.CAL_CACHE.elementattributes.IsLateral=true > > > # AUXILIARY CACHES AVAILABLE > > # Primary Disk Cache -- faster than the rest because of memory key storage > > > jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheFactory > > jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheAttributes > > jcs.auxiliary.DC.attributes.DiskPath=${env.CATALINA_HOME}/webapps/swatsec/JCS/ > jcs.auxiliary.DC.attributes.MaxPurgatorySize=10000000 > #jcs.auxiliary.DC.attributes.MaxKeySize=1000000 > jcs.auxiliary.DC.attributes.MaxKeySize=-1 > jcs.auxiliary.DC.attributes.MaxRecycleBinSize=5000 > #jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=300000 > jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=-1 > jcs.auxiliary.DC.attributes.ShutdownSpoolTimeLimit=60 > > > > # Remote RMI Cache set up to failover > #jcs.auxiliary.RC=org.apache.jcs.auxiliary.remote.RemoteCacheFactory > #jcs.auxiliary.RC.attributes= > org.apache.jcs.auxiliary.remote.RemoteCacheAttributes > #jcs.auxiliary.RC.attributes.RemoveUponRemotePut=false > #jcs.auxiliary.RC.attributes.RmiSocketFactoryTimeoutMillis=5000 > #jcs.auxiliary.RC.attributes.GetOnly=false > #jcs.auxiliary.RC.attributes.Receive=true > #jcs.auxiliary.RC.attributes.GetTimeoutMillis=-1 > #jcs.auxiliary.RC.attributes.RemoteHost=localhost > #jcs.auxiliary.RC.attributes.RemotePort=1102 > #jcs.auxiliary.RC.attributes.LocalPort=1211 > > > > Regards > Abhishek >