Monitor4Tomcat – is a set of scripts that can be used to restart Tomcat when exceptions or other errors have occurred in the application.
These scripts can help your Apache Tomcat application to continue to run in the face of OutOfMemory exceptions or other un-expected exceptions.
The script will check for OutOfMemory exceptions in the logs and sample pages from tomcat to make sure the application is servicing requests.
If a problem occurs the monitor can stop / start the tomcat JVM and / or the entire application.
The monitor requires bash and perl to run. It should run in most reasonable Linux / UNIX environments.