tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Rellis <john.d.rel...@gmail.com>
Subject Strange Faulty Member Exception
Date Tue, 02 Oct 2012 15:15:08 GMT
Hi,

I have a static membership cluster set up on EC2 with tomcat 7.  There's
two tomcat instances in the cluster on remote machines.

When instance one is started, I start up instance two.  They seem to
register with each other


*Tomcat one (111.111.111.111)*
Oct 2, 2012 2:51:37 PM org.apache.catalina.ha.tcp.SimpleTcpCluster
memberAdded
INFO: Replication member
added:org.apache.catalina.tribes.membership.MemberImpl[tcp://
222.222.222.222:4210,222.222.222.222,4210, alive=0, securePort=-1, UDP
Port=-1, id={1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 }, payload={},
command={}, domain={100 101 108 116 97 45 115 116 97 ...(12)}, ]


*Tomcat two (222.222.222.222)*
INFO: Manager [localhost#/ClusterApp], requesting session state from
org.apache.catalina.tribes.membership.MemberImpl[tcp://111.111.111.111:4110,111.111.111.111,4110,
alive=0, securePort=-1, UDP Port=-1, id={1 2 3 4 5 6 7 8 9 10 11 12 13 14
15 1 }, payload={}, command={}, domain={100 101 108 116 97 45 115 116 97
...(12)}, ]. This operation will timeout if no session state has been
received within 60 seconds.

*I then get this strange error on Tomcat one :*

 Replication member
added:org.apache.catalina.tribes.membership.MemberImpl[tcp://
222.222.222.222:4210,222.222.222.222,4210, alive=0, securePort=-1, UDP
Port=-1, id={1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 }, payload={},
command={}, domain={100 101 108 116 97 45 115 116 97 ...(12)}, ]
Oct 2, 2012 2:45:58 PM org.apache.catalina.ha.tcp.SimpleTcpCluster send
SEVERE: Unable to send message through cluster sender.
org.apache.catalina.tribes.ChannelException: Send failed, attempt:2
max:1; *Faulty
members:tcp://{0, 0, 0, 0}:4210;*
        at
org.apache.catalina.tribes.transport.nio.ParallelNioSender.doLoop(ParallelNioSender.java:187)
        at
org.apache.catalina.tribes.transport.nio.ParallelNioSender.sendMessage(ParallelNioSender.java:89)

So it says *Faulty members:tcp://{0, 0, 0, 0}:4210;*
*
*
This looks a little strange to me, particularly the 0,0,0,0.  Any thoughts
on why I would be getting this exception???  Session replication isn't very
reliable at the moment.

*Tomcat One Cluster Config :*
*
*
        <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"
channelSendOptions="8" channelStartOptions="3">

          <Manager className="org.apache.catalina.ha.session.DeltaManager"

          expireSessionsOnShutdown="false"

          notifyListenersOnReplication="true"/>


        <Channel className="org.apache.catalina.tribes.group.GroupChannel">

                <Receiver
className="org.apache.catalina.tribes.transport.nio.NioReceiver"

                        address="0.0.0.0" port="4110" autoBind="0"

                        selectorTimeout="5000" maxThreads="6"/>


                <Sender
className="org.apache.catalina.tribes.transport.ReplicationTransmitter">
                        <Transport
className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/>
                </Sender>


                <Interceptor
className="org.apache.catalina.tribes.group.interceptors.TcpPingInterceptor"/>
                <Interceptor
className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>
                <Interceptor
className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/>

                <Interceptor
className="org.apache.catalina.tribes.group.interceptors.StaticMembershipInterceptor">
                        <Member
className="org.apache.catalina.tribes.membership.StaticMember"
                                port="4210"
                                host="222.222.222.222"
                                domain="delta-static"

uniqueId="{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,2}"
                        />
                </Interceptor>

        </Channel>

        <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
filter=""/>

        <Valve
className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>

        <ClusterListener
className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>

        <ClusterListener
className="org.apache.catalina.ha.session.ClusterSessionListener"/>

      </Cluster>

*
*
*Tomcat Two Cluster Config*

         <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"
channelSendOptions="8" channelStartOptions="3">

          <Manager className="org.apache.catalina.ha.session.DeltaManager"

          expireSessionsOnShutdown="false"

          notifyListenersOnReplication="true"/>


        <Channel className="org.apache.catalina.tribes.group.GroupChannel">

                <Receiver
className="org.apache.catalina.tribes.transport.nio.NioReceiver"

                        address="0.0.0.0" port="4210" autoBind="0"

                        selectorTimeout="5000" maxThreads="6"/>


                <Sender
className="org.apache.catalina.tribes.transport.ReplicationTransmitter">
                        <Transport
className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/>
                </Sender>


                <Interceptor
className="org.apache.catalina.tribes.group.interceptors.TcpPingInterceptor"/>
                <Interceptor
className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/>
                <Interceptor
className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/>

                <Interceptor
className="org.apache.catalina.tribes.group.interceptors.StaticMembershipInterceptor">
                        <Member
className="org.apache.catalina.tribes.membership.StaticMember"
                                port="4110"
                                host="111.111.111.111"
                                domain="delta-static"

uniqueId="{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1}"
                        />
                </Interceptor>

        </Channel>

        <Valve className="org.apache.catalina.ha.tcp.ReplicationValve"
filter=""/>

        <Valve
className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>

        <ClusterListener
className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>

        <ClusterListener
className="org.apache.catalina.ha.session.ClusterSessionListener"/>

      </Cluster>


-- 
John Rellis

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message