I have the remote cache war running under Tomcat.  Tomcat is running as a 
service under Windows 7.  When I shut down the service it hangs for about 5 
minutes and then the following message appears in a dialog box:

Windows could not stop Apache Tomcat 7 service on local Computer.
Error 1053: The service did not respond to the start or control request in a 
timely fashion.

The service then shuts down.

Here is my remote cache config:

registry.host=localhost
registry.port=1102
remote.cache.service.port=1102


jcs.default=
jcs.default.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.default.cacheattributes.MaxObjects=1000
jcs.default.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.default.cacheattributes.UseMemoryShrinker=true
jcs.default.cacheattributes.ShrinkerIntervalSeconds=60
jcs.default.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.default.elementattributes.IsEternal=false
jcs.default.elementattributes.IsSpool=false
jcs.default.elementattributes.IsLateral=false
jcs.default.elementattributes.IsRemote=true

jcs.region.tokenCache=
jcs.region.tokenCache.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.region.tokenCache.cacheattributes.MaxObjects=1000
jcs.region.tokenCache.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.region.tokenCache.elementattributes.IsEternal=false


Here is the part of the log written during shutdown:

09:42:18,899 INFO  [RemoteCacheStartupServlet] Shutting down remote cache
09:42:18,903 INFO  [CompositeCache] In DISPOSE, [tokenCache] fromRemote [false]
Region Name = tokenCache
HitCountRam = 0
HitCountAux = 0
---------------------------LRU Memory Cache
List Size = 0
Map Size = 0
Put Count = 0
Hit Count = 0
Miss Count = 0
09:42:18,903 INFO  [CompositeCache] In DISPOSE, [tokenCache] disposing of 
memory cache.
09:42:18,903 INFO  [AbstractMemoryCache] Memory Cache dispose called.  Shutting 
down shrinker thread if it is running.

Is there a way to have the Tomcat service shut down correctly?

Thanks,

Art Thursland



________________________________

Reply via email to