Linux: Release port 8080 after stopping Tomcat – Port 8080 in use by Java


Warning: Use of undefined constant user_level - assumed 'user_level' (this will throw an Error in a future version of PHP) in /homepages/3/d98111892/htdocs/insanelabs/htdocs/wp-content/plugins/ultimate-google-analytics/ultimate_ga.php on line 524

It’s past 3 AM and I finally found out why after stopping my Tomcat server I’m unable to successfully start it again. It seem like Java process won’t go away. To get around that I added the following line to my Tomcat shutdown.sh script:
killall -9 java
and all is well now. Still unorthodox, but works for me. I will write a script to find the process and kill it properly later on.

One thought on “Linux: Release port 8080 after stopping Tomcat – Port 8080 in use by Java


  1. Warning: Use of undefined constant user_level - assumed 'user_level' (this will throw an Error in a future version of PHP) in /homepages/3/d98111892/htdocs/insanelabs/htdocs/wp-content/plugins/ultimate-google-analytics/ultimate_ga.php on line 524
    g says:

    Warning: Use of undefined constant user_level - assumed 'user_level' (this will throw an Error in a future version of PHP) in /homepages/3/d98111892/htdocs/insanelabs/htdocs/wp-content/plugins/ultimate-google-analytics/ultimate_ga.php on line 524

    i think… the java program which is taking over that port is
    the common way… well,
    how can I say.
    Try to disable or shutdown the tomcat first,

    then see it again… is it used or not.
    hope this might help without killing java program which is still running.

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.