Resolve "Address already in use" in Tomcat

Home > Search
  by

This error appears in the catalina.out file or when running the configtest.sh command.

~]# cat catalina.out
. . .
Caused by: java.net.BindException: Address already in use

 

This error suggests that Tomcat or TC Server could not bind a port to an IP address, because there is some other service is using the port. For example, if Tomcat is attempting to use port 443, but HTTPD has already used port 443 on the same server, then "Address already in use" will be displayed. First ensure that Tomcat is the only service using the port on the server.

 


Java

If Tomcat is the only service using the port on the server, there may be some issue with Java. Determine the PID being used by Java.

~]# ps -ef | grep Java
12345 . . .

 

Kill the Java process using the -15 signal. 

~]# kill -15 12345

 

Start Tomcat or TC Server.

~]# $catalina_home/bin/startup.sh

 


Webapps

If the error persists, there may be some problem with one of the webapps. Debugging issues with a webapp typicall requires that you work with the application developer. There are far too many possible application issues to list here.



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments