Re: Regarding how to monitor Cache

"Al Forbes" <[email protected]>
Newsgroups gmane.comp.jakarta.turbine.jcs.devel
Message-ID <[email protected]>
Start with this:

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



On 05/12/2007, Abhishek Guru <[email protected]> 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
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.