java.net.BindException: Address already in use:{yourPort#}

This is a common issue when your Java web hosting runs out of allocated memory for either its heap or permspace. Apparently when you run out of memory, Tomcat stalls, and you are unable to shut it down propertly with ./shutdown. So what you need to do is find the PID and kill the process.

  1. SSH into your account
  2. ps -u {username}
    -This will show list of processes and you'll see one or two java enteries then its likely its stalled.
  3. kill -9 {PID}
    -Use the PID number on the left to kill the process.
  4. Now you can start your Tomcat properly using ./startup.sh

This is common problem for people who purchase Starter package and try to run a framework. Frameworks usually require at least 64mb of memory to run effectively.

  • 191 Users Found This Useful
Was this answer helpful?

Related Articles

Spring Framework

Need to develop Plain Old JAVA Objects? Want to have fun developing your application? Then we...

Subdomain Handling Tutorial

This tutorial explains how you can host subdomains with JavaPipe's Tomcat hosting. This is...

Pointer Domain Handling Tutorial

This tutorial explains how you can host pointer domains with a Java web hosting package from...

Choosing between JBoss7's Standalone or Domain features.

JBoss 7 introduced new feature called managed domains. Basically this is a multi-server...

How do I restart my tomcat?

However, if you have a private Tomcat instance with a Java host like us, then you have the...