Saturday, July 9, 2016

Solve java.net.BindException: Address already in use error messages

Ssh into the instance and check the port that is causing issues:

netstat -pan | grep ":4503 "

You should get exact pid of the process and status:

In this case the program is still busy in CLOSE_WAIT.
CLOSE_WAIT means your program is still running, and has not closed the socket.

You can get the java pid number and kill the program to clear the socket.

No comments:

Post a Comment