jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Garth Patil" <garthpa...@hotmail.com>
Subject RE: Remote cache clients JVM will not shut down
Date Tue, 27 Sep 2005 18:57:12 GMT
Thanks very much for this. VERY helpful.
GP


>From: "Smuts, Aaron" <Aaron.Smuts@travelocity.com>
>Reply-To: "JCS Users List" <jcs-users@jakarta.apache.org>
>To: "JCS Users List" <jcs-users@jakarta.apache.org>
>Subject: RE: Remote cache clients JVM will not shut down
>Date: Tue, 27 Sep 2005 10:06:25 -0500
>
>Thanks.  Someone could take this, and then try to put the server on
>another machine, modify the config, and test again.
>
>Aaron
>
> > -----Original Message-----
> > From: Chisarick, Dan [mailto:Dan.Chisarick@fnf.com]
> > Sent: Tuesday, September 27, 2005 10:30 AM
> > To: JCS Users List
> > Subject: RE: Remote cache clients JVM will not shut down
> >
> > I zipped up the little test program I was using here:
> >
> > http://homepage.mac.com/chisarickd/jcstest.zip
> >
> > If you run Windows, just unzip it, run 'goserver' in one command
>prompt
> > and 'goclient' in the other.  The first time you run 'goclient' you
>see
> > it gets a NULL value for the key it stores in JCS.  The second time
>you
> > run it it gets the value right off the bat (from the remote server).
> > You have to type CTRL-C to end the client.  And the server for that
> > matter (I didn't write a server shutdown script.)
> >
> > Dan
> >
> >
> > -----Original Message-----
> > From: Garth Patil [mailto:garthpatil@hotmail.com]
> > Sent: Monday, September 26, 2005 8:08 PM
> > To: jcs-users@jakarta.apache.org
> > Subject: RE: Remote cache clients JVM will not shut down
> >
> > A little off this thread's topic, but are there any code examples of
> > simple remote cache servers using JCS? Unfortunately, I haven't had as
> > much success getting one set up so quickly. Thanks!
> >
> >
> > >From: "Chisarick, Dan" <Dan.Chisarick@fnf.com>
> > >Reply-To: "JCS Users List" <jcs-users@jakarta.apache.org>
> > >To: <jcs-users@jakarta.apache.org>
> > >Subject: Remote cache clients JVM will not shut down
> > >Date: Mon, 26 Sep 2005 15:10:35 -0500
> > >
> > >Hi.  I'm fairly new to JCS.  I was happy to get a remote cache server
> > >setup so quickly (< 15 minutes) but seem to have a problem
> > >disconnecting from it.  I wrote a little test app that just calls
> > >'getInstance()', gets an item, puts an item, then calls 'dispose()'
>on
> > >that instance and quits.  But the test app JVM hangs.  Poking around
> > >shows that the "RMI Reaper" thread is not a daemon thread.  I hoped
> > that calling 'dispose()'
> > >would close down the client's connections to the remote.  My
> > >configuration files are largely cut and paste from the examples given
> > >on the JCS page.  I scanned the archives of the user's mailing lists,
> > >read a few that looked promising but nothing that seemed to help.
>Any
> > >thoughts appreciated.  Configuration files attached.  Thanks.
> > >
> > >Dan
> > >
> > >
> > >Test app configuration:
> > >
> > ># DEFAULT CACHE REGION
> > >
> > >jcs.default=
> >
> >jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttribu
> > >t
> > >es
> > >jcs.default.cacheattributes.MaxObjects=1000
> >
> >jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memor
> > >y
> > >.lru.LRUMemoryCache
> > >
> > >jcs.default.cacheattributes.cacheattributes.UseMemoryShrinker=true
> >
> >jcs.default.cacheattributes.cacheattributes.MaxMemoryIdleTimeSeconds=36
> > >0
> > >0
> >
> >jcs.default.cacheattributes.cacheattributes.ShrinkerIntervalSeconds=60
> > >jcs.default.cacheattributes.MaxSpoolPerRun=500
> > >jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes
> > >jcs.default.elementattributes.IsEternal=false
> > >
> > >jcs.region.testCache1=RFailover
> >
> >jcs.region.testCache1.cacheattributes=org.apache.jcs.engine.CompositeCa
> > >c
> > >heAttributes
> > >jcs.region.testCache1.cacheattributes.MaxObjects=1000
> >
> >jcs.region.testCache1.cacheattributes.MemoryCacheName=org.apache.jcs.en
> > >g
> > >ine.memory.lru.LRUMemoryCache
> > >jcs.region.testCache1.cacheattributes.UseMemoryShrinker=true
> > >jcs.region.testCache1.cacheattributes.MaxMemoryIdleTimeSeconds=3600
> > >jcs.region.testCache1.cacheattributes.ShrinkerIntervalSeconds=60
> > >jcs.region.testCache1.cacheattributes.MaxSpoolPerRun=500
> >
> >jcs.region.testCache1.elementattributes=org.apache.jcs.engine.ElementAt
> > >t
> > >ributes
> > >jcs.region.testCache1.elementattributes.IsEternal=false
> > >
> > >
> > ># Remote RMI Cache set up to failover
> >
> >jcs.auxiliary.RFailover=org.apache.jcs.auxiliary.remote.RemoteCacheFact
> > >o
> > >ry
> >
> >jcs.auxiliary.RFailover.attributes=org.apache.jcs.auxiliary.remote.Remo
> > >t
> > >eCacheAttributes
> > >#
> >
> >jcs.auxiliary.RFailover.attributes.FailoverServers=localhost:1102,local
> > >h
> > >ost:1103
> > >jcs.auxiliary.RFailover.attributes.FailoverServers=localhost:1201
> > >jcs.auxiliary.RC.attributes.RemoveUponRemotePut=true
> > >jcs.auxiliary.RFailover.attributes.GetOnly=false
> > >
> > >#Regions preconfirgured for caching
> > ># jcs.region.testCache1=DC,RFailover
> > >#
> >
> >jcs.region.testCache1.cacheattributes=org.apache.jcs.engine.CompositeCa
> > >c
> > >heAttributes
> > ># jcs.region.testCache1.cacheattributes.MaxObjects=1000
> > >#
> >
> >jcs.region.testCache1.cacheattributes.MemoryCacheName=org.apache.jcs.en
> > >g
> > >ine.memory.lru.LRUMemoryCache
> > >
> > >
> > >Remote server configuration:
> > >
> > >##############################################################
> > >################## REMOTE SERVER CONFIG  ##################### #
> > >Registry used to register and provide the IRmiCacheService service.
> > >registry.host=localhost
> > >registry.port=1201
> > ># call back port to local caches.
> > >remote.cache.service.port=1201
> > ># cluster setting
> > >remote.cluster.LocalClusterConsistency=true
> > >
> > >
> > >##############################################################
> > >################## DEFAULT CACHE REGION  ##################### # sets
> > >the default aux value for any non configured caches #
> > >jcs.default=DC,RCluster jcs.default=DC
> >
> >jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttribu
> > >t
> > >es
> > >jcs.default.cacheattributes.MaxObjects=200000
> >
> >jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memor
> > >y
> > >.lru.LRUMemoryCache
> > >jcs.default.cacheattributes.UseMemoryShrinker=true
> > >jcs.default.cacheattributes.MaxMemoryIdleTimeSeconds=3600
> > >jcs.default.cacheattributes.ShrinkerIntervalSeconds=60
> > >jcs.default.cacheattributes.ShrinkerIntervalSeconds=60
> > >jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes
> > >jcs.default.elementattributes.IsEternal=false
> > >jcs.default.elementattributes.MaxLifeSeconds=7000
> > >jcs.default.elementattributes.IdleTime=1800
> > >jcs.default.elementattributes.IsSpool=true
> > >jcs.default.elementattributes.IsRemote=true
> > >jcs.default.elementattributes.IsLateral=true
> > >
> > >
> > >##############################################################
> > >################## CACHE REGIONS AVAILABLE ################### #
> > >jcs.region.testCache1=DC,RCluster
> > >jcs.region.testCache1=DC
> >
> >jcs.region.testCache1.cacheattributes=org.apache.jcs.engine.CompositeCa
> > >c
> > >heAttributes
> > >jcs.region.testCache1.cacheattributes.MaxObjects=200002
> > >
> > >
> > >##############################################################
> > >################## AUXILIARY CACHES AVAILABLE ################ #
>server
> >
> > >to update for clustering -- remote.cache2.ccf(1102)  and
> > >remote.cache3.ccf(1103)
> > >#
> >
> >jcs.auxiliary.RCluster=org.apache.jcs.auxiliary.remote.RemoteCacheFacto
> > >r
> > >y
> > >#
> >
> >jcs.auxiliary.RCluster.attributes=org.apache.jcs.auxiliary.remote.Remot
> > >e
> > >CacheAttributes
> > ># jcs.auxiliary.RCluster.attributes.RemoteTypeName=CLUSTER
> > ># jcs.auxiliary.RCluster.attributes.RemoveUponRemotePut=false
> > ># jcs.auxiliary.RCluster.attributes.ClusterServers=localhost:1202
> > ># jcs.auxiliary.RCluster.attributes.GetOnly=false
> > ># jcs.auxiliary.RCluster.attributes.LocalClusterConsistency=true
> > >
> > >
> >
> >jcs.auxiliary.DC=org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache
> > >F
> > >actory
> >
> >jcs.auxiliary.DC.attributes=org.apache.jcs.auxiliary.disk.indexed.Index
> > >e
> > >dDiskCacheAttributes
> > >jcs.auxiliary.DC.attributes.DiskPath=D:/JCSCacheDir
> > >
> > >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jcs-users-help@jakarta.apache.org
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: jcs-users-help@jakarta.apache.org
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: jcs-users-help@jakarta.apache.org
>



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


Mime
View raw message