Hi All,

We have a clustered setup doing session replication between 2 hosts.  On
one of the hosts we are seeing a number of disconnects from the
replication thread.  

I have looked around on the web a bit and one thread I came across from
seemingly a tomcat dev implied that this wasn't much of an issue.  

(http://www.mail-archive.com/users@tomcat.apache.org/msg09303.html)

Nov 21, 2007 11:15:50 AM
org.apache.catalina.cluster.tcp.TcpReplicationThread run
SEVERE: TCP Worker thread in cluster caught 'java.io.IOException:
Connection reset by peer' closing channel
java.io.IOException: Connection reset by peer
        at sun.nio.ch.FileDispatcher.read0(Native Method)
        at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:21)
        at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:233)
        at sun.nio.ch.IOUtil.read(IOUtil.java:206)
        at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207)
        at
org.apache.catalina.cluster.tcp.TcpReplicationThread.drainChannel(TcpReplicationThread.java:125)
        at
org.apache.catalina.cluster.tcp.TcpReplicationThread.run(TcpReplicationThread.java:69)


We are seeing this behavior under next to no load.  I want to make sure
that this really isn't an issue.  And if it is an issue is there
anything we can do configuration wise to mitigate it?

This is our cluster configuration:


        <Cluster name="clusterfoo"

className="org.apache.catalina.cluster.tcp.SimpleTcpCluster"
                 doClusterLog="true"
                 clusterLogName="clusterlog"

managerClassName="org.apache.catalina.cluster.session.DeltaManager"
                 expireSessionsOnShutdown="false"
                 useDirtyFlag="true"
                 notifyListenersOnReplication="true">

            <Membership 

className="org.apache.catalina.cluster.mcast.McastService"
                mcastAddr="239.192.0.2"
                mcastPort="2000"
                mcastFrequency="500"
                mcastDropTime="3000"/>

            <Receiver 

className="org.apache.catalina.cluster.tcp.ReplicationListener"
                tcpListenAddress="auto"
                tcpListenPort="8300"
                tcpSelectorTimeout="100"
                tcpThreadCount="6"/>

            <Sender

className="org.apache.catalina.cluster.tcp.ReplicationTransmitter"
                replicationMode="pooled"
                ackTimeout="15000"
                waitForAck="true"
                keepAliveTimeout="-1"
                />

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

and our setup details:


Using JRE_HOME:       /usr/local/j2sdk1.4.2_04
Server version: Apache Tomcat/5.5.11
Server built:   Aug 22 2005 02:06:57
Server number:  5.5.11.0
OS Name:        Linux
OS Version:     2.6.9-34.ELsmp
Architecture:   i386
JVM Version:    1.4.2_04-b05
JVM Vendor:     Sun Microsystems Inc.

Cheers,

Danny


---------------------------------------------------------------------
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