jakarta-jcs-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Horton Simon" <Simon.Hor...@uk.mizuho-sc.com>
Subject CompositeCacheManager does not fully shutdown the IRemoteCacheService?
Date Wed, 07 Mar 2007 17:47:09 GMT
Hi,

I just downloaded the jcs-1.2.7.9.2.jar file after previously using the
jcs-1.2.7.0.jar.  I was hoping that the IRemoteCacheService would now
stop completely when the CompositeCacheManager calls the release and
shutdown methods, unfortunately it still keeps the JVM hanging around.

CompositeCacheManager compositeCacheManager =
CompositeCacheManager.getInstance();

compositeCacheManager.release();
compositeCacheManager.shutDown();


I am running a Tomcat web app which uses JCS. When you run the Tomcat
shutdown script, I have a ServletContextListener which calls the JCS
CompositeCacheManager shutdown commands. The Tomcat process shuts down
invoking my context listener, but the standard out window which is
running (on windows) for that Tomcat process/JVM, remains after Tomcat
shuts down because the JCS RemoteCacheRestore daemon appears to keep the
JVM alive. After Tomcat finishes shutting down, the only messages
continuously written to that window is regarding the IRemoteCacheService
attempting to connect to the Remote Cache server, e.g.

06 Mar 2007 21:14:33,786 ERROR (219185ms)-  [][][][] -
org.apache.jcs.auxiliary.remote.RemoteCacheRestore - host=localhost;
port1102;
service=org.apache.jcs.auxiliary.remote.behavior.IRemoteCacheService


There doesn't appear to be a way to cleanly shutdown the JCS
IRemoteCacheService through the CompositeCacheManager. Is this
considered a bug to fix?

Is there a work around, other than having to kill the JVM process, to
programmatically achieve a clean shutdown using the JCS API, maybe
directly with RemoteCacheService API calls? 

Some log info below occurring during the shutdown.

Thanks,
Simon


