Android Boot Tomcat service error, port occupancy solution

Source: Internet
Author: User

Start Tomcat Server error:
Several ports (8005, 8080, 8009) required by Tomcat v5.5 Server at localhost is already in use. The server may already is running in another process, or a system process could be using the port. To start this server you'll need to stop the other process or change the port number (s).
Cause: Port 8005, 8080, 8009 is occupied. The eclipse could have been turned off with Tomcat turned on, or eclipse would have been off gracefully, causing the previous tomcat to be closed and port occupied.
Workaround:
1), open the Task Manager, find the Tomcat process Javaw.exe, and end it. No solution, look down.
Without this process, it could be that other software is taking up the port.
Run the->cmd-> input NETSTAT-ANB command from the Start menu to see which process is consuming 8080 and 8009 ports, and then close the process in Task Manager.
2), modify the Tomcat configuration file.
Example: C:/tomcat5.5.25/conf/server.xml
<connector port= "8080" maxhttpheadersize= "8192"
maxthreads= "minsparethreads=" maxsparethreads= "75"
Enablelookups= "false" redirectport= "8443" acceptcount= "100"
connectiontimeout= "20000" disableuploadtimeout= "true"/>
Change the port in port= "8080" to a port that is not occupied.

Android Boot Tomcat service error, port occupancy solution

Related Article

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.