Thanx alot for this. 



Aaron Smuts wrote:
> 
> Set the max objects for the memory cache to 0.
> 
> 
> --- artofabhi <[EMAIL PROTECTED]> wrote:
> 
>> 
>> Tim is right. I apologize for confusion. 
>> 
>> I just need Disk Caching and no memory caching. My
>> server crashes in every
>> 2-3 hours and need to restart. 
>> 
>> Is there any way I can go for just disk caching. 
>> 
>> My cache.ccf file is pasted below. 
>> 
>> -Abhishek
>> 
>> 
>> Tim Cronin wrote:
>> > 
>> > I think what he wants is to only cache to disk not
>> to memory.
>> > 
>> > 
>> > -----Original Message-----
>> > From: Aaron Smuts [mailto:[EMAIL PROTECTED] 
>> > 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 <[EMAIL PROTECTED]>
>> 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
>> 
> === message truncated ===
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Re%3A-How-to-go-for-File-Caching-instead-of-memory-caching-tp14199559p14265526.html
Sent from the JCS - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to