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 tomcat1tomcat2 (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). !-- -- Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=true notifyListenersOnReplication=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.4 mcastBindAddress=192.168.5.224 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=192.168.5.224 tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled ackTimeout=15000 waitForAck=true/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.* \.html;.*\.css;.*\.txt;/ Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/tmp/war-deploy/ watchDir=/tmp/war-listen/ watchEnabled=false/ ClusterListener className=org.apache.catalina.cluster.session.ClusterSessionListener / /Cluster !-- -- Script started on Wed 25 Oct 2006 11:52:21 AM CST [EMAIL PROTECTED] 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 loLink 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
Re: Tomcat Cluster problem. skipping state transfer. No members active in cluster group
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 [EMAIL PROTECTED] bin]# route Kernel IP routing table Destination Gateway Genmask Flags Metric RefUse Iface 228.0.0.4 * 255.255.255.255 UH0 00 eth1 192.168.5.0 * 255.255.255.0 U 0 00 eth1 10.0.0.0* 255.255.255.0 U 0 00 eth0 169.254.0.0 * 255.255.0.0 U 0 00 eth1 127.0.0.0 * 255.0.0.0 U 0 00 lo [EMAIL PROTECTED] bin]# exit Script done on Thu 26 Oct 2006 03:42:43 PM CST Any suggestion? HoTszKin - Original Message - From: Peter Rossbach [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org 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 tomcat1tomcat2 (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). !-- -- Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=true notifyListenersOnReplication=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.4 mcastBindAddress=192.168.5.224 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=192.168.5.224 tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled ackTimeout=15000 waitForAck=true/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.* \.html;.*\.css;.*\.txt;/ Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/tmp/war-deploy/ watchDir=/tmp/war-listen/ watchEnabled=false/ ClusterListener className=org.apache.catalina.cluster.session.ClusterSessionListener / /Cluster !-- -- Script started on Wed 25 Oct 2006 11:52:21 AM CST [EMAIL PROTECTED] 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
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 [EMAIL PROTECTED] bin]# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 228.0.0.4 * 255.255.255.255 UH0 00 eth1 192.168.5.0 * 255.255.255.0 U 0 00 eth1 10.0.0.0* 255.255.255.0 U 0 00 eth0 169.254.0.0 * 255.255.0.0 U 0 00 eth1 127.0.0.0 * 255.0.0.0 U 0 00 lo [EMAIL PROTECTED] bin]# exit Script done on Thu 26 Oct 2006 03:42:43 PM CST Any suggestion? HoTszKin - Original Message - From: Peter Rossbach [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org 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 tomcat1tomcat2 (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). !-- -- Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=true notifyListenersOnReplication=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.4 mcastBindAddress=192.168.5.224 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=192.168.5.224 tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled ackTimeout=15000 waitForAck=true/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.* \.html;.*\.css;.*\.txt;/ Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/tmp/war-deploy/ watchDir=/tmp/war-listen/ watchEnabled=false/ ClusterListener className=org.apache.catalina.cluster.session.ClusterSessionListene r / /Cluster !-- -- Script started on Wed 25 Oct 2006 11:52:21 AM CST [EMAIL PROTECTED] conf]# ifconfig -a eth0 Link encap:Ethernet HWaddr 00:0C:29:7B:43:3A inet addr
Re: Tomcat Cluster problem. skipping state transfer. No members active in cluster group
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 [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org 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 [EMAIL PROTECTED] bin]# route Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 228.0.0.4 * 255.255.255.255 UH0 00 eth1 192.168.5.0 * 255.255.255.0 U 0 00 eth1 10.0.0.0* 255.255.255.0 U 0 00 eth0 169.254.0.0 * 255.255.0.0 U 0 00 eth1 127.0.0.0 * 255.0.0.0 U 0 00 lo [EMAIL PROTECTED] bin]# exit Script done on Thu 26 Oct 2006 03:42:43 PM CST Any suggestion? HoTszKin - Original Message - From: Peter Rossbach [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org 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 tomcat1tomcat2 (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). !-- -- Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=true notifyListenersOnReplication=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.4 mcastBindAddress=192.168.5.224 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=192.168.5.224 tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled ackTimeout=15000 waitForAck=true/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.* \.html;.*\.css;.*\.txt;/ Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/tmp/war-deploy/ watchDir=/tmp/war-listen
Tomcat Cluster problem. skipping state transfer. No members active in cluster group
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 tomcat1tomcat2 (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). !-- -- Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager expireSessionsOnShutdown=false useDirtyFlag=true notifyListenersOnReplication=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=228.0.0.4 mcastBindAddress=192.168.5.224 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=192.168.5.224 tcpListenPort=4001 tcpSelectorTimeout=100 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled ackTimeout=15000 waitForAck=true/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;/ Deployer className=org.apache.catalina.cluster.deploy.FarmWarDeployer tempDir=/tmp/war-temp/ deployDir=/tmp/war-deploy/ watchDir=/tmp/war-listen/ watchEnabled=false/ ClusterListener className=org.apache.catalina.cluster.session.ClusterSessionListener/ /Cluster !-- -- Script started on Wed 25 Oct 2006 11:52:21 AM CST [EMAIL PROTECTED] 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 loLink 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) [EMAIL PROTECTED] 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