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

Categories

0 votes
2.1k 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 Reply

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

57.0k users

...