In another topic, I discussed how to start one member of a Tomcat cluster. Click here to learn how to cluster in Apache Tomcat (Windows). When you have completed the work in that topic, you will be prepared for this topic. I will show you how to run another Tomcat instance on the same server, or computer.
To learn how to run multiple instances of Apache Tomcat on one server, follow these 15 steps:
CATALINA_BASE/confto your new directory.
c:/TomcatB/conf.server.xml. Locate the cluster entry:
<!-- <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/> -->
Connectorelement for HTTP:
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
<Connector port="8181" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
<Server port="8005" shutdown="SHUTDOWN">
<Server port="8002" shutdown="SHUTDOWN">
CATALINA_BASEhave different values.
CATALINA_HOMEis the original installation directory that contains our web applications whereas
CATALINA_BASEcontains our customized configuration.