Cron Job to Restart Tomcat
In an HA environment, consider implementing a cron job on each ThingWorx server to restart Tomcat when it detects that the service has stopped in the absence of a comprehensive monitoring system such as Nagios.
Use crontab -e with the following definition:
* * * * * service tomcat start > /dev/null
where tomcat is the name of the Tomcat service.
This job will run every minute. The start command checks the status of Tomcat and does nothing if Tomcat is running.