Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 25150 invoked from network); 25 Oct 2005 17:16:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Oct 2005 17:16:42 -0000 Received: (qmail 10934 invoked by uid 500); 25 Oct 2005 17:15:34 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 10905 invoked by uid 500); 25 Oct 2005 17:15:34 -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 10882 invoked by uid 99); 25 Oct 2005 17:15:34 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Oct 2005 10:15:34 -0700 X-ASF-Spam-Status: No, hits=1.8 required=10.0 tests=HTML_MESSAGE,PLING_PLING,RCVD_IN_BL_SPAMCOP_NET,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of cnwangli@gmail.com designates 72.14.204.204 as permitted sender) Received: from [72.14.204.204] (HELO qproxy.gmail.com) (72.14.204.204) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Oct 2005 10:15:26 -0700 Received: by qproxy.gmail.com with SMTP id f11so546530qba for ; Tue, 25 Oct 2005 10:15:06 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=aI9vWKAcYJgJ12x1lzyZoetMB60WhShKItWh8qjuD304MRKVGkKC6X9fDpSP7CJwQBxPHqbPpm/N0Wq+n72tsol3/ArCJgyFkxXJRif4/CQQ+dnjY17CM2L9J+r8zPRZPQ7CJeh7R9XZ1cfrwZwVIK3X4dv2qjDpKGvL3E55qus= Received: by 10.65.156.17 with SMTP id i17mr1593612qbo; Tue, 25 Oct 2005 10:15:06 -0700 (PDT) Received: by 10.65.139.10 with HTTP; Tue, 25 Oct 2005 10:15:06 -0700 (PDT) Message-ID: Date: Tue, 25 Oct 2005 13:15:06 -0400 From: michelle wang To: Tomcat Users List Subject: Again Please Help!!! SimpleTCPCluster, No session state received time out 60s during start up MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_6239_5445175.1130260506254" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_6239_5445175.1130260506254 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline ---------- Forwarded message ---------- From: michelle wang Date: Oct 24, 2005 8:49 PM Subject: Please Help!!! No session state received, time out 60s during tomcat start up To: users@tomcat.apache.org I'm running 2 tomcat (5.0.18) instances with Simple TCP Clustering on the same Solaris 9 server, there are multiple web applications need to be clustered. When starting up the secondary tomcat, there is only one webapp receives the session state while all others wait 60 seconds and time out. The strange thing is which web app can successfully receive the session state seems to be random, I have seen different web app reports receiving session state, but never more than one of them at one time . Once tomcat is started, the session replication just works fine even for those application reports time out during startup. I can always kill the tomcat which is serving the user session, the other tomcat takes control without losing any user input. It's very annoying that because each instance time out 60s the secondary tomcat always takes a few minutes to start up. I have been lookin= g into this for a whole week without any clue :( Any help is appreciated All web app needs to be clustered has in their web.xml Here's the cluster configuration in server.xml " ##same mcastAddr on the other tomcat mcastPort=3D"45565" ##same mcastPort on the other tomcat mcastFrequency=3D"500" mcastDropTime=3D"3000" tcpThreadCount=3D"6" tcpListenAddress=3D"auto" tcpListenPort=3D"4001" ##Using port 4002 on the other tomcat since both instance on the same server tcpSelectorTimeout=3D"100" printToScreen=3D"false" expireSessionsOnShutdown=3D"false" useDirtyFlag=3D"true" replicationMode=3D"pooled" /> The following is the start up log from catalina.out ... ( following seems telling multicast works fine, tomcat joins the cluste= r member ship ) INFO: Cluster is about to start Oct 24, 2005 5:01:57 PM org.apache.catalina.cluster.tcp.SimpleTcpClustersta= rt INFO: Sleeping for 2000 secs to establish cluster membership Oct 24, 2005 5:01:57 PM org.apache.catalina.cluster.tcp.SimpleTcpClustermemberAdded INFO: Replication member added:org.apache.catalina.cluster.mcast.McastMembe= r [tcp://206.47.63.195:4001,206.47.63.195,4001, alive=3D38841] .... ( following is a webapp /comstg which fails to receive session state i= n 60s) INFO: Processing Context configuration file URL file:/app/ufs2/UfsServer/tomcat/conf/Catalina/localhost/comstg.xml Oct 24, 2005 5:02:09 PM org.apache.catalina.cluster.session.DeltaManagersta= rt INFO: Starting clustering manager...:/comstg Oct 24, 2005 5:02:09 PM org.apache.catalina.cluster.tcp.SimpleTcpClustermessageDataReceived WARNING: Context manager doesn't exist:/comqa Oct 24, 2005 5:02:09 PM org.apache.catalina.cluster.session.DeltaManagersta= rt WARNING: Manager[/comstg], requesting session state from org.apache.catalina.cluster.mcast.McastMember[ tcp://206.47.63.195:4001,206.47.63.195,4001, alive=3D38841]. This operation will timeout if no session state has been received within 60 seconds Oct 24, 2005 5:03:10 PM org.apache.catalina.cluster.session.DeltaManagersta= rt SEVERE: Manager[/comstg], No session state received, timing out. ... ( following is a webapp /comqa which successfully receives session state in 106ms) INFO: Processing Context configuration file URL file:/app/ufs2/UfsServer/tomcat/conf/Catalina/localhost/comqa.xml Oct 24, 2005 5:03:17 PM org.apache.catalina.cluster.session.DeltaManagersta= rt INFO: Starting clustering manager...:/comqa Oct 24, 2005 5:03:17 PM org.apache.catalina.cluster.session.DeltaManagersta= rt WARNING: Manager[/comqa], requesting session state from org.apache.catalina.cluster.mcast.McastMember[tcp://206.47.63.195:4001,206.= 47.63.195,4001, alive=3D38841]. This operation will timeout if no session state has been received within 60 seconds Oct 24, 2005 5:03:17 PM org.apache.catalina.cluster.session.DeltaManagersta= rt INFO: Manager[/comqa], session state received in 106 ms. ------=_Part_6239_5445175.1130260506254--