i have installed apache-tomcat-6.0.29 on linux. It hosts a web service that is running an important functionality. i have written a cron tab that restarts the server after every 24 hours. After some random duration i am not able to access web service. i check if the apache service is running by using command.
ps -ef | grep apache
i get result
omfprod 9694 1080 0 11:30 pts/4 00:00:00 grep apache
Now i go into $CATALINA_HOME/bin directory and use following shells
If Tomcat is shutting down, it's because one of the apps that it's serving is crashing it.
From the looks of your process status, though, it appears that you need to be more subtle. Only one Tomcat can run on a given set of TCP/IP ports at a time. All other copies will start but be useless waste of resources. So before blindly re-launching Tomcat, you need to check to see if there's one already running.
An IDE is no substitute for an Intelligent Developer.