Java : Running Multiple Tomcat Instances on One Machine

Download multiple version of apache tomcat and unzip them (prefer to download different version)

Key is to do proper setting in server.xml and run in all tomcat server. We need to ensure below 3 ports are configured different in all multiple servers

  • Connector Port : This is the port where Apache Tomcat listen for the HTTP requests.
  • Shutdown Port : This port is used when we try to shutdown the Apache Tomcat Server.
  • AJP (Apache JServ Protocol) Connector Port : The Apache JServ Protocol (AJP) is a binary protocol that can conduct inbound requests from a web server through to an application server that sits behind the web server.


Locate server.xml in {Tomcat installation folder}\ conf \server.xml
Below port needs to be different for your servers

<Server port=”8015″ shutdown=”SHUTDOWN”>

<Connector port=”8181″ protocol=”HTTP/1.1″
redirectPort=”8443″ />

<Connector port=”8019″ protocol=”AJP/1.3″ redirectPort=”8443″ />

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.