jakarta-jcs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Al Forbes" <forbes...@googlemail.com>
Subject Re: Regarding how to monitor Cache
Date Wed, 05 Dec 2007 17:36:39 GMT
Start with this:

./src/java/org/apache/jcs/admin/JCSAdmin.jsp



On 05/12/2007, Abhishek Guru <gururaj.abhishek@gmail.com> wrote:
> Hi All,
>
>     I have successfully implemented JCS in my application and it works cool.
>
>
>     Is there any way I can monitor Cache, like how many objects etc etc.
>
> my cache.ccf is as below:
>
> #-------------------------
> # 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.MaxRecycleBinSize=5000
> jcs.auxiliary.DC.attributes.OptimizeAtRemoveCount=300000
> jcs.auxiliary.DC.attributes.ShutdownSpoolTimeLimit=60
>
>
>
> # Remote RMI Cache set up to failover
> #jcs.auxiliary.RFailover=org.apache.jcs.auxiliary.remote.RemoteCacheFactory
> #jcs.auxiliary.RFailover.attributes=
> org.apache.jcs.auxiliary.remote.RemoteCacheAttributes
> #jcs.auxiliary.RFailover.attributes.RemoteTypeName=LOCAL
> #jcs.auxiliary.RFailover.attributes.FailoverServers=localhost:1102
> #jcs.auxiliary.RFailover.attributes.GetOnly=false
>
> Regards
> Abhishek
>

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


Mime
View raw message