You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Mc210274 <ma...@customcall.com> on 2008/03/20 19:35:56 UTC
Tomcat Session Replication problem
Hello,
I have a problem with getting session replication to work in tomcat. I have
two tomat servers running on Windows Server 2003.
I have replication work to the point where the user sessions get replicated
when the tomcat servers startup. What i mean by this is that lets say
tomcat2 is running and a user connects to the application and browses
arround. Then i start tomcat1 and I can see in the session state gets
replicated from tomcat2 to tomcat1.
===============================================================================
Mar 20, 2008 12:54:18 PM org.apache.catalina.cluster.session.DeltaManager
waitForSendAllSessions
INFO: Manager [/webdav]; session state send at 3/20/08 12:54 PM received in
109 ms.
===============================================================================
If the user does not perform any additional actions in the application - so
the session state does not change - then I can stop the tomcat service on
tomcat2 and the session will fail over successfully to tomcat1. But I the
user clicks on any other links in the application and the session state
changes and I stop tomcat2 then then the user sees HTTP 500 errors.
By checking the log file catalina.log file I do not see any session
replications after the initial one when the tomcat server starts. And I
believe that is the problem I just cannot figure out what I am doing wrong.
Below you will find the cluster config of tomcat1 and tomcat2. If anybody
could help me with this problem that would be great:
Tomcat1:
===============================================================================
<Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
manager.className="org.apache.catalina.cluster.session.DeltaManager"
expireSessionsOnShutdown="false"
useDirtyFlag="false"
notifySessionListenersOnReplication="true">
<Membership
className="org.apache.catalina.cluster.mcast.McastService"
mcastAddr="228.16.140.1"
mcastPort="45564"
mcastFrequency="500"
mcastDropTime="30000"/>
<Receiver
className="org.apache.catalina.cluster.tcp.ReplicationListener"
tcpListenAddress="172.16.140.1"
tcpListenPort="9015"
tcpSelectorTimeout="100"
tcpThreadCount="16"/>
<Sender
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
replicationMode="pooled"
ackTimeout="15000"/>
<Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
filter=".*\.gif;.*\.js;.*\.css;.*\.png;.*\.jpeg;.*\.jpg;.*\.htm;.*\.html;.*\.txt;"
primaryIndicator="true"/>
<Valve
className="org.apache.catalina.cluster.session.JvmRouteBinderValve"
enabled="true"/>
<ClusterListener
className="org.apache.catalina.cluster.session.ClusterSessionListener" />
<ClusterListener
className="org.apache.catalina.cluster.session.JvmRouteSessionIDBinderListener"
/>
</Cluster>
===============================================================================
Tomcat2
===============================================================================
<Cluster className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
manager.className="org.apache.catalina.cluster.session.DeltaManager"
expireSessionsOnShutdown="false"
useDirtyFlag="false"
notifySessionListenersOnReplication="true">
<Membership
className="org.apache.catalina.cluster.mcast.McastService"
mcastAddr="228.16.140.1"
mcastPort="45564"
mcastFrequency="500"
mcastDropTime="30000"/>
<Receiver
className="org.apache.catalina.cluster.tcp.ReplicationListener"
tcpListenAddress="172.16.140.2"
tcpListenPort="9015"
tcpSelectorTimeout="100"
tcpThreadCount="16"/>
<Sender
className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
replicationMode="pooled"
ackTimeout="15000"/>
<Valve className="org.apache.catalina.cluster.tcp.ReplicationValve"
filter=".*\.gif;.*\.js;.*\.css;.*\.png;.*\.jpeg;.*\.jpg;.*\.htm;.*\.html;.*\.txt;"
primaryIndicator="true"/>
<Valve
className="org.apache.catalina.cluster.session.JvmRouteBinderValve"
enabled="true"/>
<ClusterListener
className="org.apache.catalina.cluster.session.ClusterSessionListener" />
<ClusterListener
className="org.apache.catalina.cluster.session.JvmRouteSessionIDBinderListener"
/>
</Cluster>
===============================================================================
--
View this message in context: http://www.nabble.com/Tomcat-Session-Replication-problem-tp16185824p16185824.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomcat Session Replication problem
Posted by Mc210274 <ma...@customcall.com>.
I forgot to state that I am running tomcat 5.5
--
View this message in context: http://www.nabble.com/Tomcat-Session-Replication-problem-tp16185824p16185828.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org