日期:2014-05-18  浏览次数:20792 次

TOMCAT集群关掉一个服务器后报错
各位帮忙看看.

我弄了个TOMCAT集群.参考:http://hi.baidu.com/luodaijun/blog/item/5bbe4cfb5ffef864034f56a1.html

采用的是apache_2.2.14-win32-x86-no_ssl.msi+mod_jk-1.2.28-httpd-2.2.3.so+apache-tomcat-6.0.29.zip配置.

测试test.jsp页面.访问http://localhost/examples/test.jsp能够正常访问.可以实现负载均衡.

可是测试session共享的时候,关掉一个TOMCAT,另外两个TOMCAT都报错:

Java code

2011-1-11 10:00:01 org.apache.catalina.tribes.transport.nio.NioReplicationTask run
警告: IOException in replication worker, unable to drain channel. Probable cause: Keep alive socket closed[远程主机强迫关闭了一个现有的连接
。].
2011-1-11 10:00:01 org.apache.catalina.tribes.transport.nio.NioReplicationTask run
警告: IOException in replication worker, unable to drain channel. Probable cause: Keep alive socket closed[远程主机强迫关闭了一个现有的连接
。].
2011-1-11 10:00:03 org.apache.catalina.tribes.transport.nio.ParallelNioSender doLoop
警告: Member send is failing for:tcp://{127, 0, 0, 1}:4002 ; Setting to suspect and retrying.
2011-1-11 10:00:04 org.apache.catalina.tribes.group.interceptors.TcpFailureDetector memberDisappeared
信息: Received memberDisappeared[org.apache.catalina.tribes.membership.MemberImpl[tcp://{127, 0, 0, 1}:4002,{127, 0, 0, 1},4002, alive=55547
,id={8 22 68 30 60 98 74 7 -76 85 -98 -72 10 -26 98 -8 }, payload={}, command={}, domain={}, ]] message. Will verify.
2011-1-11 10:00:04 org.apache.catalina.tribes.transport.nio.ParallelNioSender doLoop
警告: Member send is failing for:tcp://{127, 0, 0, 1}:4002 ; Setting to suspect and retrying.
2011-1-11 10:00:05 org.apache.catalina.tribes.group.interceptors.TcpFailureDetector memberDisappeared
信息: Verification complete. Member disappeared[org.apache.catalina.tribes.membership.MemberImpl[tcp://{127, 0, 0, 1}:4002,{127, 0, 0, 1},40
02, alive=55547,id={8 22 68 30 60 98 74 7 -76 85 -98 -72 10 -26 98 -8 }, payload={}, command={}, domain={}, ]]
2011-1-11 10:00:05 org.apache.catalina.ha.tcp.SimpleTcpCluster memberDisappeared
信息: Received member disappeared:org.apache.catalina.tribes.membership.MemberImpl[tcp://{127, 0, 0, 1}:4002,{127, 0, 0, 1},4002, alive=5554
7,id={8 22 68 30 60 98 74 7 -76 85 -98 -72 10 -26 98 -8 }, payload={}, command={}, domain={}, ]
2011-1-11 10:00:05 org.apache.catalina.tribes.group.interceptors.TcpFailureDetector memberDisappeared
信息: Received memberDisappeared[org.apache.catalina.tribes.membership.MemberImpl[tcp://{127, 0, 0, 1}:4002,{127, 0, 0, 1},4002, alive=55547
,id={8 22 68 30 60 98 74 7 -76 85 -98 -72 10 -26 98 -8 }, payload={}, command={}, domain={}, ]] message. Will verify.
2011-1-11 10:00:05 org.apache.catalina.tribes.group.interceptors.TcpFailureDetector memberDisappeared
信息: Verification complete. Member already disappeared[org.apache.catalina.tribes.membership.MemberImpl[tcp://{127, 0, 0, 1}:4002,{127, 0,
0, 1},4002, alive=55547,id={8 22 68 30 60 98 74 7 -76 85 -98 -72 10 -26 98 -8 }, payload={}, command={}, domain={}, ]]
2011-1-11 10:00:05 org.apache.catalina.tribes.tipis.AbstractReplicatedMap heartbeat
严重: Unable to send AbstractReplicatedMap.ping message
org.apache.catalina.tribes.ChannelException: Send failed, attempt:2 max:1; Faulty members:tcp://{127, 0, 0, 1}:4002;
        at org.apache.catalina.tribes.transport.nio.ParallelNioSender.doLoop(ParallelNioSender.java:172)
        at org.apache.catalina.tribes.transport.nio.ParallelNioSender.sendMessage(ParallelNioSender.java:78)
        at org.apache.catalina.tribes.transport.nio.PooledParallelSender.sendMessage(PooledParallelSender.java:53)
        at org.apache.catalina.tribes.transport.ReplicationTransmitter.sendMessage(ReplicationTransmitter.java:80)
        at org.apache.catalina.tribes.group.ChannelCoordinator.sendMessage(ChannelCoordinator.java:78)
        at org.apache.catalina.tribes.group.ChannelInterceptorBase.sendMessage(Channel