配置tomcat集群出现了问题,请高手指点

    
jutoer
05-12-29 1 508

系统架构:1 apache+2 tomcat, 2个tomcat放置在不同的linux主机上。
启动后:两个tomcat爆出同样的信息:
Creating ClusterManager for context using class org.apache.catalina.cluster.session.DeltaManager
2005-12-28 14:43:03,214 [main] INFO session.DeltaManager (DeltaManager.java:627) - Starting clustering manager...:
2005-12-28 14:43:03,222 [main] INFO session.DeltaManager (DeltaManager.java:669) - Manager[], skipping state transfer. No members active in cluster group.

结果:session复制不能成功

cluster相关的配置如下:
<Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
managerClassName="org.apache.catalina.cluster.session.DeltaManager"
expireSessionsOnShutdown="false"
useDirtyFlag="true">

<Membership
className="org.apache.catalina.cluster.mcast.McastService"
mcastAddr="224.0.0.255"
mcastPort="45564"
mcastFrequency="500"
mcastDropTime="3000"
mcastBindAddress= "10.23.3.53"
/>

<Receiver
className="org.apache.catalina.cluster.tcp.ReplicationListener"
tcpListenAddress="10.23.3.53"
tcpListenPort="4001"
tcpSelectorTimeout="100"
tcpThreadCount="6"/>

<Sender
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
replicationMode="pooled"/>

<Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
filter=".*\.gif;.*\.js;.*\.jpg;.*\.htm;.*\.html;.*\.txt;"/>

<Deployer className="org.apache.catalina.cluster.deploy.FarmWarDeployer"
tempDir="/tmp/war-temp/"
deployDir="/tmp/war-deploy/"
watchDir="/tmp/war-listen/"
watchEnabled="false"/>
</Cluster>
我的判断: cluster应该是配置正确了,并且启动了;session 复制使用的 ip multicast没有成功,如果是这种情况应该如何检测和配置linux主机的ip multicast功能?
请高手指点,谢谢!

banq
2005-12-30 14:50

需要检测你的网络ip multicast是否开通,可查有关网管资料。