Return-Path: Delivered-To: apmail-jakarta-jcs-users-archive@www.apache.org Received: (qmail 89704 invoked from network); 27 Sep 2005 18:57:35 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Sep 2005 18:57:35 -0000 Received: (qmail 39694 invoked by uid 500); 27 Sep 2005 18:57:35 -0000 Delivered-To: apmail-jakarta-jcs-users-archive@jakarta.apache.org Received: (qmail 39548 invoked by uid 500); 27 Sep 2005 18:57:34 -0000 Mailing-List: contact jcs-users-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JCS Users List" Delivered-To: mailing list jcs-users@jakarta.apache.org Received: (qmail 39534 invoked by uid 99); 27 Sep 2005 18:57:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2005 11:57:34 -0700 X-ASF-Spam-Status: No, hits=1.7 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of garthpatil@hotmail.com designates 64.4.61.25 as permitted sender) Received: from [64.4.61.25] (HELO hotmail.com) (64.4.61.25) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Sep 2005 11:57:41 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Tue, 27 Sep 2005 11:57:13 -0700 Message-ID: Received: from 64.4.61.201 by by102fd.bay102.hotmail.msn.com with HTTP; Tue, 27 Sep 2005 18:57:12 GMT X-Originating-IP: [64.4.61.201] X-Originating-Email: [garthpatil@hotmail.com] X-Sender: garthpatil@hotmail.com In-Reply-To: From: "Garth Patil" To: jcs-users@jakarta.apache.org Subject: RE: Remote cache clients JVM will not shut down Date: Tue, 27 Sep 2005 18:57:12 +0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed X-OriginalArrivalTime: 27 Sep 2005 18:57:13.0091 (UTC) FILETIME=[4558AD30:01C5C395] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thanks very much for this. VERY helpful. GP >From: "Smuts, Aaron" >Reply-To: "JCS Users List" >To: "JCS Users List" >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" > > >Reply-To: "JCS Users List" > > >To: > > >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