You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Tauqir Akhtar <TA...@jny.com> on 2011/06/09 16:30:46 UTC
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: Tomact 5.5 Clustering
Posted by Tauqir Akhtar <TA...@jny.com>.
Pid
I have uncommeneted the Cluster Element in server.xml on both the Instances..
Thanks
Tauqir Akhtar
-----Original Message-----
From: Pid [mailto:pid@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomact 5.5 Clustering
Posted by Pid <pi...@pidster.com>.
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
RE: Tomact 5.5 Clustering
Posted by Tauqir Akhtar <TA...@jny.com>.
Hi
Appreciate if someone can help me here.
Thanks
Tauqir Akhtar
-----Original Message-----
From: Tauqir Akhtar [mailto:TAkhtar@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="20000" 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>
<Service name="Catalina">
<Connector port="8002" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" 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:TAkhtar@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.lobb@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Tomact 5.5 Clustering
Posted by Tauqir Akhtar <TA...@jny.com>.
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="20000" 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>
<Service name="Catalina">
<Connector port="8002" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" 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:TAkhtar@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.lobb@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: Tomact 5.5 Clustering
Posted by Tauqir Akhtar <TA...@jny.com>.
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.lobb@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
Re: Tomact 5.5 Clustering
Posted by János Löbb <ja...@yale.edu>.
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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org