jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Cronin" <tcro...@interwoven.com>
Subject RE: How to go for File Caching instead of memory caching
Date Fri, 07 Dec 2007 21:49:45 GMT
I think what he wants is to only cache to disk not to memory.


-----Original Message-----
From: Aaron Smuts [mailto:asmuts@yahoo.com] 
Sent: Friday, December 07, 2007 1:12 PM
To: JCS Users List
Subject: Re: How to go for File Caching instead of memory caching

The documentation on the website explains in detail
how to configure a disk cache auxiliary.  If you have
any questions after reading the instruction, please
let us know.

Aaron


--- Abhishek Guru <gururaj.abhishek@gmail.com> wrote:

> >
> > Hi JCS Gurus and Users,
> >
> >     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.CompositeCacheAttribut
es
> > 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.CompositeCach
eAttributes
> >
>
jcs.region.CAL_CACHE.cacheattributes.MaxObjects=10000
> >
> >
>
jcs.region.CAL_CACHE.cacheattributes.MemoryCacheName=org.apache.jcs.engi
ne.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.IndexedDiskCacheF
actory
> >
> >
>
jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.Indexe
dDiskCacheAttributes
> >
> >
>
jcs.auxiliary.DC.attributes.DiskPath=${env.CATALINA_HOME}/webapps/swatse
c/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
> >
> 


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



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


Mime
View raw message