Error: Java.net.bindexception:address already in use:jvm_bind:8080

Source: Internet
Author: User

Cause: 8080 ports are occupied

This means that port 80 (the port is Tomcat's listening port) has been occupied by other programs, first use the command prompt "Netstat-ano" command to display the port status, then find the port in the results, and then according to its PID in the input "tasklist" command display to find its corresponding program, it is known To identify the source of the procedure and to take appropriate measures.

The method can be used as follows:

Using the Netstat-ano command result:

Proto Local Address Foreign address State PID

TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 2544

TCP 0.0.0.0:100 0.0.0.0:0 LISTENING 2544

TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 1404

TCP 0.0.0.0:445 0.0.0.0:0 LISTENING 4

TCP 0.0.0.0:1110 0.0.0.0:0 LISTENING 228

TCP 127.0.0.1:1025 0.0.0.0:0 LISTENING 1052

TCP 127.0.0.1:1159 127.0.0.1:1110 close_wait 2992

TCP 127.0.0.1:1297 127.0.0.1:1110 close_wait 2992

TCP 127.0.0.1:1324 127.0.0.1:1110 close_wait 2992

Visible 80 ports are occupied by the process of PID 2544.

With the tasklist command:

Image name PID session name Session # Memory usage

========================= ====== ================ ======== ============

System Idle Process 0 Console 0 K

System 4 Console 0 K

WebThunder.exe 2544 Console 0 12,120 K

Java.exe 2884 Console 0 6,296 K

Tasklist.exe 3464 Console 0 4,372 K

Visible 2544 is the WebThunder.exe process. Turn it off. Restart Tomcat. Ok!

I use this method to find out that a python.exe process takes up the port and then it turns out that the Plone program occupies 8080 ports. You can then close it.

1, the standalone Tomcat is not turned off. The self-installing Tomcat program is set to run automatically, or if it was previously run, close myecplipse or JBuilder, find the Tomcat process in Task Manager, kill it, You can. Sometimes when Tomcat shuts down illegally, it still exists in the process and still occupies port 8080. So just kill the process.



2. Install other software that takes up Tomcat's ports. Check with the tools that can view the ports, or change the tomcat default port directly.

Error: Java.net.bindexception:address already in use:jvm_bind:8080

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.