Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3AC67D50D for ; Mon, 24 Sep 2012 08:58:58 +0000 (UTC) Received: (qmail 20230 invoked by uid 500); 24 Sep 2012 08:58:51 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 19712 invoked by uid 500); 24 Sep 2012 08:58:45 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 18389 invoked by uid 99); 24 Sep 2012 08:58:42 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Sep 2012 08:58:42 +0000 Received: from localhost (HELO mail-ie0-f173.google.com) (127.0.0.1) (smtp-auth username kfujino, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Sep 2012 08:58:40 +0000 Received: by iea17 with SMTP id 17so6997978iea.18 for ; Mon, 24 Sep 2012 01:58:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.0.193 with SMTP id 1mr4680302igg.0.1348477119610; Mon, 24 Sep 2012 01:58:39 -0700 (PDT) Received: by 10.64.137.167 with HTTP; Mon, 24 Sep 2012 01:58:39 -0700 (PDT) In-Reply-To: References: Date: Mon, 24 Sep 2012 17:58:39 +0900 Message-ID: Subject: Re: Static Membership Session Replication From: Keiichi Fujino To: Tomcat Users List Content-Type: text/plain; charset=ISO-8859-1 Hi According to this log, it does not seem to able to register for membership. In your configuration, TcpFailureDetector behaves as an administrator of a membership. Therefore, TcpFailureDetector#performBasicCheck logs following messages. [WARNING: Member added, even though we werent notified:*member*] or [INFO: Suspect member, confirmed alive.] However, these message does not exist in log. It maybe remains in TcpFailureDetector#addSuspects. Regarding your configuration. *tomcatone server.xml* Is it not address="localhost" but address="tomcatone" ? *tomcat2 server.xml* Is it not address="localhost" but address="tomcattwo" ? 2012/9/21 John Rellis : > Hey, > > Really hoping somebody can help. I am attempting a cluster with session > replication. Tomcat 7, apache with mod_jk. The cluster and load balancing > seems to be ok but I cannot get session replication working. I am using > static membership as I am testing this on EC2. The load balancer and 2 > workers are on individual servers. > > I have two tomcat instances, tomcatone and tomcattwo. When starting up > tomcattwo I saw this ONCE on tomcattwo and never again : > > *INFO: Manager [localhost#/ClusterApp], requesting session state from > org.apache.catalina.tribes.membership.MemberImpl[tcp://tomcatone:4110,tomcatone,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.* > *Sep 20, 2012 3:19:45 PM org.apache.catalina.ha.session.DeltaManager > waitForSendAllSessions* > *SEVERE: Manager [localhost#/ClusterApp]: No session state send at 9/20/12 > 3:18 PM received, timing out after 60,109 ms.* > > The failure was due to firewall I think. Now the firewall is open and I > haven't seen this again. Weird. Right now it doesn't look like the nodes > are trying to communicate at all. > > Many thanks in advance! > > Server.xml's and logs : > > *tomcatone server.xml* > * > * > > > > > > > SSLEngine="on" /> > > > > className="org.apache.catalina.core.JreMemoryLeakPreventionListener" /> > className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> > className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" /> > > > > > type="org.apache.catalina.UserDatabase" > description="User database that can be updated and saved" > factory="org.apache.catalina.users.MemoryUserDatabaseFactory" > pathname="conf/tomcat-users.xml" /> > > > > > > > > > > > connectionTimeout="20000" > redirectPort="8443" /> > > > > > > > > > > > > > > > > > channelSendOptions="8" channelStartOptions="3"> > > > expireSessionsOnShutdown="false" > > notifyListenersOnReplication="true"/> > > > > > className="org.apache.catalina.tribes.transport.nio.NioReceiver" > > address="localhost" port="4110" autoBind="100" > > selectorTimeout="5000" maxThreads="6"/> > > > className="org.apache.catalina.tribes.transport.ReplicationTransmitter"> > className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/> > > > > className="org.apache.catalina.tribes.group.interceptors.TcpPingInterceptor"/> > className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/> > className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/> > > className="org.apache.catalina.tribes.group.interceptors.StaticMembershipInterceptor"> > > className="org.apache.catalina.tribes.membership.StaticMember" > > > port="4210" > host="tomcattwo" > domain="delta-static" > > uniqueId="{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,2}" > /> > > > > > filter=""/> > > className="org.apache.catalina.ha.session.JvmRouteBinderValve"/> > > className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/> > > className="org.apache.catalina.ha.session.ClusterSessionListener"/> > > > > > > > > resourceName="UserDatabase"/> > > > unpackWARs="true" autoDeploy="true"> > > > > > > directory="logs" > prefix="localhost_access_log." suffix=".txt" > pattern="%h %l %u %t "%r" %s %b" /> > > > > > > > > *tomcat2 server.xml* > > > > > > > SSLEngine="on" /> > > > > className="org.apache.catalina.core.JreMemoryLeakPreventionListener" /> > className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /> > className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" /> > > > > > type="org.apache.catalina.UserDatabase" > description="User database that can be updated and saved" > factory="org.apache.catalina.users.MemoryUserDatabaseFactory" > pathname="conf/tomcat-users.xml" /> > > > > > > > > > > > connectionTimeout="20000" > redirectPort="8443" /> > > > > > > > > > > > > > > > > > channelSendOptions="8" channelStartOptions="3"> > > > expireSessionsOnShutdown="false" > > notifyListenersOnReplication="true"/> > > > > > className="org.apache.catalina.tribes.transport.nio.NioReceiver" > > address="localhost" port="4210" autoBind="100" > > selectorTimeout="5000" maxThreads="6"/> > > > className="org.apache.catalina.tribes.transport.ReplicationTransmitter"> > className="org.apache.catalina.tribes.transport.nio.PooledParallelSender"/> > > > > className="org.apache.catalina.tribes.group.interceptors.TcpPingInterceptor"/> > className="org.apache.catalina.tribes.group.interceptors.TcpFailureDetector"/> > className="org.apache.catalina.tribes.group.interceptors.MessageDispatch15Interceptor"/> > > className="org.apache.catalina.tribes.group.interceptors.StaticMembershipInterceptor"> > > className="org.apache.catalina.tribes.membership.StaticMember" > port="4110" > host="tomcatone" > > > domain="delta-static" > uniqueId="{1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1}" > /> > > > > > > > > > className="org.apache.catalina.ha.session.JvmRouteSessionIDBinderListener"/> > > className="org.apache.catalina.ha.session.ClusterSessionListener"/> > > > > > > > > resourceName="UserDatabase"/> > > > unpackWARs="true" autoDeploy="true"> > > > > > > directory="logs" > prefix="localhost_access_log." suffix=".txt" > pattern="%h %l %u %t "%r" %s %b" /> > > > > > > > > > *Cluster Start Node 1* > * > * > INFO: Cluster is about to start > Sep 20, 2012 5:13:38 PM org.apache.catalina.tribes.transport.ReceiverBase > bind > INFO: Receiver Server Socket bound to:localhost/127.0.0.1:4110 > Sep 20, 2012 5:13:39 PM org.apache.catalina.startup.HostConfig deployWAR > INFO: Deploying web application archive > /usr/local/apache-tomcat-7.0.30/webapps/ClusterApp.war > Sep 20, 2012 5:14:49 PM org.apache.catalina.ha.session.DeltaManager > startInternal > INFO: Register manager localhost#/ClusterApp to cluster element Engine with > name Catalina > Sep 20, 2012 5:14:49 PM org.apache.catalina.ha.session.DeltaManager > startInternal > INFO: Starting clustering manager at localhost#/ClusterApp > Sep 20, 2012 5:14:49 PM org.apache.catalina.ha.session.DeltaManager > getAllClusterSessions > INFO: Manager [localhost#/ClusterApp]: skipping state transfer. No members > active in cluster group. > Sep 20, 2012 5:14:49 PM org.apache.catalina.startup.HostConfig > deployDirectory > INFO: Deploying web application directory > /usr/local/apache-tomcat-7.0.30/webapps/examples > Sep 20, 2012 5:14:50 PM org.apache.catalina.startup.HostConfig > deployDirectory > INFO: Deploying web application directory > /usr/local/apache-tomcat-7.0.30/webapps/docs > Sep 20, 2012 5:14:50 PM org.apache.catalina.startup.HostConfig > deployDirectory > INFO: Deploying web application directory > /usr/local/apache-tomcat-7.0.30/webapps/host-manager > Sep 20, 2012 5:14:50 PM org.apache.catalina.startup.HostConfig > deployDirectory > INFO: Deploying web application directory > /usr/local/apache-tomcat-7.0.30/webapps/ROOT > Sep 20, 2012 5:14:50 PM org.apache.catalina.startup.HostConfig > deployDirectory > INFO: Deploying web application directory > /usr/local/apache-tomcat-7.0.30/webapps/manager > Sep 20, 2012 5:14:51 PM org.apache.catalina.ha.session.JvmRouteBinderValve > startInternal > INFO: JvmRouteBinderValve started > Sep 20, 2012 5:14:51 PM org.apache.coyote.AbstractProtocol start > INFO: Starting ProtocolHandler ["http-bio-8080"] > Sep 20, 2012 5:14:51 PM org.apache.coyote.AbstractProtocol start > INFO: Starting ProtocolHandler ["ajp-bio-8009"] > Sep 20, 2012 5:14:52 PM org.apache.catalina.startup.Catalina start > INFO: Server startup in 73236 ms > > * > * > > > *Cluster Start Node 2* > * > * > INFO: Cluster is about to start > Sep 20, 2012 5:16:45 PM org.apache.catalina.tribes.transport.ReceiverBase > bind > INFO: Receiver Server Socket bound to:localhost/127.0.0.1:4210 > Sep 20, 2012 5:16:45 PM org.apache.catalina.startup.HostConfig deployWAR > INFO: Deploying web application archive > /usr/local/apache-tomcat-7.0.30/webapps/ClusterApp.war > Sep 20, 2012 5:17:53 PM org.apache.catalina.ha.session.DeltaManager > startInternal > INFO: Register manager localhost#/ClusterApp to cluster element Engine with > name Catalina > Sep 20, 2012 5:17:53 PM org.apache.catalina.ha.session.DeltaManager > startInternal > INFO: Starting clustering manager at localhost#/ClusterApp > Sep 20, 2012 5:17:53 PM org.apache.catalina.ha.session.DeltaManager > getAllClusterSessions > *INFO: Manager [localhost#/ClusterApp]: skipping state transfer. No members > active in cluster group.* > Sep 20, 2012 5:17:53 PM org.apache.catalina.startup.HostConfig > deployDirectory > INFO: Deploying web application directory > /usr/local/apache-tomcat-7.0.30/webapps/examples > Sep 20, 2012 5:17:54 PM org.apache.catalina.startup.HostConfig > deployDirectory > INFO: Deploying web application directory > /usr/local/apache-tomcat-7.0.30/webapps/docs > Sep 20, 2012 5:17:54 PM org.apache.catalina.startup.HostConfig > deployDirectory > INFO: Deploying web application directory > /usr/local/apache-tomcat-7.0.30/webapps/host-manager > Sep 20, 2012 5:17:55 PM org.apache.catalina.startup.HostConfig > deployDirectory > INFO: Deploying web application directory > /usr/local/apache-tomcat-7.0.30/webapps/ROOT > Sep 20, 2012 5:17:55 PM org.apache.catalina.startup.HostConfig > deployDirectory > INFO: Deploying web application directory > /usr/local/apache-tomcat-7.0.30/webapps/manager > Sep 20, 2012 5:17:55 PM org.apache.catalina.ha.session.JvmRouteBinderValve > startInternal > INFO: JvmRouteBinderValve started > Sep 20, 2012 5:17:55 PM org.apache.coyote.AbstractProtocol start > INFO: Starting ProtocolHandler ["http-bio-8080"] > Sep 20, 2012 5:17:55 PM org.apache.coyote.AbstractProtocol start > INFO: Starting ProtocolHandler ["ajp-bio-8009"] > Sep 20, 2012 5:17:56 PM org.apache.catalina.startup.Catalina start > INFO: Server startup in 70803 ms > > > > > -- > John Rellis -- Keiichi.Fujino --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org