Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 64862 invoked from network); 15 Nov 2007 16:09:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Nov 2007 16:09:11 -0000 Received: (qmail 63612 invoked by uid 500); 15 Nov 2007 16:08:46 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 63224 invoked by uid 500); 15 Nov 2007 16:08: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 63213 invoked by uid 99); 15 Nov 2007 16:08:45 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Nov 2007 08:08:45 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ndiulgerov@imx.fr designates 213.222.54.136 as permitted sender) Received: from [213.222.54.136] (HELO mail2.imx.fr) (213.222.54.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Nov 2007 16:08:34 +0000 Received: from [127.0.0.1] ([192.9.202.231]) by mail2.imx.fr with Microsoft SMTPSVC(6.0.3790.3959); Thu, 15 Nov 2007 18:08:25 +0200 Message-ID: <473C6EF9.1020705@imx.fr> Date: Thu, 15 Nov 2007 18:08:25 +0200 From: Niki Diulgerov User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: users@tomcat.apache.org Subject: clustering mode in apache tomcat 5.5.25 Content-Type: multipart/alternative; boundary="------------070001050901040600090801" X-OriginalArrivalTime: 15 Nov 2007 16:08:25.0704 (UTC) FILETIME=[C0BF4E80:01C827A1] X-Virus-Checked: Checked by ClamAV on apache.org --------------070001050901040600090801 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hello friends, I read a lot in internet, connected to #tomcat irc channel but still no help (except one user in irc who told me in this mailing list there are very nice people). So my problem is that I'm trying to use 2 tomcats in clustering mode. I installed standard tomcat 5.5.25 downloaded from the official site. The operating systems are RHEL4 and Open SuSE10.2 I have setenv.sh JAVA_OPTS="-server -Xms512m -Xmx1024m -XX:PermSize=512m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError" CATALINA_OPTS="-Dlogs.root=/extranet/logs -Dwas.install.root=/extranet" JAVA_HOME=/jdk1.5.0_13 ENCODING=utf-8 Java version jdk1.5.0_13 (I tried with java 1.4 and the compat package for tomcat 5.5.25 but still the same) I changed only server.xml file on both machines. Here is how it looks like: I changed only mcastBindAddress="127.0.0.1" on both machines and replaced 127.0.0.1 with the appropriate IP address of any of these machines. everything else was the same. (Here I'm not sure if I should use the same jvmRoute on both machines) The problem is that in the catalina.out I have WARNING: Error receiving mcast package (errorCounter=10). Try Recovery! java.net.SocketTimeoutException: Receive timed out at java.net.PlainDatagramSocketImpl.receive0(Native Method) at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136) at java.net.DatagramSocket.receive(DatagramSocket.java:712) at org.apache.catalina.cluster.mcast.McastServiceImpl.receive(McastServiceImpl.java:238) at org.apache.catalina.cluster.mcast.McastServiceImpl$ReceiverThread.run(McastServiceImpl.java:330) Nov 15, 2007 5:22:33 PM org.apache.catalina.cluster.mcast.McastServiceImpl$RecoveryThread run INFO: Cluster membership, running recovery thread, multicasting is not functional. Nov 15, 2007 5:22:33 PM org.apache.catalina.cluster.mcast.McastServiceImpl$SenderThread run WARNING: Sender Thread ends with errorCounter=0. Nov 15, 2007 5:22:34 PM org.apache.catalina.cluster.mcast.McastServiceImpl$ReceiverThread run WARNING: Receiver Thread ends with errorCounter=1. Nov 15, 2007 5:22:35 PM org.apache.catalina.cluster.mcast.McastServiceImpl setupSocket INFO: Setting multihome multicast interface to:/192.9.202.166 Nov 15, 2007 5:22:35 PM org.apache.catalina.cluster.mcast.McastServiceImpl setupSocket INFO: Setting cluster mcast soTimeout to 1000 Nov 15, 2007 5:22:35 PM org.apache.catalina.cluster.mcast.McastServiceImpl$RecoveryThread run INFO: Membership recovery was successful. Nov 15, 2007 5:22:43 PM org.apache.catalina.cluster.deploy.WarWatcher check INFO: check cluster wars at /extranet/tomcat/war-listen Nov 15, 2007 5:22:55 PM org.apache.catalina.cluster.mcast.McastServiceImpl$ReceiverThread run WARNING: Error receiving mcast package (errorCounter=10). Try Recovery! java.net.SocketTimeoutException: Receive timed out at java.net.PlainDatagramSocketImpl.receive0(Native Method) at java.net.PlainDatagramSocketImpl.receive(PlainDatagramSocketImpl.java:136) at java.net.DatagramSocket.receive(DatagramSocket.java:712) at org.apache.catalina.cluster.mcast.McastServiceImpl.receive(McastServiceImpl.java:238) at org.apache.catalina.cluster.mcast.McastServiceImpl$ReceiverThread.run(McastServiceImpl.java:330) Nov 15, 2007 5:22:55 PM org.apache.catalina.cluster.mcast.McastServiceImpl$RecoveryThread run INFO: Cluster membership, running recovery thread, multicasting is not functional. Nov 15, 2007 5:22:55 PM org.apache.catalina.cluster.mcast.McastServiceImpl$SenderThread run WARNING: Sender Thread ends with errorCounter=0. Nov 15, 2007 5:22:56 PM org.apache.catalina.cluster.mcast.McastServiceImpl$ReceiverThread run WARNING: Receiver Thread ends with errorCounter=1. Nov 15, 2007 5:22:57 PM org.apache.catalina.cluster.mcast.McastServiceImpl setupSocket INFO: Setting multihome multicast interface to:/192.9.202.166 Nov 15, 2007 5:22:57 PM org.apache.catalina.cluster.mcast.McastServiceImpl setupSocket INFO: Setting cluster mcast soTimeout to 1000 Nov 15, 2007 5:22:57 PM org.apache.catalina.cluster.mcast.McastServiceImpl$RecoveryThread run INFO: Membership recovery was successful. Nov 15, 2007 5:23:03 PM org.apache.catalina.cluster.deploy.WarWatcher check INFO: check cluster wars at /extranet/tomcat/war-listen Nov 15, 2007 5:23:17 PM org.apache.catalina.cluster.mcast.McastServiceImpl$ReceiverThread run Please help. -- Best regards, Nikolay Diulgerov --------------070001050901040600090801--