Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.9k views
in Technique[技术] by (71.8m points)

tomcat - IntelliJ IDEA - Address localhost:1099 is already in use

I try to launch a web application with IntelliJ IDEA, but I get an error: localhost:1099 already in use.

port 1099 is already in use

I checked the port 1099 with lsof -i:1099 and many other relative commands, so I'm pretty sure the port 1099 is free.

This is my running configuration:

configs

I've also changed the JMX port to 6666 & 6667 & 6668... and it doesn't work, so I think it's not really related to the port itself.

I am so confused... did anyone else have this problem?

Any help is appreciated

question from:https://stackoverflow.com/questions/38986910/intellij-idea-address-localhost1099-is-already-in-use

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Since it is easy to tackle with Command Prompt. You can do the following. I assume you work on Windows.

Open the CMD and type following.

netstat -aon | find "1099"

If a process uses above port, it should return something output like this.

TCP    xxx.xx.xx.xx:1099      xx.xx.xx.xxx:443      ESTABLISHED     2222

The last column value (2222) is referred to the Process ID (PID).

Just KILL it as follows.

taskkill /F /PID 2222

Now you can start your server.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...