Hi!

I have both tomcat instances on the same machine, and tcpListenPort are
different on both server.xml: instance 1 setuped with 9016 and instance 2
with 9017.

When I stop one of tomcats, the other is notified properly with the
following message:

12-Feb-2008 11:19:57 org.apache.catalina.cluster.tcp.SimpleTcpCluster
memberDisappeared
INFO: Received member
disappeared:org.apache.catalina.cluster.mcast.McastMember
[tcp://127.0.0.1:9017,catalina,127.0.0.1,9017,
alive=495495]
12-Feb-2008 11:19:57 org.apache.catalina.cluster.util.FastQueue remove
INFO: FastQueue.remove: Remove aborted although queue enabled

However, if you stop one of tomcats, the sessions hanging in that tomcat,
not switch to the other,
and we need to re-execute login in the application.

Best regards

On Feb 12, 2008 9:03 PM, David Brown <[EMAIL PROTECTED]> wrote:

> Dumb question: is everything supposed to be defined on the same IP
> (loopback?) and port?
>
> Andrew Hole wrote ..
> > Hello guys!
> >
> > I've the following configuration on server.xml for two different
> instances
> > of tomcat (on the same server). BUT, i don't know why, session
> replication
> > doesn't work.
> > Could you help me to find why?
> >
> > Thanks
> >
> > Instance 1:
> >
> > <Cluster                  className="
> > org.apache.catalina.cluster.tcp.SimpleTcpCluster"
> >                                        doClusterLog="true"
> >                                      clusterLogName="clusterlog"
> >                                   manager.className="
> > org.apache.catalina.cluster.session.DeltaManager"
> >                    manager.expireSessionsOnShutdown="false"
> >                manager.notifyListenersOnReplication="false"
> >         manager.notifySessionListenersOnReplication="false"
> >                             manager.sendAllSessions="false"
> >                         manager.sendAllSessionsSize="500"
> >                     manager.sendAllSessionsWaitTime="20">
> >                   <Membership
> >                                           className="
> > org.apache.catalina.cluster.mcast.McastService"
> >                                           mcastAddr="228.0.0.4"
> >                                    mcastBindAddress="127.0.0.1"
> >                                  mcastClusterDomain="d10"
> >                                           mcastPort="45564"
> >                                      mcastFrequency="1000"
> >                                       mcastDropTime="30000"
> >                                     recoveryCounter="10"
> >                                     recoveryEnabled="true"
> >                                   recoverySleepTime="5000"/>
> >                   <Receiver
> >                                            className="
> > org.apache.catalina.cluster.tcp.ReplicationListener"
> >                                     tcpListenAddress="auto"
> >                                        tcpListenPort="9016"
> >                                   tcpSelectorTimeout="100"
> >                                       tcpThreadCount="6"/>
> >                   <Sender
> >                                            className="
> > org.apache.catalina.cluster.tcp.ReplicationTransmitter"
> >                                      replicationMode="fastasyncqueue"
> >                                       recoverTimeout="5000"
> >                                       recoverCounter="6"
> >                         doTransmitterProcessingStats="true"
> >                                    doProcessingStats="true"
> >                                       doWaitAckStats="true"
> >                                        queueTimeWait="true"
> >                                         queueDoStats="true"
> >                                       queueCheckLock="true"
> >                                           ackTimeout="15000"
> >                                           waitForAck="true"
> >                                     keepAliveTimeout="80000"
> >                             keepAliveMaxRequestCount="-1"/>
> >                   <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" />
> >                   <Deployer                className="
> > org.apache.catalina.cluster.deploy.FarmWarDeployer"
> >                                             tempDir="${catalina.base
> > }/war-temp"
> >                                           deployDir="${catalina.base
> > }/war-deploy/"
> >                                            watchDir="${catalina.base
> > }/war-listen/"
> >                                        watchEnabled="true"/>
> >                   </Cluster>
> >
> >
> > Instance 2
> >
> > <Cluster                  className="
> > org.apache.catalina.cluster.tcp.SimpleTcpCluster"
> >                                        doClusterLog="true"
> >                                      clusterLogName="clusterlog"
> >                                   manager.className="
> > org.apache.catalina.cluster.session.DeltaManager"
> >                    manager.expireSessionsOnShutdown="false"
> >                manager.notifyListenersOnReplication="false"
> >         manager.notifySessionListenersOnReplication="false"
> >                             manager.sendAllSessions="false"
> >                         manager.sendAllSessionsSize="500"
> >                     manager.sendAllSessionsWaitTime="20">
> >                   <Membership
> >                                           className="
> > org.apache.catalina.cluster.mcast.McastService"
> >                                           mcastAddr="228.0.0.4"
> >                                    mcastBindAddress="127.0.0.1"
> >                                  mcastClusterDomain="d10"
> >                                           mcastPort="45564"
> >                                      mcastFrequency="1000"
> >                                       mcastDropTime="30000"
> >                                     recoveryCounter="10"
> >                                     recoveryEnabled="true"
> >                                   recoverySleepTime="5000"/>
> >                   <Receiver
> >                                            className="
> > org.apache.catalina.cluster.tcp.ReplicationListener"
> >                                     tcpListenAddress="auto"
> >                                        tcpListenPort="9017"
> >                                   tcpSelectorTimeout="100"
> >                                       tcpThreadCount="6"/>
> >                   <Sender
> >                                            className="
> > org.apache.catalina.cluster.tcp.ReplicationTransmitter"
> >                                      replicationMode="fastasyncqueue"
> >                                       recoverTimeout="5000"
> >                                       recoverCounter="6"
> >                         doTransmitterProcessingStats="true"
> >                                    doProcessingStats="true"
> >                                       doWaitAckStats="true"
> >                                        queueTimeWait="true"
> >                                         queueDoStats="true"
> >                                       queueCheckLock="true"
> >                                           ackTimeout="15000"
> >                                           waitForAck="true"
> >                                     keepAliveTimeout="80000"
> >                             keepAliveMaxRequestCount="-1"/>
> >                   <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" />
> >                   <Deployer                className="
> > org.apache.catalina.cluster.deploy.FarmWarDeployer"
> >                                             tempDir="${catalina.base
> > }/war-temp"
> >                                           deployDir="${catalina.base
> > }/war-deploy/"
> >                                            watchDir="${catalina.base
> > }/war-listen/"
> >                                        watchEnabled="true"/>
> >                   </Cluster>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to