RE: Tomact 5.5 Clustering
Hi Appreciate if someone can help me here. Thanks Tauqir Akhtar -Original Message- From: Tauqir Akhtar [mailto:takh...@jny.com] Sent: Monday, June 20, 2011 2:10 PM To: 'Tomcat Users List' Subject: RE: Tomact 5.5 Clustering Hi My Clustering Fails : SEVERE: Unable to send replicated message to member [org.apache.catalina.cluster.mcast.McastMember[t cp://172.28.9.109:4001,catalina,172.28.9.109,4001, alive=1813]], has only senders for [] Jun 20, 2011 1:52:57 PM org.apache.catalina.cluster.tcp.ReplicationTransmitter sendMessage server.xml for the Instance running on Machine 1 : ?xml version=1.0 encoding=UTF-8? Server port=8113 shutdown=SHUTDOWN Listener className=org.apache.catalina.core.AprLifecycleListener / Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / Listener className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/ GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources Service name=Catalina Connector port=8003 maxHttpHeaderSize=8192 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false redirectPort=8443 acceptCount=100 connectionTimeout=2 disableUploadTimeout=true / Connector port=8013 enableLookups=false redirectPort=8443 protocol=AJP/1.3 / Engine name=Catalina defaultHost=localhost jvmRoute=plm_qa_3 Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false 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=237.0.0.4 mcastPort=7788 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=auto 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 Valve className=org.apache.catalina.authenticator.SingleSignOn / Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ Valve className=org.apache.catalina.valves.FastCommonAccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ /Host /Engine /Service /Server Server.xml for the Instance running on Machine 2 : ?xml version=1.0 encoding=UTF-8? Server port=8224 shutdown=SHUTDOWN Listener className=org.apache.catalina.core.AprLifecycleListener / Listener className=org.apache.catalina.mbeans.ServerLifecycleListener / Listener className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener / Listener className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/ GlobalNamingResources Environment name=simpleValue type=java.lang.Integer value=30/ Resource name=UserDatabase auth=Container type=org.apache.catalina.UserDatabase description=User database that can be updated and saved factory=org.apache.catalina.users.MemoryUserDatabaseFactory pathname=conf/tomcat-users.xml / /GlobalNamingResources
RE: Tomact 5.5 Clustering
Hi Cluster did start , but I am getting exception : INFO: membership mbean registered (Catalina:type=ClusterMembership,host=localhost) Jun 20, 2011 11:44:31 AM org.apache.catalina.cluster.deploy.FarmWarDeployer start INFO: Cluster FarmWarDeployer started. Exception in thread Cluster-MembershipReceiver java.lang.OutOfMemoryError: Java heap space at org.apache.catalina.cluster.mcast.McastMember.getMember(McastMember.java:174) at org.apache.catalina.cluster.mcast.McastServiceImpl.receive(McastServiceImpl.java:242) at org.apache.catalina.cluster.mcast.McastServiceImpl$ReceiverThread.run(McastServiceImpl.ja va:330) Thanks Tauqir Akhtar 212 801 8039 -Original Message- From: János Löbb [mailto:janos.l...@yale.edu] Sent: Thursday, June 09, 2011 12:37 PM To: Tomcat Users List Subject: Re: Tomact 5.5 Clustering On Jun 9, 2011, at 10:30 AM, Tauqir Akhtar wrote: Hi I am running two Tomcat (5.5.27) Instances on two different machines deploying the same Java Application. I have made changes in server.xml to specify the Port on which Tomcat should run on the two machines. On Machine 1 : Connector port=8001 On Machine 2 : Connector port=8002 Both the Instances are running fine. What other configuration changes (In which files) do I need to make to run these two Tomcat Instances in one Cluster? I have following variables set in the machine environment: CATALINA_OPTS : -Xms512m -Xmx1024m JAVA_OPTS : -Xmx768m JAVA_HOME : C:\Program Files\Java\jdk1.5.0_11 What other changes I need to make to run more Tomcat Instances from the same Installation on each machine? For Example: On Machine 1 :Connector port=8001 Connector port=8003 On Machine 2 :Connector port=8002 Connector port=8004 I want to run all these instances in a cluster. Your help will be highly appreciated. Thanks Tauqir Akhtar Are the two machines in the same subnet ? Is multicasting work ? What do you see in the logs ? Are there any memberships established ? Etc... - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org ## NOTICE: The contents of this e-mail and any attachments to it may contain privileged and confidential information from The Jones Group Inc. or its affiliates. This information is only for the viewing or use of the intended recipient. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of, or the taking of any action in reliance upon, the information contained in this e-mail, or any of the attachments to this e-mail, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by replying to this message and delete it from your system. ### - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomact 5.5 Clustering
connectionTimeout=2 disableUploadTimeout=true / Connector port=8024 enableLookups=false redirectPort=8443 protocol=AJP/1.3 / Engine name=Catalina defaultHost=localhost jvmRoute=plm_qa_2 Realm className=org.apache.catalina.realm.UserDatabaseRealm resourceName=UserDatabase/ Host name=localhost appBase=webapps unpackWARs=true autoDeploy=true xmlValidation=false xmlNamespaceAware=false 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=237.0.0.4 mcastPort=7788 mcastFrequency=500 mcastDropTime=3000/ Receiver className=org.apache.catalina.cluster.tcp.ReplicationListener tcpListenAddress=auto 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 Valve className=org.apache.catalina.authenticator.SingleSignOn / Valve className=org.apache.catalina.valves.AccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ Valve className=org.apache.catalina.valves.FastCommonAccessLogValve directory=logs prefix=localhost_access_log. suffix=.txt pattern=common resolveHosts=false/ /Host /Engine /Service /Server Any help would be highly appreciated. Thanks Tauqir Akhtar 212 801 8039 -Original Message- From: Tauqir Akhtar [mailto:takh...@jny.com] Sent: Monday, June 20, 2011 12:15 PM To: 'Tomcat Users List' Subject: RE: Tomact 5.5 Clustering Hi Cluster did start , but I am getting exception : INFO: membership mbean registered (Catalina:type=ClusterMembership,host=localhost) Jun 20, 2011 11:44:31 AM org.apache.catalina.cluster.deploy.FarmWarDeployer start INFO: Cluster FarmWarDeployer started. Exception in thread Cluster-MembershipReceiver java.lang.OutOfMemoryError: Java heap space at org.apache.catalina.cluster.mcast.McastMember.getMember(McastMember.java:174) at org.apache.catalina.cluster.mcast.McastServiceImpl.receive(McastServiceImpl.java:242) at org.apache.catalina.cluster.mcast.McastServiceImpl$ReceiverThread.run(McastServiceImpl.ja va:330) Thanks Tauqir Akhtar 212 801 8039 -Original Message- From: János Löbb [mailto:janos.l...@yale.edu] Sent: Thursday, June 09, 2011 12:37 PM To: Tomcat Users List Subject: Re: Tomact 5.5 Clustering On Jun 9, 2011, at 10:30 AM, Tauqir Akhtar wrote: Hi I am running two Tomcat (5.5.27) Instances on two different machines deploying the same Java Application. I have made changes in server.xml to specify the Port on which Tomcat should run on the two machines. On Machine 1 : Connector port=8001 On Machine 2 : Connector port=8002 Both the Instances are running fine. What other configuration changes (In which files) do I need to make to run these two Tomcat Instances in one Cluster? I have following variables set in the machine environment: CATALINA_OPTS : -Xms512m -Xmx1024m JAVA_OPTS : -Xmx768m JAVA_HOME : C:\Program Files\Java\jdk1.5.0_11 What other changes I need to make to run more Tomcat Instances from the same Installation on each machine? For Example: On Machine 1 :Connector port=8001 Connector port=8003 On Machine 2 :Connector port=8002 Connector port=8004 I want to run all these instances in a cluster. Your help will be highly appreciated. Thanks Tauqir Akhtar Are the two machines in the same subnet ? Is multicasting work ? What do you see in the logs ? Are there any memberships established ? Etc... - To unsubscribe, e-mail
Tomcat 5.5 Clustering
Hi I am running two Tomcat (5.5.27) Instances on two different machines deploying the same Java Application. I have made changes in server.xml to specify the Port on which Tomcat should run on the two machines. On Machine 1 : Connector port=8001 On Machine 12 : Connector port=8002 Both the Instances are running fine. What other configuration changes (In which files) do I need to make to run these two Tomcat Instances in one Cluster? I have following variables set in the machine environment: CATALINA_OPTS : -Xms512m -Xmx1024m JAVA_OPTS : -Xmx768m JAVA_HOME : C:\Program Files\Java\jdk1.5.0_11 What other changes I need to make to run more Tomcat Instances from the same Installation on each machine? For Example: On Machine 1 : Connector port=8001 Connector port=8003 On Machine 2 : Connector port=8002 Connector port=8004 I want to run all these instances in a cluster. Your help will be highly appreciated. Thanks Tauqir ## NOTICE: The contents of this e-mail and any attachments to it may contain privileged and confidential information from The Jones Group Inc. or its affiliates. This information is only for the viewing or use of the intended recipient. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of, or the taking of any action in reliance upon, the information contained in this e-mail, or any of the attachments to this e-mail, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by replying to this message and delete it from your system. ### - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomact 5.5 Clustering
Hi I am running two Tomcat (5.5.27) Instances on two different machines deploying the same Java Application. I have made changes in server.xml to specify the Port on which Tomcat should run on the two machines. On Machine 1 : Connector port=8001 On Machine 2 : Connector port=8002 Both the Instances are running fine. What other configuration changes (In which files) do I need to make to run these two Tomcat Instances in one Cluster? I have following variables set in the machine environment: CATALINA_OPTS : -Xms512m -Xmx1024m JAVA_OPTS : -Xmx768m JAVA_HOME : C:\Program Files\Java\jdk1.5.0_11 What other changes I need to make to run more Tomcat Instances from the same Installation on each machine? For Example: On Machine 1 :Connector port=8001 Connector port=8003 On Machine 2 :Connector port=8002 Connector port=8004 I want to run all these instances in a cluster. Your help will be highly appreciated. Thanks Tauqir Akhtar ## NOTICE: The contents of this e-mail and any attachments to it may contain privileged and confidential information from The Jones Group Inc. or its affiliates. This information is only for the viewing or use of the intended recipient. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of, or the taking of any action in reliance upon, the information contained in this e-mail, or any of the attachments to this e-mail, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by replying to this message and delete it from your system. ###
RE: Tomcat 5.5 Clustering
Sorry abt that. I have created a new request now. Thanks Tauqir Akhtar -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Thursday, June 09, 2011 10:27 AM To: Tomcat Users List Subject: Re: Tomcat 5.5 Clustering On 09/06/2011 15:02, Tauqir Akhtar wrote: Hi I am running two Tomcat (5.5.27) Instances on two different machines deploying the same Java Application. If this is a new request for help, rather than a reply to Tomcat 6 Clustering vs. Tomcat 5.5 clustering please start a new thread, rather than replying to an existing email just editing the subject body. This is called thread hijacking. p ## NOTICE: The contents of this e-mail and any attachments to it may contain privileged and confidential information from The Jones Group Inc. or its affiliates. This information is only for the viewing or use of the intended recipient. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of, or the taking of any action in reliance upon, the information contained in this e-mail, or any of the attachments to this e-mail, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by replying to this message and delete it from your system. ### - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomact 5.5 Clustering
Pid I have uncommeneted the Cluster Element in server.xml on both the Instances.. Thanks Tauqir Akhtar -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Thursday, June 09, 2011 10:36 AM To: Tomcat Users List Subject: Re: Tomact 5.5 Clustering On 09/06/2011 15:30, Tauqir Akhtar wrote: Hi I am running two Tomcat (5.5.27) Instances on two different machines deploying the same Java Application. I have made changes in server.xml to specify the Port on which Tomcat should run on the two machines. On Machine 1 : Connector port=8001 On Machine 2 : Connector port=8002 Both the Instances are running fine. What other configuration changes (In which files) do I need to make to run these two Tomcat Instances in one Cluster? I have following variables set in the machine environment: CATALINA_OPTS : -Xms512m -Xmx1024m JAVA_OPTS : -Xmx768m JAVA_HOME : C:\Program Files\Java\jdk1.5.0_11 What other changes I need to make to run more Tomcat Instances from the same Installation on each machine? For Example: On Machine 1 :Connector port=8001 Connector port=8003 On Machine 2 :Connector port=8002 Connector port=8004 I want to run all these instances in a cluster. Your help will be highly appreciated. Have you added/enabled the Cluster element to/in your server.xml? http://tomcat.apache.org/tomcat-5.5-doc/cluster-howto.html p ## NOTICE: The contents of this e-mail and any attachments to it may contain privileged and confidential information from The Jones Group Inc. or its affiliates. This information is only for the viewing or use of the intended recipient. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of, or the taking of any action in reliance upon, the information contained in this e-mail, or any of the attachments to this e-mail, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by replying to this message and delete it from your system. ### - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat with Cisco ACE Load Balancer
Thanks Pid for you updates. All I am trying here to implement Tomcat in Load Balanced Environment. WE have Java EE base web Application. And we have two 36 GB web servers. Currently they have WebLogic installed on them. Four Instance of WebLogic managed servers run on each machine. Our Java Appplicatiion is deployed on all of these web servers. Machine 1 : WebsLogicServer1 (Port : 6001) WebsLogicServer2 (Port : 6002) WebsLogicServer3 (Port : 6003) WebsLogicServer4 (Port : 6004) Machine 1 : WebsLogicServer4 (Port : 6005) WebsLogicServer6 (Port : 6006) WebsLogicServer7 (Port : 6007) WebsLogicServer8 (Port : 6008) Right now we are using WebLogic Servers in a Cluster that are loaded balanced by Cisco Load Balancer. In current scenario using WebLogic , if a user sends a request , it goes to the Cisco Load Balancer which directs it to any of the 8 Weblogic Ports in the cluster based on Robin Round Algorithm. We don't have any performance issues as of now. All I am trying here to replicate this setup using Tomcat instead oof weblogic. Please if you can guide me . Thanks Tauqir Akhtar 212 801 8039 -Original Message- From: Pid [mailto:p...@pidster.com] Sent: Wednesday, June 01, 2011 7:14 AM To: Tomcat Users List Subject: Re: Tomcat with Cisco ACE Load Balancer On 31/05/2011 21:10, Tauqir Akhtar wrote: Hi We have been using Weblogic Clusters with Cisco ACE Load Balancer We have 8 managed servers in the weblogic Cluster distributed evenly over two Machines. Load Balancer distributes the load in Robin Round fashion across these 8 managed servers using the concept of Stickiness. Now we need to replace Weblogic with Tomcat. I am looking for a document that would help me replicate this existing architecture in Tomcat environments. Questions that I have: * How many tomcat Installation would be required? Impossible to say, we don't know anything about your application, server spec, environment, current performance, etc etc etc * Or it would be single Installation on each machines and then copying of directory for each port? Impossible to say, we don't know anything about your application, server spec, environment, current performance, etc etc etc Also: I don't know what 'copying of directory for each port' means. * Will load Balancer see any difference if the request is from a Tomcat or Weblogic? The app server make requests to the load balancer? Or the load balancer directs requests to each app server? * If yes, then what are changes required in Load Balancer configuration? Impossible to say, we don't know anything about your application, server spec, environment, current performance, etc etc etc Pease help me with your suggestions. Please provide some meaningful information. p Thanks Tauqir Akhtar ## NOTICE: The contents of this e-mail and any attachments to it may contain privileged and confidential information from The Jones Group Inc. or its affiliates. This information is only for the viewing or use of the intended recipient. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of, or the taking of any action in reliance upon, the information contained in this e-mail, or any of the attachments to this e-mail, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by replying to this message and delete it from your system. ### ## NOTICE: The contents of this e-mail and any attachments to it may contain privileged and confidential information from The Jones Group Inc. or its affiliates. This information is only for the viewing or use of the intended recipient. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of, or the taking of any action in reliance upon, the information contained in this e-mail, or any of the attachments to this e-mail, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by replying to this message and delete it from your system. ### - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Tomcat with Cisco ACE Load Balancer
Hi We have been using Weblogic Clusters with Cisco ACE Load Balancer We have 8 managed servers in the weblogic Cluster distributed evenly over two Machines. Load Balancer distributes the load in Robin Round fashion across these 8 managed servers using the concept of Stickiness. Now we need to replace Weblogic with Tomcat. I am looking for a document that would help me replicate this existing architecture in Tomcat environments. Questions that I have: * How many tomcat Installation would be required? * Or it would be single Installation on each machines and then copying of directory for each port? * Will load Balancer see any difference if the request is from a Tomcat or Weblogic? * If yes, then what are changes required in Load Balancer configuration? Pease help me with your suggestions. Thanks Tauqir Akhtar ## NOTICE: The contents of this e-mail and any attachments to it may contain privileged and confidential information from The Jones Group Inc. or its affiliates. This information is only for the viewing or use of the intended recipient. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of, or the taking of any action in reliance upon, the information contained in this e-mail, or any of the attachments to this e-mail, is strictly prohibited. If you have received this e-mail in error, please immediately notify the sender by replying to this message and delete it from your system. ###