Tomcat clean and restart procedure

What is it?

Occassionally, Tomcat can get in strange state. This often happens after a software upgrade, but has been noted in other cases. The immediate sympton in case of a software upgrade is that when your restart the Tomcat daemon, it is still running the old software version.

In this case, the best option is to stop the Tomcat daemon, clean the configuration work directories and restart the daemon.


Follow the procedure below:

  1. Stop the Tomcat daemon. service tomcat5 stop
  2. Delete the content of tomcat's work directory. rm -rf /usr/share/tomcat5/work/*
  3. Delete the tomcat webapp cache for non-tomcat applications. cd /usr/share/tomcat5/webapps/. Delete rm -rf all directories except webdav, balancer and ROOT.
  4. Restart the Tomcat daemon. service tomcat5 stop

Last edit:

Number of topics: 0

Maintainer: GavinMcCance

This topic: LCG > FtsWlcg > FtsRelease15 > FtsProcedures15 > FtsProcedureTomcatClean15
Topic revision: r1 - 2006-04-05 - GavinMcCance
This site is powered by the TWiki collaboration platform Powered by PerlCopyright & 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
or Ideas, requests, problems regarding TWiki? use Discourse or Send feedback