jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Aaron Smuts <aasm...@wisc.edu>
Subject RE: unable to interact with remote server
Date Tue, 11 May 2004 05:44:39 GMT
There are so many extra variables here.  Increase the memory size for
starters so we can rule out one factor.  

Do you have to configure through cocoon?  This adds another variable.  

Are there any errors on startup?  If the local cannot connect to the
remote server you should get a message and it should continue to retry.
If you don't get this, it should be connected and if the region is
configured to allow the elements to go remote, it should work.

You get nothing in the logs for the remote server?

Aaron

> -----Original Message-----
> From: David Luk [mailto:David.Luk@tvnz.co.nz]
> Sent: Monday, May 10, 2004 11:23 PM
> To: Turbine JCS Users List
> Subject: RE: unable to interact with remote server
> 
> 
> Yes, the disk cache files are created on the remote server and I have
> the flag isRemote set to true. I got a similar result and nothing is
> sent to the remote server. I have set the maxObjects to be 1, so the
> size of LRUMemoryCache is virtually nothing.
> 
> I pull the RemoteCacheClientTest.java somewhere in the jcs source and
I
> have modified it to work with the JCS source. It seems the remote
cache
> server able to pick up the put/get events. I may look at incorrect
> direction. Is the RemoteCacheClientTest class helpful to prove the
> configuration?
> 
> BTW, what it the flag to change the failure detect mode? From Turbine
> JCS site, "By default, the cache clients run in an optimistic mode and
> the failure of the communication channel is detected by an attempted
> update to the server. A pessimistic mode is configurable so that the
> clients will engage in active status checks" How could I change the
> client to run in pessimistic mode?
> 
> If I have only 1 remote cache server, do I need to specify the
> "FailoverServers" attribute?
> 
> -----Original Message-----
> From: Aaron Smuts [mailto:aasmuts@wisc.edu]
> 
> Sent: Tuesday, 11 May 2004 16:00
> To: 'Turbine JCS Users List'
> Subject: RE: unable to interact with remote server
> 
> If the disk cache creating files?
> 
> You need to specify a directory for the disk cache and make sure the
> application can write to the directory.
> 
> 
> You have the memory size set to almost nothing, and if there is no
disk,
> there will be nothing to get and put will just disappear.
> 
> You also have
> 
> 
> <parameter name="jcs.region.main.elementattributes.IsRemote"
> > value="false" />
> 
> Which means that any element in that region will not be sent to the
> remote cache.  isRemote should be true.
> 
> Aaron
> 
> > -----Original Message-----
> > From: David Luk [mailto:David.Luk@tvnz.co.nz]
> > Sent: Monday, May 10, 2004 9:26 PM
> > To: Turbine JCS Users List
> > Subject: RE: unable to interact with remote server
> >
> 
> >
> 
> > Hi all,
> >
> 
> > I have already included log4j in the classpath.
> >
> 
> > We are running multiple instances of cocoon 2.1.4 connect to a
> > centralised remote cache server and there maybe some cocoon
> > configurations that we didn't address properly.
> >
> 
> > At the moment, the cocoon instance can connect to the remote cache
> > server and there are some interactions between cocoon and the remote
> > cache server. However it seems that the put/get events place into
the
> > EventCacheQueue but the put events could not reach the remote
server.
> >
> 
> > Here is the log extract of the put/get event. (From Cocoon
> perspective)
> > It shows the remote server attempt to process the get event and
return
> a
> > cache miss (since the server didn't process any put event, and
nothing
> > is written to the remote memory/file store)
> >
> 
> > Would the new version of JCS helps?
> >
> 
> > Appreciate your help.
> >
> 
> > Many thanks,
> > David Luk
> >
> 
> > GET EVENT (From Cocoon JCS log)
> > =========
> > 2004-05-12 01:57:02,075 [http8080-Processor23] DEBUG
> > org.apache.jcs.engine.control.CompositeCache - get: key =
> >
>
PK_G-serverpages-file:/www/cocoon/webapps/cocoon/cda/xsp/get_rdf_content
> > .xsp--26042117608035617_T-cinclude-1, localOnly = false
> > 2004-05-12 01:57:02,075 [http8080-Processor23] DEBUG
> > org.apache.jcs.engine.memory.lru.LRUMemoryCache - getting item from
> > cache main for key
> >
>
PK_G-serverpages-file:/www/cocoon/webapps/cocoon/cda/xsp/get_rdf_content
> > .xsp--26042117608035617_T-cinclude-1
> > 2004-05-12 01:57:02,075 [http8080-Processor23] DEBUG
> > org.apache.jcs.engine.memory.lru.LRUMemoryCache - main:
LRUMemoryCache
> > miss for
> >
>
PK_G-serverpages-file:/www/cocoon/webapps/cocoon/cda/xsp/get_rdf_content
> > .xsp--26042117608035617_T-cinclude-1
> > 2004-05-12 01:57:02,075 [http8080-Processor23] DEBUG
> > org.apache.jcs.engine.memory.lru.LRUMemoryCache - verifycache[main]:
> > mapContains 0 elements, linked list contains 0 elements
> > 2004-05-12 01:57:02,075 [http8080-Processor23] DEBUG
> > org.apache.jcs.engine.memory.lru.LRUMemoryCache - verifycache:
> checking
> > linked list by key
> > 2004-05-12 01:57:02,075 [http8080-Processor23] DEBUG
> > org.apache.jcs.engine.memory.lru.LRUMemoryCache - verifycache:
> checking
> > linked list by value
> > 2004-05-12 01:57:02,075 [http8080-Processor23] DEBUG
> > org.apache.jcs.engine.memory.lru.LRUMemoryCache - verifycache:
> checking
> > via keysets!
> > 2004-05-12 01:57:02,075 [http8080-Processor23] DEBUG
> > org.apache.jcs.engine.control.CompositeCache - Attempting to get
from
> > aux:  which is of type: 4
> > 2004-05-12 01:57:02,086 [http8080-Processor23] DEBUG
> > org.apache.jcs.engine.control.CompositeCache - Got CacheElement:
null
> > 2004-05-12 01:57:02,086 [http8080-Processor23] DEBUG
> > org.apache.jcs.engine.control.CompositeCache - main - Miss
> >
> 
> >
> 
> > (From Remote Cache Server log)
> > 2004-05-11 13:57:15,851 [RMI TCP Connection(228)-172.26.121.92]
DEBUG
> > org.apache.jcs.auxiliary.remote.server.RemoteCacheServer - get
> >
>
PK_G-serverpages-file:/www/cocoon/webapps/cocoon/cda/xsp/get_rdf_content
> > .xsp--26042117608035617_T-cinclude-1 from cache main
> > 2004-05-11 13:57:15,851 [RMI TCP Connection(228)-172.26.121.92]
DEBUG
> > org.apache.jcs.engine.control.CompositeCache - get: key =
> >
>
PK_G-serverpages-file:/www/cocoon/webapps/cocoon/cda/xsp/get_rdf_content
> > .xsp--26042117608035617_T-cinclude-1, localOnly = true
> > 2004-05-11 13:57:15,851 [RMI TCP Connection(228)-172.26.121.92]
DEBUG
> > org.apache.jcs.engine.control.CompositeCache - Attempting to get
from
> > aux: main which is of type: 2
> > 2004-05-11 13:57:15,851 [RMI TCP Connection(228)-172.26.121.92]
DEBUG
> > org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache - Trying to
get
> > from disk:
> >
>
PK_G-serverpages-file:/www/cocoon/webapps/cocoon/cda/xsp/get_rdf_content
> > .xsp--26042117608035617_T-cinclude-1
> > 2004-05-11 13:57:15,851 [RMI TCP Connection(228)-172.26.121.92]
DEBUG
> > org.apache.jcs.utils.locking.ReadWriteLock - readLock acquired
> > 2004-05-11 13:57:15,851 [RMI TCP Connection(228)-172.26.121.92]
DEBUG
> > org.apache.jcs.utils.locking.ReadWriteLock - readLock released
without
> > fuss
> > 2004-05-11 13:57:15,851 [RMI TCP Connection(228)-172.26.121.92]
DEBUG
> > org.apache.jcs.engine.control.CompositeCache - Got CacheElement:
null
> > 2004-05-11 13:57:15,851 [RMI TCP Connection(228)-172.26.121.92]
DEBUG
> > org.apache.jcs.engine.control.CompositeCache - main - Miss
> >
> 
> >
> 
> > PUT EVENT (From Cocoon JCS log)
> > =========
> > 2004-05-12 01:57:02,198 [http8080-Processor23] DEBUG
> > org.apache.jcs.engine.control.CompositeCache - Updating memory cache
> > 2004-05-12 01:57:02,198 [http8080-Processor23] DEBUG
> > org.apache.jcs.engine.memory.lru.LRUMemoryCache - In memory limit
> > reached, spooling
> > 2004-05-12 01:57:02,198 [http8080-Processor23] DEBUG
> > org.apache.jcs.engine.memory.lru.LRUMemoryCache - About to spool to
> disk
> > cache, map size: 1, max objects: 1, items to spool: 1
> > 2004-05-12 01:57:02,198 [http8080-Processor23] DEBUG
> > org.apache.jcs.engine.memory.lru.LRUMemoryCache - removing node
> >
>
PK_G-serverpages-file:/www/cocoon/webapps/cocoon/cda/xsp/get_rdf_content
> > .xsp--26042117608035617_T-cinclude-1 from cache main
> > 2004-05-12 01:57:02,198 [http8080-Processor23] DEBUG
> > org.apache.jcs.engine.memory.lru.LRUMemoryCache - update: After
spool
> > map size: 0
> > 2004-05-12 01:57:02,198 [http8080-Processor23] DEBUG
> > org.apache.jcs.engine.control.CompositeCache - Updating auxilliary
> > caches
> > 2004-05-12 01:57:02,198 [http8080-Processor23] DEBUG
> > org.apache.jcs.engine.control.CompositeCache - Auxilliary cache
type:
> 4
> > 2004-05-12 01:57:02,198 [http8080-Processor23] DEBUG
> > org.apache.jcs.engine.control.CompositeCache -
> > ce.getElementAttributes().getIsRemote() = false
> >
> 
> >
> 
> > Here is my cocoon.xconf related to the persistence store setup
> >
> 
> >   <store logger="core.store">
> >         <parameter name="maxobjects" value="1" />
> >         <parameter name="use-persistent-cache" value="true" />
> >   </store>
> >
> 
> >   <persistent-store logger="core.store.persistent">
> >     <parameter name="jcs.region.main" value="RCache" />
> >     <parameter name="jcs.region.main.cacheattributes"
> > value="org.apache.jcs.engine.CompositeCacheAttributes" />
> >     <parameter name="jcs.region.main.cacheattributes.MaxObjects"
> > value="1" />
> >     <parameter
name="jcs.region.main.cacheattributes.MemoryCacheName"
> > value="org.apache.jcs.engine.memory.lru.LRUMemoryCache" />
> >     <parameter
> name="jcs.region.main.cacheattributes.UseMemoryShrinker"
> > value="false" />
> >     <parameter
> > name="jcs.region.main.cacheattributes.MaxMemoryIdleTimeSeconds"
> > value="3600" />
> >     <parameter name="jcs.region.main.elementattributes"
> > value="org.apache.jcs.engine.ElementAttributes" />
> >     <parameter name="jcs.region.main.elementattributes.IsEternal"
> > value="true" />
> >     <parameter
name="jcs.region.main.elementattributes.MaxLifeSeconds"
> > value="-1" />
> >     <parameter name="jcs.region.main.elementattributes.IdleTime"
> > value="-1" />
> >     <parameter name="jcs.region.main.elementattributes.IsSpool"
> > value="true" />
> >     <parameter name="jcs.region.main.elementattributes.IsRemote"
> > value="false" />
> >     <parameter name="jcs.region.main.elementattributes.IsLateral"
> > value="false" />
> >
> 
> >     <parameter name="jcs.system.groupIdCache" value="RCache" />
> >     <parameter name="jcs.system.groupIdCache.cacheattributes"
> > value="org.apache.jcs.engine.CompositeCacheAttributes" />
> >     <parameter
> name="jcs.system.groupIdCache.cacheattributes.MaxObjects"
> > value="1" />
> >     <parameter
> > name="jcs.system.groupIdCache.cacheattributes.MemoryCacheName"
> > value="org.apache.jcs.engine.memory.lru.LRUMemoryCache" />
> >     <parameter
> > name="jcs.system.groupIdCache.cacheattributes.UseMemoryShrinker"
> > value="false" />
> >     <parameter
> >
>
name="jcs.system.groupIdCache.cacheattributes.MaxMemoryIdleTimeSeconds"
> > value="3600" />
> >     <parameter name="jcs.system.groupIdCache.elementattributes"
> > value="org.apache.jcs.engine.ElementAttributes" />
> >     <parameter
> > name="jcs.system.groupIdCache.elementattributes.IsEternal"
> value="true"
> > />
> >     <parameter
> > name="jcs.system.groupIdCache.elementattributes.MaxLifeSeconds"
> > value="-1" />
> >     <parameter
> name="jcs.system.groupIdCache.elementattributes.IdleTime"
> > value="-1" />
> >     <parameter
> name="jcs.system.groupIdCache.elementattributes.IsSpool"
> > value="true" />
> >     <parameter
> name="jcs.system.groupIdCache.elementattributes.IsRemote"
> > value="false" />
> >     <parameter
> > name="jcs.system.groupIdCache.elementattributes.IsLateral"
> value="false"
> > />
> >
> 
> >     <parameter name="jcs.auxiliary.RCache"
> > value="org.apache.jcs.auxiliary.remote.RemoteCacheFactory" />
> >     <parameter name="jcs.auxiliary.RCache.attributes"
> > value="org.apache.jcs.auxiliary.remote.RemoteCacheAttributes" />
> >     <parameter
> > name="jcs.auxiliary.RCache.attributes.RemoveUponRemotePut"
> value="false"
> > />
> >     <parameter name="jcs.auxiliary.RCache.attributes.GetOnly"
> > value="false" />
> >     <parameter name="jcs.auxiliary.RCache.attributes.RemoteHost"
> > value="172.26.63.170" />
> >     <parameter name="jcs.auxiliary.RCache.attributes.RemotePort"
> > value="1102" />
> >
> 
> >   </persistent-store>
> >
> 
> > And finally, here is the remote.cache.ccf from the remote cache
server
> >
> 
> > ##############################################################
> > # Registry used to register and provide the IRmiCacheService
service.
> > registry.host=localhost
> > registry.port=1102
> > # call back port to local caches.
> > remote.cache.service.port=1102
> > # tomcat config
> > remote.tomcat.on=false
> > remote.tomcat.xml=@project_home_f@bin/conf/remote.tomcat.xml
> > # cluster setting
> > remote.cluster.LocalClusterConsistency=true
> > #not allowed -- remote.cluster.AllowClusterGet=false
> >
> 
> >
> 
> > ##############################################################
> > ################## 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=1
> >
>
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory
> > .lru.LRUMemoryCache
> > jcs.default.cacheattributes.UseMemoryShrinker=false
> > jcs.default.cacheattributes.MaxMemoryIdleTimeSeconds=3600
> >
jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes
> > jcs.default.elementattributes.IsEternal=true
> > jcs.default.elementattributes.MaxLifeSeconds=-1
> > jcs.default.elementattributes.IdleTime=-1
> > jcs.default.elementattributes.IsSpool=false
> > jcs.default.elementattributes.IsRemote=false
> > jcs.default.elementattributes.IsLateral=false
> >
> 
> > # SYSTEM CACHE
> > # should be defined for the storage of group attribute list
> > jcs.system.groupIdCache=DC
> >
>
jcs.system.groupIdCache.cacheattributes=org.apache.jcs.engine.CompositeC
> > acheAttributes
> > jcs.system.groupIdCache.cacheattributes.MaxObjects=1
> >
> 
> > ##############################################################
> > ################## CACHE REGIONS AVAILABLE ###################
> > jcs.region.main=DC
> >
>
jcs.region.main.cacheattributes=org.apache.jcs.engine.CompositeCacheAttr
> > ibutes
> > jcs.region.main.cacheattributes.MaxObjects=1
> >
> 
> > ##############################################################
> > ################## AUXILIARY CACHES AVAILABLE ################
> >
>
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=@project_home@/raf/remote
> >
> 
> > -----Original Message-----
> > From: Aaron Smuts [mailto:aasmuts@wisc.edu]
> >
> 
> > Sent: Monday, 10 May 2004 08:17
> > To: 'Turbine JCS Users List'
> > Subject: RE: unable to interact with remote server
> >
> 
> > Make sure you have the log4j jar in your classpath.
> >
> 
> >
> 
> > > -----Original Message-----
> > > From: David Luk [mailto:David.Luk@tvnz.co.nz]
> > > Sent: Friday, April 30, 2004 12:35 AM
> > > To: Turbine JCS Users List
> > > Subject: RE: unable to interact with remote server
> > >
> >
> 
> > >
> >
> 
> > > Hi Aaron
> > >
> >
> 
> > > Should the remoteCacheStats script run locally or remotely to the
> JCS
> > > instance?
> > > When I run it locally, I got the following log
> > >
> >
> 
> > > 2004-04-30 17:27:24,872 [main] DEBUG
> > > org.apache.jcs.auxiliary.remote.RemoteUtils - props.size=48,
> > > {jcs.auxiliary.RCluster1.attributes.RemoteTypeName=CLUSTER,
> > > registry.port=1102,
> > > jcs.system.groupIdCache.elementattributes.IdleTime=1800,
> > > jcs.default.cacheattributes.MaxMemoryIdleTimeSeconds=3600,
> > > jcs.region.testCache1=DC,
> > > jcs.auxiliary.RCluster2.attributes.RemoveUponRemotePut=false,
> > >
> jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes,
> > > remote.tomcat.xml=@project_home_f@bin/conf/remote.tomcat.xml,
> > >
> >
>
jcs.auxiliary.RCluster2=org.apache.jcs.auxiliary.remote.RemoteCacheFacto
> > > ry, jcs.default.elementattributes.IsEternal=false,
> > > jcs.region.testCache1.cacheattributes.MaxObjects=1000,
> > >
> >
>
jcs.auxiliary.RCluster1=org.apache.jcs.auxiliary.remote.RemoteCacheFacto
> > > ry, jcs.system.groupIdCache=DC,
> > > jcs.default.cacheattributes.ShrinkerIntervalSeconds=60,
> > > jcs.auxiliary.RCluster2.attributes.GetOnly=false,
> > > jcs.auxiliary.DC.attributes.DiskPath=@project_home@/raf/remote,
> > > jcs.auxiliary.RCluster2.attributes.RemoteTypeName=CLUSTER,
> > >
> >
>
jcs.auxiliary.RCluster1.attributes=org.apache.jcs.auxiliary.remote.Remot
> > > eCacheAttributes, jcs.default.elementattributes.IsSpool=true,
> > > jcs.auxiliary.RCluster1.attributes.RemoveUponRemotePut=false,
> > > jcs.auxiliary.RCluster1.attributes.GetOnly=false,
> > >
> >
>
jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.Indexe
> > > dDiskCacheAttributes, jcs.default.cacheattributes.MaxObjects=1000,
> > > registry.host=172.26.121.92,
> > > jcs.default.elementattributes.IsLateral=false,
> > > jcs.auxiliary.RCluster2.attributes.ClusterServers=localhost:1104,
> > > jcs.system.groupIdCache.elementattributes.MaxLifeSeconds=3600,
> > >
> >
>
jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCacheF
> > > actory, remote.cluster.LocalClusterConsistency=true,
> > >
> >
>
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory
> > > .lru.LRUMemoryCache,
> > jcs.default.cacheattributes.UseMemoryShrinker=true,
> > > jcs.system.groupIdCache.cacheattributes.MaxObjects=10000,
> > > jcs.system.groupIdCache.elementattributes.IsEternal=true,
> > >
> >
>
jcs.system.groupIdCache.elementattributes=org.apache.jcs.engine.ElementA
> > > ttributes, remote.tomcat.on=false,
> > > jcs.default.elementattributes.IsRemote=true,
> > >
> >
>
jcs.system.groupIdCache.cacheattributes.MemoryCacheName=org.apache.jcs.e
> > > ngine.memory.lru.LRUMemoryCache, jcs.default=DC,
> > >
> >
>
jcs.system.groupIdCache.cacheattributes=org.apache.jcs.engine.CompositeC
> > > acheAttributes, jcs.default.elementattributes.IdleTime=1800,
> > >
> >
>
jcs.region.testCache1.cacheattributes=org.apache.jcs.engine.CompositeCac
> > > heAttributes,
> > >
> >
>
jcs.auxiliary.RCluster2.attributes=org.apache.jcs.auxiliary.remote.Remot
> > > eCacheAttributes,
> > > jcs.system.groupIdCache.elementattributes.IsSpool=true,
> > >
> >
>
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttribut
> > > es, remote.cache.service.port=1102,
> > > jcs.default.elementattributes.MaxLifeSeconds=7,
> > > jcs.system.groupIdCache.elementattributes.IsRemote=true,
> > > jcs.system.groupIdCache.elementattributes.IsLateral=false}
> > > 2004-04-30 17:27:24,872 [main] DEBUG
> > > org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory -
> > > getting cache stats
> > > 2004-04-30 17:27:24,888 [main] DEBUG
> > > org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory -
> > > looking up server
> > >
//:1102/org.apache.jcs.auxiliary.remote.behavior.IRemoteCacheService
> > > 2004-04-30 17:27:25,029 [main] DEBUG
> > > org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory -
> > server
> > > found
> > > 2004-04-30 17:27:25,029 [main] DEBUG
> > > org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory -
> obj
> > =
> > >
> >
>
org.apache.jcs.auxiliary.remote.server.RemoteCacheServer_Stub[RemoteStub
> > > [ref:
> > >
> [endpoint:[172.26.63.170:1202](remote),objID:[c5c3ac:fc39cde43f:-8000,
> > > 0]]]]
> > > 2004-04-30 17:27:25,029 [main] DEBUG
> > > org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory -
> temp
> > > 2004-04-30 17:27:25,029 [main] DEBUG
> > > org.apache.jcs.auxiliary.remote.server.RemoteCacheServerFactory -
> > done.
> > >
> >
> 
> > > It seems it can locate the JCS instances, but I didn't manage to
> > > increase the log level (I have already changed the default log
level
> > to
> > > DEBUG in log4j.properties), can you point me to the right
direction?
> > >
> >
> 
> > > Many thanks.
> > >
> >
> 
> > > Cheers,
> > > David Luk.
> > >
> >
> 
> > > -----Original Message-----
> > > From: Aaron Smuts [mailto:aasmuts@wisc.edu]
> > >
> >
> 
> > > Sent: Friday, 30 April 2004 16:38
> > > To: 'Turbine JCS Users List'
> > > Subject: RE: unable to interact with remote server
> > >
> >
> 
> > > There is a script in the scripts directory called
remoteCacheStats.
> > You
> > > will have to get set the classpath for it and the port, but it
> should
> > > help.
> > >
> >
> 
> > >
> >
> 
> > > Also, increase your log level.
> > >
> >
> 
> > >
> >
> 
> > > There used to be an embedded server that hosted a servlet. This
made
> > it
> > > easy.  I'll see if I can get something like that working by early
> next
> > > week again.
> > >
> >
> 
> > > Aaron
> > >
> >
> 
> > > > -----Original Message-----
> > > > From: David Luk [mailto:David.Luk@tvnz.co.nz]
> > > > Sent: Thursday, April 29, 2004 9:42 PM
> > > > To: Turbine JCS Users List
> > > > Subject: RE: unable to interact with remote server
> > > >
> > >
> >
> 
> > > >
> > >
> >
> 
> > > > Hi,
> > > >
> > >
> >
> 
> > > > I am currently working with Selena to tackle the issue.
> > > >
> > >
> >
> 
> > > > And I have a question:
> > > > If I want to test the standalone remote JCS process, can I run
> > telnet
> > > > and test the remote JCS connection? (e.g. telnet localhost 1102)
> > > > If not (i.e. cannot use telnet), can someone kindly give me some
> > > > suggestions about the way to test the remote JCS server
> connection?
> > I
> > > > want to make sure the remote JCS server is running properly.
> > > >
> > >
> >
> 
> > > > #### Some information about the configurations ####
> > > >
> > >
> >
> 
> > > > I have generated the RMI stubs of the following classes
> > > > org.apache.jcs.auxiliary.remote.RemoteCacheListener
> > > > org.apache.jcs.auxiliary.remote.RemoteCacheWatchRepairable
> > > > org.apache.jcs.auxiliary.remote.ZombieRemoteCacheService
> > > > org.apache.jcs.auxiliary.remote.ZombieRemoteCacheWatch
> > > > org.apache.jcs.auxiliary.remote.server.RemoteCacheServer
> > > > org.apache.jcs.auxiliary.remote.server.RemoteCacheServerListener
> > > >
> > >
> >
> 
> > > > Here is my 'netstat -a' output
> > > > Proto  Local Address          Foreign Address        State
> > > > TCP    TVNZ107268:1102        TVNZ107268.tvnzad.tvnz.co.nz:0
> > > LISTENING
> > > >
> > >
> >
> 
> > > > Here is my remote.cache.ccf and this is based on the
> > remote.cache.ccf
> > > in
> > > > CVS
> > > >
> > >
> >
> 
> > > > ##############################################################
> > > > # Registry used to register and provide the IRmiCacheService
> > service.
> > > > registry.host=localhost
> > > > registry.port=1102
> > > > # call back port to local caches.
> > > > remote.cache.service.port=1102
> > > > # tomcat config
> > > > remote.tomcat.on=false
> > > > remote.tomcat.xml=@project_home_f@bin/conf/remote.tomcat.xml
> > > > # cluster setting
> > > > remote.cluster.LocalClusterConsistency=true
> > > > #not allowed -- remote.cluster.AllowClusterGet=false
> > > >
> > >
> >
> 
> > > >
> > >
> >
> 
> > > > ##############################################################
> > > > ################## 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=1000
> > > >
> > >
> >
>
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory
> > > > .lru.LRUMemoryCache
> > > > jcs.default.cacheattributes.UseMemoryShrinker=true
> > > > jcs.default.cacheattributes.MaxMemoryIdleTimeSeconds=3600
> > > > jcs.default.cacheattributes.ShrinkerIntervalSeconds=60
> > > >
> >
jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes
> > > > jcs.default.elementattributes.IsEternal=false
> > > > jcs.default.elementattributes.MaxLifeSeconds=7
> > > > jcs.default.elementattributes.IdleTime=1800
> > > > jcs.default.elementattributes.IsSpool=true
> > > > jcs.default.elementattributes.IsRemote=true
> > > > jcs.default.elementattributes.IsLateral=false
> > > >
> > >
> >
> 
> > > > # SYSTEM CACHE
> > > > # should be defined for the storage of group attribute list
> > > > jcs.system.groupIdCache=DC
> > > >
> > >
> >
>
jcs.system.groupIdCache.cacheattributes=org.apache.jcs.engine.CompositeC
> > > > acheAttributes
> > > > jcs.system.groupIdCache.cacheattributes.MaxObjects=10000
> > > >
> > >
> >
>
jcs.system.groupIdCache.cacheattributes.MemoryCacheName=org.apache.jcs.e
> > > > ngine.memory.lru.LRUMemoryCache
> > > >
> > >
> >
>
jcs.system.groupIdCache.elementattributes=org.apache.jcs.engine.ElementA
> > > > ttributes
> > > > jcs.system.groupIdCache.elementattributes.IsEternal=true
> > > > jcs.system.groupIdCache.elementattributes.MaxLifeSeconds=3600
> > > > jcs.system.groupIdCache.elementattributes.IdleTime=1800
> > > > jcs.system.groupIdCache.elementattributes.IsSpool=true
> > > > jcs.system.groupIdCache.elementattributes.IsRemote=true
> > > > jcs.system.groupIdCache.elementattributes.IsLateral=false
> > > >
> > >
> >
> 
> > > >
> > >
> >
> 
> > > >
> > >
> >
> 
> > > > ##############################################################
> > > > ################## CACHE REGIONS AVAILABLE ###################
> > > > # jcs.region.testCache1=DC,RCluster1
> > > > jcs.region.testCache1=DC
> > > >
> > >
> >
>
jcs.region.testCache1.cacheattributes=org.apache.jcs.engine.CompositeCac
> > > > heAttributes
> > > > jcs.region.testCache1.cacheattributes.MaxObjects=1000
> > > >
> > >
> >
> 
> > > >
> > >
> >
> 
> > > > ##############################################################
> > > > ################## AUXILIARY CACHES AVAILABLE ################
> > > > # server to update for clustering -- remote.cache.ccf 2
> > > >
> > >
> >
>
jcs.auxiliary.RCluster1=org.apache.jcs.auxiliary.remote.RemoteCacheFacto
> > > > ry
> > > >
> > >
> >
>
jcs.auxiliary.RCluster1.attributes=org.apache.jcs.auxiliary.remote.Remot
> > > > eCacheAttributes
> > > > jcs.auxiliary.RCluster1.attributes.RemoteTypeName=CLUSTER
> > > > jcs.auxiliary.RCluster1.attributes.RemoveUponRemotePut=false
> > > >
#jcs.auxiliary.RCluster1.attributes.ClusterServers=localhost:1103
> > > > jcs.auxiliary.RCluster1.attributes.GetOnly=false
> > > > #jcs.auxiliary.RCluster1.attributes.LocalClusterConsistency=true
> > > >
> > >
> >
> 
> > > > # server to update for clustering
> > > >
> > >
> >
>
jcs.auxiliary.RCluster2=org.apache.jcs.auxiliary.remote.RemoteCacheFacto
> > > > ry
> > > >
> > >
> >
>
jcs.auxiliary.RCluster2.attributes=org.apache.jcs.auxiliary.remote.Remot
> > > > eCacheAttributes
> > > > jcs.auxiliary.RCluster2.attributes.RemoteTypeName=CLUSTER
> > > > jcs.auxiliary.RCluster2.attributes.RemoveUponRemotePut=false
> > > > jcs.auxiliary.RCluster2.attributes.ClusterServers=localhost:1104
> > > > jcs.auxiliary.RCluster2.attributes.GetOnly=false
> > > > #jcs.auxiliary.RCluster2.attributes.LocalClusterConsistency=true
> > > >
> > >
> >
> 
> > > >
> > >
> >
>
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=@project_home@/raf/remote
> > > >
> > >
> >
> 
> > > >
> > >
> >
> 
> > > > Any help would be much appreciated.
> > > >
> > >
> >
> 
> > > > Cheers,
> > > > David Luk
> > > >
> > >
> >
> 
> > > >
> > >
> >
> 
> > > >
> > >
> >
> 
> > > > ================================================================
> > > > CAUTION: This e-mail and any attachment(s) contains information
> > > > that is intended to be read only by the named recipient(s). It
> > > > may contain information that is confidential, proprietary or the
> > > > subject of legal privilege. This information is not to be used
by
> > > > any other person and/or organisation. If you are not the
intended
> > > > recipient, please advise us immediately and delete this e-mail
> > > > from your system. Do not use any information contained in it.
> > > >
> > >
> >
> 
> > > > ================================================================
> > > > For more information on the Television New Zealand Group, visit
> > > > us online at http://www.tvnz.co.nz
> > > > ================================================================
> > > >
> > >
> >
> 
> > > >
> >
---------------------------------------------------------------------
> > > > To unsubscribe, e-mail:
> > > turbine-jcs-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail:
> > > turbine-jcs-user-help@jakarta.apache.org
> > >
> >
> 
> > >
> >
> 
> > >
> >
> 
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > turbine-jcs-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > > turbine-jcs-user-help@jakarta.apache.org
> > >
> >
> 
> > >
> >
> 
> > > ================================================================
> > > CAUTION: This e-mail and any attachment(s) contains information
> > > that is intended to be read only by the named recipient(s). It
> > > may contain information that is confidential, proprietary or the
> > > subject of legal privilege. This information is not to be used by
> > > any other person and/or organisation. If you are not the intended
> > > recipient, please advise us immediately and delete this e-mail
> > > from your system. Do not use any information contained in it.
> > >
> >
> 
> > > ================================================================
> > > For more information on the Television New Zealand Group, visit
> > > us online at http://www.tvnz.co.nz
> > > ================================================================
> > >
> >
> 
> > >
> ---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > turbine-jcs-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > turbine-jcs-user-help@jakarta.apache.org
> >
> 
> >
> 
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> turbine-jcs-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> > turbine-jcs-user-help@jakarta.apache.org
> >
> 
> >
> 
> > ================================================================
> > CAUTION: This e-mail and any attachment(s) contains information
> > that is intended to be read only by the named recipient(s). It
> > may contain information that is confidential, proprietary or the
> > subject of legal privilege. This information is not to be used by
> > any other person and/or organisation. If you are not the intended
> > recipient, please advise us immediately and delete this e-mail
> > from your system. Do not use any information contained in it.
> >
> 
> > ================================================================
> > For more information on the Television New Zealand Group, visit
> > us online at http://www.tvnz.co.nz
> > ================================================================
> >
> 
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> turbine-jcs-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail:
> turbine-jcs-user-help@jakarta.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
turbine-jcs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> turbine-jcs-user-help@jakarta.apache.org
> 
> 
> ================================================================
> CAUTION: This e-mail and any attachment(s) contains information
> that is intended to be read only by the named recipient(s). It
> may contain information that is confidential, proprietary or the
> subject of legal privilege. This information is not to be used by
> any other person and/or organisation. If you are not the intended
> recipient, please advise us immediately and delete this e-mail
> from your system. Do not use any information contained in it.
> 
> ================================================================
> For more information on the Television New Zealand Group, visit
> us online at http://www.tvnz.co.nz
> ================================================================
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
turbine-jcs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
turbine-jcs-user-help@jakarta.apache.org


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


Mime
View raw message