Hi Aaron, Thanks a ton for your inputs. When we deployed the JCS Remote Server inside a container using RemoteCacheStartupServlet the JCSAdmin jsp shows correct count of elements in the Remote server cache.
But we have a slightly different requirement, where we have to run the JCS Remote Server independently outside the container, using start and stop scripts and we need to monitor this Server Cache using a WebApplication. In this case, how should we configure the JCSAdmin jsp in a container to point to the Remote Server running outside the container? Thanks & Regards, Vijayalakshmi Devadoss Aaron Smuts wrote: > > The admin page is working as designed. The number on the summary page > merely shows how many are in the local memory cache. > > If you want to know how many are on disk, you need to go to the detail for > the region and then look at the stats data. > > If you want to see what the remote cache has, you need to go to the admin > page on the remote cache server. > > Aaron > > > --- On Thu, 8/7/08, vijudas <[EMAIL PROTECTED]> wrote: > >> From: vijudas <[EMAIL PROTECTED]> >> Subject: Problems with Remote Server Configuration (JCSAdmin) >> To: jcs-users@jakarta.apache.org >> Date: Thursday, August 7, 2008, 7:14 AM >> Hi, >> >> We have currently deployed an Enterprise Application with a >> web Application >> inside, having the JCSAdmin JSP and the jcs-1.3 jar. All >> tests are being >> carried out in a single machine (meaning the remote server >> and client are >> running in the same localhost). >> >> We tried connecting to the remote host in two ways: >> Method 1: Run the remote server outside the container >> (Weblogic), and >> specify the port in the client’s cache.ccf file. >> Method 2: Run the remote server (in the same container >> where the client is >> hosted) using RemoteCacheStartupServlet. >> >> In either case, we were able to put and get objects from >> the Remote Server. >> >> But we are currently facing following Issues with the >> JCSAdmin jsp page: >> >> 1. The JCSAdmin jsp does not show correct count of the >> cached elements, it >> reflects only elements in the memory cache and ignores the >> ones cached in >> the remote server in case if the MaxObjects of Memory cache >> is greater than >> the total number of cached elements. >> >> (For Instance If the LRUMemory size is 5 and we put 100 >> elements in the >> cache for a particular region then the count shown in the >> JCSAdmin page is >> always lesser than 5. >> Still we are able to retrieve the other elements cached in >> the remote server >> though they are not listed in the detail page) >> >> 2. When there are more than one regions defined in the >> cache.ccf file the >> Admin page does not show all the regions on load. >> >> Remote Server configuration: >> # Registry used to register and provide the >> # IRemoteCacheService service. >> registry.host=localhost >> registry.port=4444 >> # call back port to local caches. >> #remote.cache.service.port=1102 >> # cluster setting >> remote.cluster.LocalClusterConsistency=true >> remote.cluster.AllowClusterGet=true >> >> Client configuration: >> >> # DEFAULT CACHE REGION >> # sets the default aux value for any non configured caches >> jcs.default=RC >> jcs.default.cacheattributes= >> org.apache.jcs.engine.CompositeCacheAttributes >> jcs.default.cacheattributes.MaxObjects=0 >> jcs.default.cacheattributes.MemoryCacheName= >> org.apache.jcs.engine.memory.lru.LRUMemoryCache >> jcs.default.elementattributes.IsEternal=false >> jcs.default.elementattributes.MaxLifeSeconds=3600 >> jcs.default.elementattributes.IdleTime=1800 >> jcs.default.elementattributes.IsSpool=true >> jcs.default.elementattributes.IsRemote=true >> jcs.default.elementattributes.IsLateral=true >> >> >> # Regions preconfigured for caching >> jcs.region.bookCache=RC >> jcs.region.bookCache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes >> jcs.region.bookCache.cacheattributes.MaxObjects=5 >> jcs.region.bookCache.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache >> jcs.region.bookCache.elementattributes.IsEternal=false >> jcs.region.bookCache.elementattributes.MaxLifeSeconds=7200 >> jcs.region.bookCache.elementattributes.IdleTime=1800 >> jcs.region.bookCache.elementattributes.IsSpool=true >> jcs.region.bookCache.elementattributes.IsRemote=true >> jcs.region.bookCache.elementattributes.IsLateral=true >> >> jcs.auxiliary.RC=org.apache.jcs.auxiliary.remote.RemoteCacheFactory >> jcs.auxiliary.RC.attributes=org.apache.jcs.auxiliary.remote.RemoteCacheAttributes >> jcs.auxiliary.RC.attributes.RemoteTypeName=LOCAL >> jcs.auxiliary.RC.attributes.FailoverServers=localhost:4444 >> jcs.auxiliary.RC.attributes.RemoveUponRemotePut=true >> jcs.auxiliary.RC.attributes.RmiSocketFactoryTimeoutMillis=500000 >> jcs.auxiliary.RC.attributes.GetOnly=false >> jcs.auxiliary.RC.attributes.Receive=true >> >> Any help will be appreciated. >> >> Many Thanks, >> Vijayalakshmi Devadoss >> >> -- >> View this message in context: >> http://www.nabble.com/Problems-with-Remote-Server-Configuration-%28JCSAdmin%29-tp18871449p18871449.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] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Problems-with-Remote-Server-Configuration-%28JCSAdmin%29-tp18871449p18939568.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]