1. Description of the problem:
Work is unavoidable to restart the service, debug mode occasionally start the project, but failed to start error: Unable to open debugger port (127.0.0.1:60157): java.net.SocketException "socket Closed
2. Cause analysis
The reason for this error is that the port is occupied due to the
3. Workaround
There are two main workarounds: Modify the port configuration (recommended), close the process that occupies the port (not recommended).
Mode One: Modify the port configuration (recommended) the occupied port may be a local port, or it may be a JMX port or a port in debug mode, configure the port location, try to modify the boot Tomcat does not error can be
Mode two: Close the process that occupies the port (not recommended)
Locate the process that occupies the port and close it, but this approach may cause the useful process to be forcibly closed, so it is not recommended
First step: cmd Open command Line window, execute command: NETSTAT-AON|FINDSTR "1099" to find the process that occupies the port
Second step: According to the PID, continue to execute the command: taskkill-f-pid 15380 Close the process
Address idea Startup Project error: Unable to open debugger port (127.0.0.1:60157): java.net.SocketException "Socket closed