Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 8230 invoked from network); 27 Oct 2006 02:48:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Oct 2006 02:48:26 -0000 Received: (qmail 85271 invoked by uid 500); 27 Oct 2006 02:48:24 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 85250 invoked by uid 500); 27 Oct 2006 02:48:24 -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 85239 invoked by uid 99); 27 Oct 2006 02:48:24 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Oct 2006 19:48:24 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_POST X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [202.175.3.59] (HELO smtp1.macau.ctm.net) (202.175.3.59) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Oct 2006 19:48:11 -0700 Received: from smtp1.macau.ctm.net (localhost [127.0.0.1]) by localhost.macau.ctm.net (Postfix) with ESMTP id 41F421A6459 for ; Fri, 27 Oct 2006 10:47:45 +0800 (HKT) Received: from AnsonNoteBook (n19z136l2.broadband.ctm.net [202.86.136.2]) by smtp1.macau.ctm.net (Postfix) with SMTP id 570A51A6442 for ; Fri, 27 Oct 2006 10:47:41 +0800 (HKT) Message-ID: <000801c6f972$46d94570$2101a8c0@AnsonNoteBook> From: "hotszkin" To: "Tomcat Users List" References: <002301c6f7ec$d9714720$2101a8c0@AnsonNoteBook> <26CC0F9A-2E7A-4475-A8FF-DC66A9FFFDC1@objektpark.de> <002e01c6f8d4$060bf540$fa00a8c0@mjcmisanson> <9CB3B635-C0A4-4543-A177-182EBDAEC1CC@objektpark.de> Subject: Re: Tomcat Cluster problem. skipping state transfer. No members active in cluster group Date: Fri, 27 Oct 2006 10:47:43 +0800 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2962 X-Virus-Checked: Checked by ClamAV on apache.org It works, thank you very much Peter. I just can't figure why? It's tricky. Anyway, it works. HoTszKin ----- Original Message ----- From: "Peter Rossbach" To: "Tomcat Users List" Sent: Friday, October 27, 2006 12:41 AM Subject: Re: Tomcat Cluster problem. skipping state transfer. No members active in cluster group Test without mcastBindAddress again! Peter Am 26.10.2006 um 09:54 schrieb hotszkin: > Thanks for your reply. > > I have added the multcast route to the routing table with the > following command "route add -host 228.0.0.4 dev -eth1" and restart > tomcat on both PCs. > Tomcat still can't discover each others. > > Here is the routing tables > > Script started on Thu 26 Oct 2006 03:42:40 PM CST > [root@mysqld2 bin]# route > Kernel IP routing table > Destination Gateway Genmask Flags Metric Ref > Use Iface > 228.0.0.4 * 255.255.255.255 UH 0 > 0 0 eth1 > 192.168.5.0 * 255.255.255.0 U 0 > 0 0 eth1 > 10.0.0.0 * 255.255.255.0 U 0 > 0 0 eth0 > 169.254.0.0 * 255.255.0.0 U 0 > 0 0 eth1 > 127.0.0.0 * 255.0.0.0 U 0 > 0 0 lo > [root@mysqld2 bin]# exit > > Script done on Thu 26 Oct 2006 03:42:43 PM CST > > > > Any suggestion? > > > > > HoTszKin > > > > > > ----- Original Message ----- From: "Peter Rossbach" > To: "Tomcat Users List" > Sent: Thursday, October 26, 2006 2:00 PM > Subject: Re: Tomcat Cluster problem. skipping state transfer. No > members active in cluster group > > >> I think you have a network routing problem. >> >> Read the cluster help: http://tomcat.apache.org/faq/cluster.html >> >> Regards >> Peter >> >> >> >> Am 25.10.2006 um 06:20 schrieb hotszkin: >> >>> I am trying to setup a tomcat cluster as told in the tomcat cluster >>> document. There are 3 PCs in my environment. All of them are >>> running RHEL AS 3. >>> >>> >>> apache (2.0.26) /w mod_jk (1.2.19) ip: 10.0.0.20 >>> | >>> ___________ | ________ >>> | | >>> ip:10.0.0.10 10.0.0.11 >>> tomcat1 tomcat2 (version 5.5.17 with jre >>> 1.5.0_08) >>> ip:192.168.5.223 192.168.5.224 >>> >>> The 10.0.0.0/24 is the subnet for apache and tomcat, and >>> 192.168.5.0/24 is the subnet for tomcat session replication/cluster. >>> >>> The apache and tomcat part runs without problem. But I just can't >>> make the cluster part run successfully. >>> >>> First, I got "No such device" error. So I insert >>> mcastBindAddress="192.168.5.223" in tomcat1 and >>> mcastBindAddress="192.168.5.224" in tomcat2, the problem is solved. >>> But I got another problem, inside the log, there is a line said, >>> "INFO: Manager [/jspSession]: skipping state transfer. No members >>> active in cluster group." I have search the internet, people say it >>> should be the problem of multicast. So I use the javagroup's >>> McastReceiverTest/McastSenderTest to test multicast, it works (some >>> people use tomcat-replication.jar, but I can't find it on the >>> internet now). Then I wonder if tomcat clusters are not sending >>> the correct message, I use tcpdump to capture the message. I can >>> see that tcp://192.168.5.223:4001 & tcp://192.168.5.224:4001 in the >>> capture log. Then I think it may be a tomcat version problem. So I >>> upgrade tomcat to 5.5.20, and then upgrade jre to 1.5.0_09, but >>> still no lucks. Now I really need the help from you. >>> >>> Below the tomcat config and my PCs network config. ( just don't >>> want this mail become too large, I just post the tomcat2 config. >>> I've double check the config, the only different is the ip address). >>> >>> >>> >> className="org.apache.catalina.cluster.tcp.SimpleTcpCluster" >>> >>> managerClassName="org.apache.catalina.cluster.session.DeltaManager" >>> expireSessionsOnShutdown="false" >>> useDirtyFlag="true" >>> notifyListenersOnReplication="true"> >>> >>> >> >>> className="org.apache.catalina.cluster.mcast.McastService" >>> mcastAddr="228.0.0.4" >>> mcastBindAddress="192.168.5.224" >>> mcastPort="45564" >>> mcastFrequency="500" >>> mcastDropTime="3000"/> >>> >>> >> >>> className="org.apache.catalina.cluster.tcp.ReplicationListener" >>> tcpListenAddress="192.168.5.224" >>> tcpListenPort="4001" >>> tcpSelectorTimeout="100" >>> tcpThreadCount="6"/> >>> >>> >> >>> className="org.apache.catalina.cluster.tcp.ReplicationTransmitter" >>> replicationMode="pooled" >>> ackTimeout="15000" >>> waitForAck="true"/> >>> >>> >> className="org.apache.catalina.cluster.tcp.ReplicationValve" >>> filter=".*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.* >>> \.html;.*\.css;.*\.txt;"/> >>> >>> >> className="org.apache.catalina.cluster.deploy.FarmWarDeployer" >>> tempDir="/tmp/war-temp/" >>> deployDir="/tmp/war-deploy/" >>> watchDir="/tmp/war-listen/" >>> watchEnabled="false"/> >>> >>> >> className="org.apache.catalina.cluster.session.ClusterSessionListene >>> r" >>> /> >>> >>> >>> >>> Script started on Wed 25 Oct 2006 11:52:21 AM CST >>> [root@mysqld2 conf]# ifconfig -a >>> eth0 Link encap:Ethernet HWaddr 00:0C:29:7B:43:3A >>> inet addr:10.0.0.11 Bcast:10.0.0.255 Mask:255.255.255.0 >>> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 >>> RX packets:25 errors:0 dropped:0 overruns:0 frame:0 >>> TX packets:4 errors:0 dropped:0 overruns:0 carrier:0 >>> collisions:0 txqueuelen:1000 >>> RX bytes:3871 (3.7 Kb) TX bytes:168 (168.0 b) >>> Interrupt:10 Base address:0x1400 >>> >>> eth1 Link encap:Ethernet HWaddr 00:0C:29:7B:43:44 >>> inet addr:192.168.5.224 Bcast:192.168.5.255 Mask: >>> 255.255.255.0 >>> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 >>> RX packets:1584 errors:0 dropped:0 overruns:0 frame:0 >>> TX packets:1563 errors:0 dropped:0 overruns:0 carrier:0 >>> collisions:0 txqueuelen:1000 >>> RX bytes:156767 (153.0 Kb) TX bytes:152906 (149.3 Kb) >>> Interrupt:9 Base address:0x1480 >>> >>> lo Link encap:Local Loopback >>> inet addr:127.0.0.1 Mask:255.0.0.0 >>> UP LOOPBACK RUNNING MTU:16436 Metric:1 >>> RX packets:20 errors:0 dropped:0 overruns:0 frame:0 >>> TX packets:20 errors:0 dropped:0 overruns:0 carrier:0 >>> collisions:0 txqueuelen:0 >>> RX bytes:1356 (1.3 Kb) TX bytes:1356 (1.3 Kb) >>> >>> [root@mysqld2 conf]# netstat -nr >>> Kernel IP routing table >>> Destination Gateway Genmask Flags MSS Window >>> irtt Iface >>> 192.168.5.0 0.0.0.0 255.255.255.0 U 0 >>> 0 0 eth1 >>> 10.0.0.0 0.0.0.0 255.255.255.0 U 0 >>> 0 0 eth0 >>> 169.254.0.0 0.0.0.0 255.255.0.0 U 0 >>> 0 0 eth1 >>> 127.0.0.0 0.0.0.0 255.0.0.0 U 0 >>> 0 0 lo >>> [root@mysqld2 conf]# netstat -na | grep 4001 >>> tcp 0 0 192.168.5.224:4001 0.0.0.0:* >>> LISTEN >>> [root@mysqld2 conf]# netstat -na | grep 45564 >>> udp 0 0 192.168.5.224:45564 0.0.0.0:* >>> [root@mysqld2 conf]# uname -r >>> 2.4.21-4.EL >>> [root@mysqld2 conf]# exit >>> Script done on Wed 25 Oct 2006 11:52:43 AM CST >>> >>> Below is the tomcat log file >>> >>> TOMCAT1 log file >>> Oct 25, 2006 11:21:46 AM >>> org.apache.catalina.core.AprLifecycleListener lifecycleEvent >>> INFO: The Apache Tomcat Native library which allows optimal >>> performance in production environments was not found on the >>> java.library.path: /usr/java/jre1.5.0_09/lib/i386/client:/usr/java/ >>> jre1.5.0_09/lib/i386:/usr/java/jre1.5.0_09/../lib/i386 >>> Oct 25, 2006 11:21:47 AM >>> org.apache.coyote.http11.Http11BaseProtocol init >>> INFO: Initializing Coyote HTTP/1.1 on http-8080 >>> Oct 25, 2006 11:21:47 AM org.apache.catalina.startup.Catalina load >>> INFO: Initialization processed in 2564 ms >>> Oct 25, 2006 11:21:47 AM org.apache.catalina.core.StandardService >>> start >>> INFO: Starting service Catalina >>> Oct 25, 2006 11:21:47 AM org.apache.catalina.core.StandardEngine >>> start >>> INFO: Starting Servlet Engine: Apache Tomcat/5.5.20 >>> Oct 25, 2006 11:21:47 AM org.apache.catalina.core.StandardHost start >>> INFO: XML validation disabled >>> Oct 25, 2006 11:21:47 AM >>> org.apache.catalina.cluster.tcp.SimpleTcpCluster start >>> INFO: Cluster is about to start >>> Oct 25, 2006 11:21:47 AM >>> org.apache.catalina.cluster.tcp.ReplicationTransmitter start >>> INFO: Start ClusterSender at cluster >>> Catalina:type=Cluster,host=localhost with name >>> Catalina:type=ClusterSender,host=localhost >>> Oct 25, 2006 11:21:47 AM >>> org.apache.catalina.cluster.mcast.McastServiceImpl setupSocket >>> INFO: Setting multihome multicast interface to:/192.168.5.223 >>> Oct 25, 2006 11:21:47 AM >>> org.apache.catalina.cluster.mcast.McastService start >>> INFO: Sleeping for 2000 milliseconds to establish cluster membership >>> Oct 25, 2006 11:21:49 AM >>> org.apache.catalina.cluster.mcast.McastService registerMBean >>> INFO: membership mbean registered >>> (Catalina:type=ClusterMembership,host=localhost) >>> Oct 25, 2006 11:21:49 AM >>> org.apache.catalina.cluster.deploy.FarmWarDeployer start >>> INFO: Cluster FarmWarDeployer started. >>> Oct 25, 2006 11:21:52 AM >>> org.apache.catalina.cluster.session.DeltaManager start >>> INFO: Register manager /jspSession to cluster element Host with >>> name localhost >>> Oct 25, 2006 11:21:52 AM >>> org.apache.catalina.cluster.session.DeltaManager start >>> INFO: Starting clustering manager at /jspSession >>> Oct 25, 2006 11:21:52 AM >>> org.apache.catalina.cluster.session.DeltaManager >>> getAllClusterSessions >>> INFO: Manager [/jspSession]: skipping state transfer. No members >>> active in cluster group. >>> Oct 25, 2006 11:21:52 AM >>> org.apache.coyote.http11.Http11BaseProtocol start >>> INFO: Starting Coyote HTTP/1.1 on http-8080 >>> Oct 25, 2006 11:21:52 AM org.apache.jk.common.ChannelSocket init >>> INFO: JK: ajp13 listening on /0.0.0.0:8009 >>> Oct 25, 2006 11:21:52 AM org.apache.jk.server.JkMain start >>> INFO: Jk running ID=0 time=0/76 config=null >>> Oct 25, 2006 11:21:52 AM >>> org.apache.catalina.storeconfig.StoreLoader load >>> INFO: Find registry server-registry.xml at classpath resource >>> Oct 25, 2006 11:21:52 AM org.apache.catalina.startup.Catalina start >>> INFO: Server startup in 5019 ms >>> >>> TOMCAT 2 log file >>> >>> Oct 25, 2006 11:39:05 AM >>> org.apache.catalina.core.AprLifecycleListener lifecycleEvent >>> INFO: The Apache Tomcat Native library which allows optimal >>> performance in production environments was not found on the >>> java.library.path: /usr/java/jre1.5.0_09/lib/i386/client:/usr/java/ >>> jre1.5.0_09/lib/i386:/usr/java/jre1.5.0_09/../lib/i386 >>> Oct 25, 2006 11:39:06 AM >>> org.apache.coyote.http11.Http11BaseProtocol init >>> INFO: Initializing Coyote HTTP/1.1 on http-8080 >>> Oct 25, 2006 11:39:06 AM org.apache.catalina.startup.Catalina load >>> INFO: Initialization processed in 4670 ms >>> Oct 25, 2006 11:39:07 AM org.apache.catalina.core.StandardService >>> start >>> INFO: Starting service Catalina >>> Oct 25, 2006 11:39:07 AM org.apache.catalina.core.StandardEngine >>> start >>> INFO: Starting Servlet Engine: Apache Tomcat/5.5.20 >>> Oct 25, 2006 11:39:07 AM org.apache.catalina.core.StandardHost start >>> INFO: XML validation disabled >>> Oct 25, 2006 11:39:07 AM >>> org.apache.catalina.cluster.tcp.SimpleTcpCluster start >>> INFO: Cluster is about to start >>> Oct 25, 2006 11:39:07 AM >>> org.apache.catalina.cluster.tcp.ReplicationTransmitter start >>> INFO: Start ClusterSender at cluster >>> Catalina:type=Cluster,host=localhost with name >>> Catalina:type=ClusterSender,host=localhost >>> Oct 25, 2006 11:39:07 AM >>> org.apache.catalina.cluster.mcast.McastServiceImpl setupSocket >>> INFO: Setting multihome multicast interface to:/192.168.5.224 >>> Oct 25, 2006 11:39:07 AM >>> org.apache.catalina.cluster.mcast.McastService start >>> INFO: Sleeping for 2000 milliseconds to establish cluster membership >>> Oct 25, 2006 11:39:09 AM >>> org.apache.catalina.cluster.mcast.McastService registerMBean >>> INFO: membership mbean registered >>> (Catalina:type=ClusterMembership,host=localhost) >>> Oct 25, 2006 11:39:09 AM >>> org.apache.catalina.cluster.deploy.FarmWarDeployer start >>> INFO: Cluster FarmWarDeployer started. >>> Oct 25, 2006 11:39:12 AM >>> org.apache.catalina.cluster.session.DeltaManager start >>> INFO: Register manager /jspSession to cluster element Host with >>> name localhost >>> Oct 25, 2006 11:39:12 AM >>> org.apache.catalina.cluster.session.DeltaManager start >>> INFO: Starting clustering manager at /jspSession >>> Oct 25, 2006 11:39:12 AM >>> org.apache.catalina.cluster.session.DeltaManager >>> getAllClusterSessions >>> INFO: Manager [/jspSession]: skipping state transfer. No members >>> active in cluster group. >>> Oct 25, 2006 11:39:13 AM >>> org.apache.coyote.http11.Http11BaseProtocol start >>> INFO: Starting Coyote HTTP/1.1 on http-8080 >>> Oct 25, 2006 11:39:13 AM org.apache.jk.common.ChannelSocket init >>> INFO: JK: ajp13 listening on /0.0.0.0:8009 >>> Oct 25, 2006 11:39:13 AM org.apache.jk.server.JkMain start >>> INFO: Jk running ID=0 time=0/138 config=null >>> Oct 25, 2006 11:39:13 AM >>> org.apache.catalina.storeconfig.StoreLoader load >>> INFO: Find registry server-registry.xml at classpath resource >>> Oct 25, 2006 11:39:13 AM org.apache.catalina.startup.Catalina start >>> INFO: Server startup in 6905 ms >>> >>> HoTszKin >>> >>> >>> >>> -------------------------------------------------------------------- >>> - >>> To start a new topic, e-mail: users@tomcat.apache.org >>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org >>> For additional commands, e-mail: users-help@tomcat.apache.org >>> >>> >> >> > > > ---------------------------------------------------------------------- > ---------- > > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.5.428 / Virus Database: 268.13.11/497 - Release Date: > 2006/10/25 �U�� 04:00 > > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org