Tomcat Restart

Move Path - Apache Tomcat Home

cd app/apache-tomcat-8.0.17/bin

Shut Down

./shutdown.sh

Find Java/Tomcat Process

ps -ef|grep java
  • Verify whether all java processes are killed using the above pf –ef |grep java command
  • login_user 2130 1 0 Apr20 ? 01:15:14/var/jdk1.8.0_25//bin/java -Djava.util.logging.config.file=/home/neevlabs/app/apache-tomcat-8.0.17/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djavax.servlet.request.encoding=UTF-8 -Dfile.encoding=UTF-8 -server -Xms512m -Xmx512m -Xss256K -Djava.endorsed.dirs=/home/neevlabs/app/apache-tomcat-8.0.17/endorsed -classpath /home/neevlabs/app/apache-tomcat-8.0.17/bin/bootstrap.jar:/home/neevlabs/app/apache-tomcat-8.0.17/bin/tomcat-juli.jar -Dcatalina.base=/home/neevlabs/app/apache-tomcat-8.0.17 -Dcatalina.home=/home/neevlabs/app/apache-tomcat-8.0.17 -Djava.io.tmpdir=/home/neevlabs/app/apache-tomcat-8.0.17/temp org.apache.catalina.startup.Bootstrap start
  • If there is any process still running please kill it using the kill -9 command
  • Here the process id is 2130

Kill Process

kill -9 2130 (Kill all java processes explicitly)

Check Again Process and Start Tomcat

ps -ef|grep java (Check again whether all processes are killed)

Start Server

./startup.sh

Check Status Of Tomcat

cd ../logs

open catalina.out file and ensure that all context paths are loaded and Tomcat is running properly.