Exception Java.net.SocketException:Unrecognized Windows Sockets error:0: Jvm_bind processing Method __JVM

Source: Internet
Author: User
Tags server port tomcat server

A recent exception was thrown when Tomcat was started Java.net.SocketException:Unrecognized Windows Sockets error:0: Jvm_bind exception, The exception means that your Tomcat server's port is occupied, such as my port is 8080.

The solutions are generally divided into two ways:

1. Modify the port number of the Server.xml file in the Tomcat directory (presumably everyone knows this workaround).

2. Close the process that currently occupies the port

The first approach is not detailed here, because it is very simple.

The second solution is described in detail below

First go to the command line and enter Netstat-ano to see exactly which process is taking up your server port.

For example, your server port is 3389, and you can see that the port is being consumed by the PID 1360 process.

Then you just need to find the PID 1360 process and end the process in Windows Task Manager.

Entering the Windows command line, enter the tasklist command to query the status of all current processes in the system, and find the process of PID 1360

Name is Svchost.exe

Close the process in Windows Explorer (svchost.exe)

The above example simply provides a way to find the process that occupies the port. PS: How to get to the Windows service main process went ....

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.