Tomcat 5.0.27 Cluster Issues
Hi all, I have some problem with my Tomcat cluster configuration. Im doing the test only with to machines (Windows 2K, Tomcat 5.0.27 and the ISAPI Filter). I cant setup the cluster ok. Now Im using the default setup in both machines: As you can see in the logs, both machine create the Cluster, I think is not the good behaviour. I appreciate very much any help. We are working in a big REAL project in Spain, and it is my only problem. Thank you very much in advanced, I expect your answer. Best regards. Configuration Machine 1 Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager name=KutxaNetCluster printToScreen=true expireSessionsOnShutdown=false useDirtyFlag=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=239.26.102.4 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=auto tcpListenPort=4010 tcpSelectorTimeout=100 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve debug=10 verbosity=4 Machine 2: Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager name=KutxaNetCluster printToScreen=true expireSessionsOnShutdown=false useDirtyFlag=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=239.26.102.4 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=auto tcpListenPort=4010 tcpSelectorTimeout=100 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve debug=10 verbosity=4 Both machines have the same configuration. And the logs in the machine are: Machine 1 07-dic-2004 18:29:50 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 2188 ms 07-dic-2004 18:29:51 org.apache.catalina.core.StandardService start INFO: Arrancando servicio Catalina 07-dic-2004 18:29:51 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.27 07-dic-2004 18:29:51 org.apache.catalina.core.StandardHost start INFO: Desactivada la validación XML 07-dic-2004 18:29:51 org.apache.catalina.cluster.tcp.SimpleTcpCluster start INFO: Cluster is about to start 07-dic-2004 18:29:51 org.apache.catalina.cluster.mcast.McastService start INFO: Sleeping for 2000 secs to establish cluster membership 07-dic-2004 18:29:53 org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) 07-dic-2004 18:29:53 org.apache.catalina.core.StandardHostDeployer install INFO: Procesando URL de archivo de configuración de Contexto file:C:\Tomcat 5.0\conf\Standalone\localhost\admin.xml 07-dic-2004 18:29:54 org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true 07-dic-2004 18:29:54 org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true 07-dic-2004 18:29:55 org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources', returnNull=true 07-dic-2004 18:29:57 org.apache.catalina.core.StandardHostDeployer install INFO: Procesando URL de archivo de configuración de Contexto file:C:\Tomcat 5.0\conf\Standalone\localhost\manager.xml 07-dic-2004 18:29:58 org.apache.catalina.core.StandardHostDeployer install INFO: Procesando URL de archivo de configuración de Contexto file:C:\Tomcat 5.0\conf\Standalone\localhost\ROOT.xml Creating ClusterManager for context using class org.apache.catalina.cluster.session.DeltaManager 07-dic-2004 18:29:59 org.apache.catalina.cluster.session.DeltaManager start INFO: Starting clustering manager...:
Re: Tomcat 5.0.27 Cluster Issues
By looking at the following log entries INFO: Received member disappeared:org.apache.catalina.cluster.mcast.McastMember[tcp://172.26.102.2 :4010,172.26.102.2,4010, alive=232390] 07-dic-2004 18:34:46 org.apache.catalina.cluster.tcp.SimpleTcpCluster memberAdded INFO: Replication member added:org.apache.catalina.cluster.mcast.McastMember[tcp://172.26.102.2:4010, 172.26.102.2,4010, alive=357296] 07-dic-2004 18:34:49 org.apache.catalina.cluster.tcp.SimpleTcpCluster memberDisappeared INFO: Received member disappeared:org.apache.catalina.cluster.mcast.McastMember[tcp://172.26.102.2 :4010,172.26.102.2,4010, alive=357296] It appears as multicasting is not working properly in your network. Filip - Original Message - From: Pablo Carretero [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, December 07, 2004 11:44 AM Subject: Tomcat 5.0.27 Cluster Issues Hi all, I have some problem with my Tomcat cluster configuration. I'm doing the test only with to machines (Windows 2K, Tomcat 5.0.27 and the ISAPI Filter). I can't setup the cluster ok. Now I'm using the default setup in both machines: As you can see in the logs, both machine create the Cluster, I think is not the good behaviour. I appreciate very much any help. We are working in a big REAL project in Spain, and it is my only problem. Thank you very much in advanced, I expect your answer. Best regards. Configuration Machine 1 Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager name=KutxaNetCluster printToScreen=true expireSessionsOnShutdown=false useDirtyFlag=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=239.26.102.4 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=auto tcpListenPort=4010 tcpSelectorTimeout=100 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve debug=10 verbosity=4 Machine 2: Cluster className=org.apache.catalina.cluster.tcp.SimpleTcpCluster managerClassName=org.apache.catalina.cluster.session.DeltaManager name=KutxaNetCluster printToScreen=true expireSessionsOnShutdown=false useDirtyFlag=true Membership className=org.apache.catalina.cluster.mcast.McastService mcastAddr=239.26.102.4 mcastPort=45564 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=auto tcpListenPort=4010 tcpSelectorTimeout=100 tcpThreadCount=6/ Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled/ Valve className=org.apache.catalina.cluster.tcp.ReplicationValve debug=10 verbosity=4 Both machines have the same configuration. And the logs in the machine are: Machine 1 07-dic-2004 18:29:50 org.apache.catalina.startup.Catalina load INFO: Initialization processed in 2188 ms 07-dic-2004 18:29:51 org.apache.catalina.core.StandardService start INFO: Arrancando servicio Catalina 07-dic-2004 18:29:51 org.apache.catalina.core.StandardEngine start INFO: Starting Servlet Engine: Apache Tomcat/5.0.27 07-dic-2004 18:29:51 org.apache.catalina.core.StandardHost start INFO: Desactivada la validación XML 07-dic-2004 18:29:51 org.apache.catalina.cluster.tcp.SimpleTcpCluster start INFO: Cluster is about to start 07-dic-2004 18:29:51 org.apache.catalina.cluster.mcast.McastService start INFO: Sleeping for 2000 secs to establish cluster membership 07-dic-2004 18:29:53 org.apache.catalina.core.StandardHost getDeployer INFO: Create Host deployer for direct deployment ( non-jmx ) 07-dic-2004 18:29:53 org.apache.catalina.core.StandardHostDeployer install INFO: Procesando URL de archivo de configuración de Contexto file:C:\Tomcat 5.0\conf\Standalone\localhost\admin.xml 07-dic-2004 18:29:54 org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config='org.apache.struts.util.LocalStrings', returnNull=true 07-dic-2004 18:29:54 org.apache.struts.util.PropertyMessageResources init INFO: Initializing, config