You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-users@jakarta.apache.org by Abhishek Guru <gu...@gmail.com> on 2007/12/05 23:47:20 UTC

Re: Regarding how to monitor Cache

Thanx.

I have a WAR file of application.
Do I need to copy this in WAR while building....

Is there any document for this to set up.

-abhishek



On Dec 5, 2007 9:36 AM, Al Forbes <fo...@googlemail.com> wrote:

> Start with this:
>
> ./src/java/org/apache/jcs/admin/JCSAdmin.jsp
>
>
>
> On 05/12/2007, Abhishek Guru <gu...@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
>
>

Re: Regarding how to monitor Cache

Posted by Niall Gallagher <ni...@switchfire.com>.
Hi Abishek,

You will need to put the JCSAdmin.jsp file inside your war file, in the
root directory of the war file.

See: http://access1.sun.com/techarticles/simple.WAR.html


On Wed, 2007-12-05 at 14:47 -0800, Abhishek Guru wrote:

> Thanx.
> 
> I have a WAR file of application.
> Do I need to copy this in WAR while building....
> 
> Is there any document for this to set up.
> 
> -abhishek
> 
> 
> 
> On Dec 5, 2007 9:36 AM, Al Forbes <fo...@googlemail.com> wrote:
> 
> > Start with this:
> >
> > ./src/java/org/apache/jcs/admin/JCSAdmin.jsp
> >
> >
> >
> > On 05/12/2007, Abhishek Guru <gu...@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
> >
> >
> 


____________________________________
Niall Gallagher
                
Technical Architect 
Switchfire Ltd. 
phone: 
              + 44 (0)20 7798 2807  
fax: 
              + 44 (0)20 7798 2801  
email: 
               niall@switchfire.com 
web: 
                 www.switchfire.com