Changing the port number of Tomcat (2024)

For most installations, Tomcat should not require any additional configuration. In some cases, however, it may be necessary to change the port number on which the Tomcat Servlet Engine is running.

The configuration of Tomcat is determined by the server.xml file located in the BASEDIR/smarts/tomcat/conf directory. By default, Tomcat is configured to use TCP port 8080. If this port is already in use on the system where the VMware Smart Assurance Business Dashboard is installed, you can configure Tomcat to use another port.

To change the port number, find the following lines in server.xml:

<Connector port="8080" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" redirectPort="8443" acceptCount="100" connectionTimeout="20000" disableUploadTimeout="true" />

Change the port number to a suitable number. If Tomcat is currently running, you will need to restart it.

You may also need to change the shutdown server port number. Port number 8005 is the default port for the shutdown server. To change the shutdown server port number, find the following line in the server.xml:

<Server port="8005" shutdown="SHUTDOWN">

Change the port number to a suitable number.

For more information regarding Tomcat Servlet Engine, see http://tomcat.apache.org

Changing the port number of Tomcat (2024)
Top Articles
Latest Posts
Article information

Author: Lilliana Bartoletti

Last Updated:

Views: 5674

Rating: 4.2 / 5 (53 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Lilliana Bartoletti

Birthday: 1999-11-18

Address: 58866 Tricia Spurs, North Melvinberg, HI 91346-3774

Phone: +50616620367928

Job: Real-Estate Liaison

Hobby: Graffiti, Astronomy, Handball, Magic, Origami, Fashion, Foreign language learning

Introduction: My name is Lilliana Bartoletti, I am a adventurous, pleasant, shiny, beautiful, handsome, zealous, tasty person who loves writing and wants to share my knowledge and understanding with you.