How to start multiple Tomcat servers at the same time

Source: Internet
Author: User

Some time ago, for some purpose, we had to start multiple Tomcat servers at the same time. After checking them online for half a day, we found a solution and shared it with us.

All Tomcat servers I use are zip and non-installed. Take two examples:
After installing the second tomcat, go to the conf subdirectory under the installation directory to open the server. xml file and find the following three places:

(1) modify the HTTP access port (default: port 8080)

<Connector classname = "org. Apache. Coyote. tomcat4.coyoteconnector" Port = "8080"
Minprocessors = "5" maxprocessors = "75"
Enablelookups = "true" redirectport = "8443"
Acceptcount = "100" DEBUG = "0" connectiontimeout = "20000"
Useurivalidationhack = "false" disableuploadtimeout = "true"/>

(About 86 lines) Change 8080 to the port number that is not used by the First tomcat. The port number is used to access the Web.(2) modify the shutdown port (default: Port 8005)

<Server port = "8005" shutdown = "shutdown" DEBUG = "0">

(About 13 rows) Change 8005 to a port number that is not in use, for example, 8095(3) modify the JVM startup port (default: Port 8009)

<Connector classname = "org. Apache. Coyote. tomcat4.coyoteconnector"
Port = "8009" minprocessors = "5" maxprocessors = "75"
Enablelookups = "true" redirectport = "8443"
Acceptcount = "10" DEBUG = "0" connectiontimeout = "20000"
Useurivalidationhack = "false"
Protocolhandlerclassname = "org. Apache. JK. server. jkcoyotehandler"/>

(About 107 rows) Change 8009 to a port number that is not in use, such as 8099
So there is no problem.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.