tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marco Pöhler <>
Subject tomcat daily restart
Date Tue, 01 Jun 2004 20:01:01 GMT

somewhere in my web application is a memory leak, and the tomcat hangs after
a week and /etc/init.d/tomcat stop won't work also. The application will be
rewritten, so it is not important to find the leak. I'm currently think it
is okay to restart the tomcat every night. I wrote the simple shell script
below to do the job. The script is started as cronjob by root. The Script
works, but my question is: Are there better solutions ? Are there any
pitfalls I havn't seen ?

kill -9 `ps ax | grep java | awk '{ print $1 }'`
/etc/init.d/tomcat start

thanks in advance



To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message