Example shutdown log info:
06 Mar 2007 21:13:00,818 ERROR (126217ms)-  [][][][] -
org.apache.jcs.auxiliary.remote.RemoteCacheRestore - host=localhost;
port1102;
service=org.apache.jcs.auxiliary.remote.behavior.IRemoteCacheService
06 Mar 2007 21:13:05,287 INFO (130686ms)-  [][][][] -
com.vit.amaethon.client.listener.ClientServletContextListener -
contextDestroyed called
06 Mar 2007 21:13:05,287 INFO (130686ms)-  [][][][] -
com.vit.amaethon.common.cache.CacheTransaction - disposeOfCaches
Shutdown JCS caches started
06 Mar 2007 21:13:05,287 INFO (130686ms)-  [][][][] -
com.vit.amaethon.common.cache.CacheTransaction - disposeOfCaches
Shutdown JCS dataCache
06 Mar 2007 21:13:05,396 WARN (130795ms)-  [][][][] -
org.apache.jcs.auxiliary.disk.indexed.IndexedDisk - Resetting data file
06 Mar 2007 21:13:05,396 WARN (130795ms)-  [][][][] -
org.apache.jcs.auxiliary.disk.indexed.IndexedDisk - Resetting data file
06 Mar 2007 21:13:05,396 WARN (130795ms)-  [][][][] -
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache - Closing files,
base filename: itemsInBaskets
06 Mar 2007 21:13:05,396 WARN (130795ms)-  [][][][] -
org.apache.jcs.engine.control.CompositeCache - Called close for
itemsInBaskets
06 Mar 2007 21:13:05,396 INFO (130795ms)-  [][][][] -
com.vit.amaethon.common.cache.CacheTransaction - disposeOfCaches
Shutdown JCS transactionObjectCache
06 Mar 2007 21:13:05,396 WARN (130795ms)-  [][][][] -
org.apache.jcs.engine.control.CompositeCache - Called close for
itemsInBasketsTransactionObjects
06 Mar 2007 21:13:05,396 INFO (130795ms)-  [][][][] -
com.vit.amaethon.common.cache.CacheTransaction - disposeOfCaches
Shutdown JCS caches finished
06 Mar 2007 21:13:05,396 INFO (130795ms)-  [][][][] -
com.vit.amaethon.common.cache.CacheTransaction - disposeOfCaches
Shutdown JCS caches started
06 Mar 2007 21:13:05,396 INFO (130795ms)-  [][][][] -
com.vit.amaethon.common.cache.CacheTransaction - disposeOfCaches
Shutdown JCS dataCache
06 Mar 2007 21:13:05,521 WARN (130920ms)-  [][][][] -
org.apache.jcs.auxiliary.disk.indexed.IndexedDisk - Resetting data file
06 Mar 2007 21:13:05,521 WARN (130920ms)-  [][][][] -
org.apache.jcs.auxiliary.disk.indexed.IndexedDisk - Resetting data file
06 Mar 2007 21:13:05,521 WARN (130920ms)-  [][][][] -
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache - Closing files,
base filename: sessionCache
06 Mar 2007 21:13:05,521 WARN (130920ms)-  [][][][] -
org.apache.jcs.engine.control.CompositeCache - Called close for
sessionCache
06 Mar 2007 21:13:05,521 INFO (130920ms)-  [][][][] -
com.vit.amaethon.common.cache.CacheTransaction - disposeOfCaches
Shutdown JCS transactionObjectCache
06 Mar 2007 21:13:05,521 WARN (130920ms)-  [][][][] -
org.apache.jcs.engine.control.CompositeCache - Called close for
sessionCacheTransactionObjects
06 Mar 2007 21:13:05,521 INFO (130920ms)-  [][][][] -
com.vit.amaethon.common.cache.CacheTransaction - disposeOfCaches
Shutdown JCS caches finished
06 Mar 2007 21:13:05,631 WARN (131030ms)-  [][][][] -
org.apache.jcs.auxiliary.disk.indexed.IndexedDisk - Resetting data file
06 Mar 2007 21:13:05,631 WARN (131030ms)-  [][][][] -
org.apache.jcs.auxiliary.disk.indexed.IndexedDisk - Resetting data file
06 Mar 2007 21:13:05,631 WARN (131030ms)-  [][][][] -
org.apache.jcs.auxiliary.disk.indexed.IndexedDiskCache - Closing files,
base filename: testCache1
06 Mar 2007 21:13:05,631 WARN (131030ms)-  [][][][] -
org.apache.jcs.engine.control.CompositeCache - Called close for
testCache1
06 Mar 2007 21:13:05,631 INFO (131030ms)-  [][][][] -
com.vit.amaethon.client.listener.ClientServletContextListener -
contextDestroyed finished
06 Mar 2007 21:13:31,771 ERROR (157170ms)-  [][][][] -
org.apache.jcs.auxiliary.remote.RemoteCacheRestore - host=localhost;
port1102;
service=org.apache.jcs.auxiliary.remote.behavior.IRemoteCacheService
06 Mar 2007 21:14:02,724 ERROR (188123ms)-  [][][][] -
org.apache.jcs.auxiliary.remote.RemoteCacheRestore - host=localhost;
port1102;
service=org.apache.jcs.auxiliary.remote.behavior.IRemoteCacheService
06 Mar 2007 21:14:33,786 ERROR (219185ms)-  [][][][] -
org.apache.jcs.auxiliary.remote.RemoteCacheRestore - host=localhost;
port1102;
service=org.apache.jcs.auxiliary.remote.behavior.IRemoteCacheService

This message and any files transmitted with it are confidential and intended solely for the
use of the individual or entity to whom they are addressed. If you have received this message
in error please delete it and any files transmitted with it, after notifying postmaster@uk.mizuho-sc.com

Any opinions expressed in this message may be those of the author and not necessarily those
of the company. The company accepts no responsibility for the accuracy or completeness of
any information contained herein. This message is not intended to create legal relations between
the company and the recipient. 
Recipients should please note that messages sent via the Internet may be intercepted and that
caution should therefore be exercised before dispatching to the company any confidential or
sensitive information. 
Mizuho International plc Bracken House, One Friday Street, London EC4M 9JA. TEL. 020 72361090.
Wholly owned subsidiary of Mizuho Securities Co., Ltd. Member of Mizuho Financial Group. Authorised
and regulated by the Financial Services Authority. Member of the London Stock Exchange. 

Registered in England No. 1203696. Registered office as above.


---------------------------------------------------------------------
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