tomcat-users mailing list archives

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

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 ?

----%<-----
#!/bin/bash
kill -9 `ps ax | grep java | awk '{ print $1 }'`
/etc/init.d/tomcat start
---->%-----

thanks in advance

Marco

---
http://www.tintenpatronen-preisvergleich.de
http://www.contact-lenses-price-comparison.com



---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message