2012년 2월 19일 일요일

Kill Tomcat process at port 8080


Kill Tomcat process at port 8080

Occasionally the Tomcat server doesn't shutdown in a clean way when using Eclipse. What happens is that port 8080 stays in use and the server can't restart. Exiting Eclipse is not sufficient in this case and a restart of Mac OSX is needed.

So, how to kill the running Tomcat and free port 8080.
Open the terminal window and execute the following commands.

  • sudo lsof -w -n -i tcp:8080
This will give you the pidnumber of the process that runs at 8080. You can then go ahead and kill it.


  • sudo kill -9 pidnumber

댓글 없음: