You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dhaval Jaiswal <dh...@via.com> on 2013/12/09 21:04:27 UTC

session replication issue

setting of session replication worked well. However, we do have threading
in some products. Like we are hitting the target API and getting response
from there servers. If will not get the response will hit them after some
time and in this case threading not handled by session replication because
of session timeout and shows below errors. After some time the server
starts getting
high load.


SEVERE: Unable to replicate backup key:
AE8095AB32A4DCA0AFD7117F6F32210C.t7 to
backup:org.apache.catalina.tribes.membership.MemberImpl[tcp://{-64, -88, 3,
12}:4001,{-64, -88, 3, 12},4001, alive=30639540,id={77 33 -17 95 -79 -80 79
2 -104 -102 -73 29 -100 39 -59 -111 }, payload={}, command={}, domain={},
]. Reason:Operation has timed out(60000 ms.).; Faulty members:tcp://{-64,
-88, 3, 12}:4001;
org.apache.catalina.tribes.ChannelException: Operation has timed out(60000
ms.).; Faulty members:tcp://{-64, -88, 3, 12}:4001;

How can i address above issue or just by increasing time out value. Please
explain me.





server.xml for session replicaiton.


   <Manager className="org.apache.catalina.ha.session.BackupManager"
expireSessionsOnShutdown="false"
                   notifyListenersOnReplication="true" mapSendOptions="6"/>
            <Channel
className="org.apache.catalina.tribes.group.GroupChannel">
             <Membership
className="org.apache.catalina.tribes.membership.McastService"
                        address="228.0.0.4"
                        port="45565"
                        frequency="500"
                        dropTime="30000"/>
             <Receiver
className="org.apache.catalina.tribes.transport.nio.NioReceiver"
                      address="auto"
                      port="5000"
                      selectorTimeout="5000"
                      timeout="60000"
                      maxThreads="6"/>
             <Sender
className="org.apache.catalina.tribes.transport.ReplicationTransmitter">
                  <Transport
className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"
timeout="60000" keepAliveCount="0"/>
             </Sender>
             <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.ThroughputInterceptor"/>

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

filter=".*\.gif|.*\.js|.*\.jpeg|.*\.jpg|.*\.png|.*\.htm|.*\.html|.*\.css|.*\.txt"/>
         <Valve
className="org.apache.catalina.ha.session.JvmRouteBinderValve"/>
       <ClusterListener
className="org.apache.catalina.ha.session.ClusterSessionListener"/>
       <ClusterListener
className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>

Re: session replication issue

Posted by Christopher Schultz <ch...@christopherschultz.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Dhaval,

On 12/9/13, 3:04 PM, Dhaval Jaiswal wrote:
> setting of session replication worked well. However, we do have
> threading in some products. Like we are hitting the target API and
> getting response from there servers. If will not get the response
> will hit them after some time and in this case threading not
> handled by session replication because of session timeout and shows
> below errors.

Can you explain this with a little more detail?

> After some time the server starts getting high load.

The high-load is caused by greater client load, or because of the
replication re-tried, etc.?

- -chris

> SEVERE: Unable to replicate backup key: 
> AE8095AB32A4DCA0AFD7117F6F32210C.t7 to 
> backup:org.apache.catalina.tribes.membership.MemberImpl[tcp://{-64,
> -88, 3, 12}:4001,{-64, -88, 3, 12},4001, alive=30639540,id={77 33
> -17 95 -79 -80 79 2 -104 -102 -73 29 -100 39 -59 -111 },
> payload={}, command={}, domain={}, ]. Reason:Operation has timed
> out(60000 ms.).; Faulty members:tcp://{-64, -88, 3, 12}:4001; 
> org.apache.catalina.tribes.ChannelException: Operation has timed
> out(60000 ms.).; Faulty members:tcp://{-64, -88, 3, 12}:4001;
> 
> How can i address above issue or just by increasing time out value.
> Please explain me.
> 
> 
> 
> 
> 
> server.xml for session replicaiton.
> 
> 
> <Manager className="org.apache.catalina.ha.session.BackupManager" 
> expireSessionsOnShutdown="false" 
> notifyListenersOnReplication="true" mapSendOptions="6"/> <Channel 
> className="org.apache.catalina.tribes.group.GroupChannel"> 
> <Membership 
> className="org.apache.catalina.tribes.membership.McastService" 
> address="228.0.0.4" port="45565" frequency="500" 
> dropTime="30000"/> <Receiver 
> className="org.apache.catalina.tribes.transport.nio.NioReceiver" 
> address="auto" port="5000" selectorTimeout="5000" timeout="60000" 
> maxThreads="6"/> <Sender 
> className="org.apache.catalina.tribes.transport.ReplicationTransmitter">
>
> 
<Transport
> className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"
>
> 
timeout="60000" keepAliveCount="0"/>
> </Sender> <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.ThroughputInterceptor"/>
>
>  </Channel> <Valve
> className="org.apache.catalina.ha.tcp.ReplicationValve"
> 
> filter=".*\.gif|.*\.js|.*\.jpeg|.*\.jpg|.*\.png|.*\.htm|.*\.html|.*\.css|.*\.txt"/>
>
> 
<Valve
> className="org.apache.catalina.ha.session.JvmRouteBinderValve"/> 
> <ClusterListener 
> className="org.apache.catalina.ha.session.ClusterSessionListener"/>
>
> 
<ClusterListener
> className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (Darwin)
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJSpjxUAAoJEBzwKT+lPKRYVGUQAKHEP5oRUq8SDKYzOSGMjdAd
cOt/L3Y5PbhB+m6RTmXYlhBvBFGUsIy1xfRhSbiUOVSaHAxVcWI96T0larG3YjYW
KkRVjzHKg96xe5FRQzRnJxp3tYqS8F+5LSnOvE9RpbOslC162qNy08cRp/nS5aQA
2JzlnZ6wuhRq80tjEb3chHWh5yPyHulcN4z8htNS/lwsIe3gyiPCErQUI6Grg1cO
d6NZEEsjYFksNkzbtteyGZbjzfztIvsIdWsK25AUA91Hqh3J7GRYbEm0ha48KVgV
f/aKVLOb1viZeZVCcGB79DhlOsOXJVwu854Qw6oaxi9VsSEb10W5SDpzqZKvRP11
To+7oI5xwdnJ+T5sw46Y0qTMqLI63ZzaeyaZlDqoc/K/RaBciqKomWXDVMpm2Vbm
9LC+QVDl5GY92sc2guEHmkGWqXL/csPSkAW2+Q9D0umcFgD/BRTDIiO4gvMXz7BD
qRFlnQuEU+zi03etHSw4eNL5BPE+3tX+MrnEideoxR4FeXfKP6FTm3yf7Zj9Pna3
Qod8QIhYacyJhxdwMSwx5qLvttfKuswV3DPx4GXxyWQzx94G+yCM6GGW5GyRHtzm
82wVT6bsTBhQ7fA73h8FofIUCpPmtl/ntN1RWjm3StcuNdGDZWOrdylqG2hHFwrk
L7T83sVpEg16Y5ypEslH
=RKD5
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org