Idea startup project error: Unable to open debugger port (127.0.0.1:XXXXX)

Table of contents

1. Usage environment:

2. Problems occur:

3. Solution


1. Usage environment:

IntelliJ IDEA 2021.3.3 (Ultimate Edition)

Tomcat 8.5.51

JDK1.8

JRebel Version 2022.1.2.1

2. Problems occur:

This problem does not appear occasionally, not often. It probably occurs every time after the computer is put on standby, and this error will be reported when using JRebel to start tomcat again the next day. From the feedback information, it seems that the port is occupied, but when I use the command to check it, I can't find it. I can't check it by using [Network Connection] in [Traffic Firewall] in 360 software.

Therefore, those methods of checking ports on the Internet will most likely not work. Of course, sometimes occupied ports can be found, but killing the ready-made port still does not work. I have also tried several methods, and I am sure that restarting the IDE does not work .

3. Solution

1. Kill the process that occupies the port number

Check the occupancy status (there is a high probability that it will not be found)

netstat -aon|findstr "xxxxx"

kill process

taskkill -f -pid 7892

2. Modify the occupied port. There are two main places. The first is the startup port and the second is the debug port.

 

2. Terminate the Java(TM) Platform SE binary process in the task manager

Under normal circumstances, open the task manager, click the name column, and view the group. In the large application group, all processes of IDEA are in one group, as shown below:

 When something goes wrong, you will find that there will be a separate process displayed, usually in the background process below. Just end this separate process.

3. Restart the computer, the ultimate trick, tried and tested

Guess you like

Origin blog.csdn.net/caicaimaomao/article/details/124492435