Availability to check whether the Tomcat server is up and running all the time. Please let me know how to know the server availability: listening to Tomcat server port periodically (configured in crontab) and send out notification when there is no response on the port.
I was picturing using wget (tool for pulling web content from the command line) to hit a servlet or JSP running under tomcat, capturing stderr, and piping it into the mail command.... or something like that.
This would tell you, not only if there is a java process but that Tomcat is running properly and that the app in question is running.... at least well enough to respond.
subject: check whether the Tomcat server is up and running