apache2 + tomcat5 load balancer session 不能复制 请问怎样解决
tomcn 2004-06-26 11:09:34 现在有两台机器
1.linux9 apache2 tomcat5
2,linux9 tomcat5
tomcat5
server.xml
<Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
managerClassName="org.apache.catalina.cluster.session.DeltaManager"
expireSessionsOnShutdown="false"
useDirtyFlag="false">
<Membership
className="org.apache.catalina.cluster.mcast.McastService"
mcastAddr="228.0.0.4"
mcastPort="45564"
mcastFrequency="500"
mcastDropTime="3000"/>
<Receiver
className="org.apache.catalina.cluster.tcp.ReplicationListener"
tcpListenAddress="auto"
tcpListenPort="4002"
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;"/>
</Cluster>
apache2
tomcat5两台机器都已经配置好了。现在负载均衡测试已经成功。但是测试session 复制 的时候失败,在切换两台tomcat5的时候,session 发生丢失。
请大家帮忙解决。。。。