apache tomcat集群,求帮助

2014-09-01 19:38
最近想配一个apache负载均衡,在网上找了很多资料,照着上面一步一步配置下来,最后测试的时候还是由一个tomcat进行处理请求,请大神帮帮忙,qq:1040888918,拜谢

回复讨论(解决方案)

几台侍服主机?
我博客里有个文章,tomcat7的,不知道有用否
几台侍服主机?
看了您的播客,但是还没成功,可以发个实例我看看吗?跪求
我博客里有个文章,tomcat7的,不知道有用否


看了您的播客,但是还没成功,可以发个实例我看看吗?跪求
http://blog.csdn.net/jimmy609/article/details/14121747

只能给地址 ,遇到问题再解决吧 
可以看下本人整理的文档(免积分):http://download.csdn.net/detail/whatisma/6814699
http://blog.csdn.net/jimmy609/article/details/14121747

只能给地址 ,遇到问题再解决吧 

集群配置成功了,在session共享时出现了错误,网上有好多人遇到这个问题,但没找到解决方法。这个你知道问题出在哪吗?
Unable to receive message through TCP channel
java.lang.IllegalArgumentException: Session id mismatch, not executing the delta request
at org.apache.catalina.ha.session.DeltaRequest.execute(DeltaRequest.java:160)
at org.apache.catalina.ha.session.DeltaManager.handleSESSION_DELTA(DeltaManager.java:1350)
at org.apache.catalina.ha.session.DeltaManager.messageReceived(DeltaManager.java:1296)
at org.apache.catalina.ha.session.DeltaManager.messageDataReceived(DeltaManager.java:1014)
at org.apache.catalina.ha.session.ClusterSessionListener.messageReceived(ClusterSessionListener.java:92)
at org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster.java:940)
at org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster.java:921)
at org.apache.catalina.tribes.group.GroupChannel.messageReceived(GroupChannel.java:278)
at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
at org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.messageReceived(TcpFailureDetector.java:114)
at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
at org.apache.catalina.tribes.group.ChannelCoordinator.messageReceived(ChannelCoordinator.java:253)
at org.apache.catalina.tribes.transport.ReceiverBase.messageDataReceived(ReceiverBase.java:287)
at org.apache.catalina.tribes.transport.nio.NioReplicationTask.drainChannel(NioReplicationTask.java:212)
at org.apache.catalina.tribes.transport.nio.NioReplicationTask.run(NioReplicationTask.java:101)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
集群配置成功了,在session共享时出现了错误,网上有好多人遇到这个问题,但没找到解决方法。这个你知道问题出在哪吗?
Unable to receive message through TCP channel
java.lang.IllegalArgumentException: Session id mismatch, not executing the delta request
at org.apache.catalina.ha.session.DeltaRequest.execute(DeltaRequest.java:160)
at org.apache.catalina.ha.session.DeltaManager.handleSESSION_DELTA(DeltaManager.java:1350)
at org.apache.catalina.ha.session.DeltaManager.messageReceived(DeltaManager.java:1296)
at org.apache.catalina.ha.session.DeltaManager.messageDataReceived(DeltaManager.java:1014)
at org.apache.catalina.ha.session.ClusterSessionListener.messageReceived(ClusterSessionListener.java:92)
at org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster.java:940)
at org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster.java:921)
at org.apache.catalina.tribes.group.GroupChannel.messageReceived(GroupChannel.java:278)
at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
at org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.messageReceived(TcpFailureDetector.java:114)
at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
at org.apache.catalina.tribes.group.ChannelCoordinator.messageReceived(ChannelCoordinator.java:253)
at org.apache.catalina.tribes.transport.ReceiverBase.messageDataReceived(ReceiverBase.java:287)
at org.apache.catalina.tribes.transport.nio.NioReplicationTask.drainChannel(NioReplicationTask.java:212)
at org.apache.catalina.tribes.transport.nio.NioReplicationTask.run(NioReplicationTask.java:101)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
可以看下本人整理的文档(免积分):http://download.csdn.net/detail/whatisma/6814699

集群配置成功了,在session共享时出现了错误,网上有好多人遇到这个问题,但没找到解决方法。这个你知道问题出在哪吗? Unable to receive message through TCP channel
java.lang.IllegalArgumentException: Session id mismatch, not executing the delta request
at org.apache.catalina.ha.session.DeltaRequest.execute(DeltaRequest.java:160)
at org.apache.catalina.ha.session.DeltaManager.handleSESSION_DELTA(DeltaManager.java:1350)
at org.apache.catalina.ha.session.DeltaManager.messageReceived(DeltaManager.java:1296)
at org.apache.catalina.ha.session.DeltaManager.messageDataReceived(DeltaManager.java:1014)
at org.apache.catalina.ha.session.ClusterSessionListener.messageReceived(ClusterSessionListener.java:92)
at org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster.java:940)
at org.apache.catalina.ha.tcp.SimpleTcpCluster.messageReceived(SimpleTcpCluster.java:921)
at org.apache.catalina.tribes.group.GroupChannel.messageReceived(GroupChannel.java:278)
at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
at org.apache.catalina.tribes.group.interceptors.TcpFailureDetector.messageReceived(TcpFailureDetector.java:114)
at org.apache.catalina.tribes.group.ChannelInterceptorBase.messageReceived(ChannelInterceptorBase.java:84)
at org.apache.catalina.tribes.group.ChannelCoordinator.messageReceived(ChannelCoordinator.java:253)
at org.apache.catalina.tribes.transport.ReceiverBase.messageDataReceived(ReceiverBase.java:287)
at org.apache.catalina.tribes.transport.nio.NioReplicationTask.drainChannel(NioReplicationTask.java:212)
at org.apache.catalina.tribes.transport.nio.NioReplicationTask.run(NioReplicationTask.java:101)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:744)
web.xml 中这个配置加入没:<distributable/>
web.xml 中这个配置加入没:<distributable/>
加了

web.xml 中这个配置加入没:<distributable/>
加了

测试案例中不同的tomcat放的class类是一样的不?
楼主tomcat是啥版本的?


web.xml 中这个配置加入没:<distributable/>
加了

测试案例中不同的tomcat放的class类是一样的不?
一致的,现在问题基本解决了
楼主tomcat是啥版本的?
6.0.37,现在问题基本解决了,又遇到一个新问题,两个tomcat放在两台服务器上,上传的附件怎么处理呢?

楼主tomcat是啥版本的?
6.0.37,现在问题基本解决了,又遇到一个新问题,两个tomcat放在两台服务器上,上传的附件怎么处理呢?

6啊,够老得了,tomee都有1.6了,你还用6啊。附件处理不管是否集群,都应该单独放到服务器的本地路径,如果需要通过http访问,用apache配置个directory就行了,或者用sevlet等读附件也行;
怎么解决session 共享的?
怎么解决session 共享的?

我也想问是怎么解决的
撸主这么做不厚道