You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jcs-users@jakarta.apache.org by "Siefker, Adam" <si...@amazon.com> on 2005/07/31 22:09:50 UTC
TCP lateral cache not shutting down
I'm having this problem for both UDP discovery and listing servers explicitly in cache.ccf. The JVM that my tomcat server runs in does not exit after calling shutdown.sh. I don't have this problem if my cache.ccf does not reference the lateral cache configuration.
Logs after shutting down my app:
2005-07-31 12:34:11,697 DEBUG [Thread-1] org.apache.jcs.auxiliary.lateral.LateralCacheMonitor - Lateral cache monitor sleeping for 20000 between runs.
2005-07-31 12:34:11,706 DEBUG [Thread-4] org.apache.jcs.auxiliary.lateral.socket.tcp.discovery.UDPDiscoverySender - sending passiveBroadcast
2005-07-31 12:34:11,706 DEBUG [Thread-4] org.apache.jcs.auxiliary.lateral.socket.tcp.discovery.UDPDiscoverySender - sending UDPDiscoveryMessage, message =
host = [172.21.1.53]
port = [1812]
requesterId = [1851594534]
messageType = [0]
Cache Names cacheName = [fijiSearchBlendedResults]
2005-07-31 12:34:11,706 DEBUG [Thread-4] org.apache.jcs.auxiliary.lateral.socket.tcp.discovery.UDPDiscoverySenderThread - Called sender to issue a passive broadcast
2005-07-31 12:34:11,707 DEBUG [Thread-3] org.apache.jcs.auxiliary.lateral.socket.tcp.discovery.UDPDiscoveryReceiver - 13 messages received.
2005-07-31 12:34:11,707 DEBUG [Thread-3] org.apache.jcs.auxiliary.lateral.socket.tcp.discovery.UDPDiscoveryReceiver - Passed handler to executor.
2005-07-31 12:34:11,707 DEBUG [Thread-5] org.apache.jcs.auxiliary.lateral.socket.tcp.discovery.UDPDiscoveryReceiver - from self
The above is repeated until I manually kill the root java process.
In my startup servlet, I make the following calls to try to clean up JCS:
CompositeCacheManager.getInstance().freeCache("fijiSearchBlendedResults");
CompositeCacheManager.getInstance().release();
CompositeCacheManager.getInstance().shutDown();
Cache.ccf file:
jcs.region.fijiSearchBlendedResults=LTCP
jcs.region.fijiSearchBlendedResults.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
jcs.region.fijiSearchBlendedResults.cacheattributes.MaxObjects=10000
jcs.region.fijiSearchBlendedResults.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
jcs.region.fijiSearchBlendedResults.cacheattributes.UseMemoryShrinker=false
jcs.region.fijiSearchBlendedResults.cacheattributes.MaxSpoolPerRun=100
jcs.region.fijiSearchBlendedResults.cacheattributes.MaxMemoryIdleTimeSeconds=100
jcs.region.fijiSearchBlendedResults.cacheattributes.ShrinkerIntervalSeconds=30
jcs.region.fijiSearchBlendedResults.elementattributes=org.apache.jcs.engine.ElementAttributes
jcs.region.fijiSearchBlendedResults.elementattributes.IsEternal=true
#Search results will be retained for 30 minutes.
jcs.region.fijiSearchBlendedResults.elementattributes.MaxLifeSeconds=1800
jcs.region.fijiSearchBlendedResults.elementattributes.IsSpool=false
jcs.region.fijiSearchBlendedResults.elementattributes.IsLateral=true
jcs.region.fijiSearchBlendedResults.elementattributes.IsRemote=false
jcs.auxiliary.LTCP=org.apache.jcs.auxiliary.lateral.LateralCacheFactory
jcs.auxiliary.LTCP.attributes=org.apache.jcs.auxiliary.lateral.LateralCacheAttributes
jcs.auxiliary.LTCP.attributes.TransmissionTypeName=TCP
jcs.auxiliary.LTCP.attributes.TcpServers=
jcs.auxiliary.LTCP.attributes.TcpListenerPort=1812
jcs.auxiliary.LTCP.attributes.PutOnlyMode=false
There are no servers because in this environment there is only 1 server. However, I do have two other environments to support and they have multiple servers and are having the same problem
If I use an identical configuration, but with.fijiSearchBlendedResults configured to not use LTCP there are no shutdown problems. Do you have any suggestions?
Thanks.
Adam
Re: TCP lateral cache not shutting down
Posted by Aaron Smuts <as...@yahoo.com>.
The udp thread should be a daemon. I haven't seen
this problem. Are you using 1.2.6.5?
--- "Siefker, Adam" <si...@amazon.com> wrote:
> I'm having this problem for both UDP discovery and
> listing servers explicitly in cache.ccf. The JVM
> that my tomcat server runs in does not exit after
> calling shutdown.sh. I don't have this problem if my
> cache.ccf does not reference the lateral cache
> configuration.
>
> Logs after shutting down my app:
> 2005-07-31 12:34:11,697 DEBUG [Thread-1]
> org.apache.jcs.auxiliary.lateral.LateralCacheMonitor
> - Lateral cache monitor sleeping for 20000 between
> runs.
> 2005-07-31 12:34:11,706 DEBUG [Thread-4]
>
org.apache.jcs.auxiliary.lateral.socket.tcp.discovery.UDPDiscoverySender
> - sending passiveBroadcast
> 2005-07-31 12:34:11,706 DEBUG [Thread-4]
>
org.apache.jcs.auxiliary.lateral.socket.tcp.discovery.UDPDiscoverySender
> - sending UDPDiscoveryMessage, message =
> host = [172.21.1.53]
> port = [1812]
> requesterId = [1851594534]
> messageType = [0]
> Cache Names cacheName = [fijiSearchBlendedResults]
> 2005-07-31 12:34:11,706 DEBUG [Thread-4]
>
org.apache.jcs.auxiliary.lateral.socket.tcp.discovery.UDPDiscoverySenderThread
> - Called sender to issue a passive broadcast
> 2005-07-31 12:34:11,707 DEBUG [Thread-3]
>
org.apache.jcs.auxiliary.lateral.socket.tcp.discovery.UDPDiscoveryReceiver
> - 13 messages received.
> 2005-07-31 12:34:11,707 DEBUG [Thread-3]
>
org.apache.jcs.auxiliary.lateral.socket.tcp.discovery.UDPDiscoveryReceiver
> - Passed handler to executor.
> 2005-07-31 12:34:11,707 DEBUG [Thread-5]
>
org.apache.jcs.auxiliary.lateral.socket.tcp.discovery.UDPDiscoveryReceiver
> - from self
>
> The above is repeated until I manually kill the root
> java process.
>
> In my startup servlet, I make the following calls to
> try to clean up JCS:
>
>
>
CompositeCacheManager.getInstance().freeCache("fijiSearchBlendedResults");
>
> CompositeCacheManager.getInstance().release();
>
> CompositeCacheManager.getInstance().shutDown();
>
>
>
> Cache.ccf file:
> jcs.region.fijiSearchBlendedResults=LTCP
>
jcs.region.fijiSearchBlendedResults.cacheattributes=org.apache.jcs.engine.CompositeCacheAttributes
>
jcs.region.fijiSearchBlendedResults.cacheattributes.MaxObjects=10000
>
jcs.region.fijiSearchBlendedResults.cacheattributes.MemoryCacheName=org.apache.jcs.engine.memory.lru.LRUMemoryCache
>
jcs.region.fijiSearchBlendedResults.cacheattributes.UseMemoryShrinker=false
>
jcs.region.fijiSearchBlendedResults.cacheattributes.MaxSpoolPerRun=100
>
jcs.region.fijiSearchBlendedResults.cacheattributes.MaxMemoryIdleTimeSeconds=100
>
jcs.region.fijiSearchBlendedResults.cacheattributes.ShrinkerIntervalSeconds=30
>
jcs.region.fijiSearchBlendedResults.elementattributes=org.apache.jcs.engine.ElementAttributes
>
jcs.region.fijiSearchBlendedResults.elementattributes.IsEternal=true
> #Search results will be retained for 30 minutes.
>
jcs.region.fijiSearchBlendedResults.elementattributes.MaxLifeSeconds=1800
>
jcs.region.fijiSearchBlendedResults.elementattributes.IsSpool=false
>
jcs.region.fijiSearchBlendedResults.elementattributes.IsLateral=true
>
jcs.region.fijiSearchBlendedResults.elementattributes.IsRemote=false
>
>
jcs.auxiliary.LTCP=org.apache.jcs.auxiliary.lateral.LateralCacheFactory
>
jcs.auxiliary.LTCP.attributes=org.apache.jcs.auxiliary.lateral.LateralCacheAttributes
>
jcs.auxiliary.LTCP.attributes.TransmissionTypeName=TCP
> jcs.auxiliary.LTCP.attributes.TcpServers=
> jcs.auxiliary.LTCP.attributes.TcpListenerPort=1812
> jcs.auxiliary.LTCP.attributes.PutOnlyMode=false
>
>
> There are no servers because in this environment
> there is only 1 server. However, I do have two other
> environments to support and they have multiple
> servers and are having the same problem
>
> If I use an identical configuration, but
> with.fijiSearchBlendedResults configured to not use
> LTCP there are no shutdown problems. Do you have
> any suggestions?
>
> Thanks.
> Adam
>
---------------------------------------------------------------------
To unsubscribe, e-mail: jcs-users-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jcs-users-help@jakarta.apache.org