-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Shashank,
On 9/22/2010 8:30 AM, Mendiratta, Shashank wrote: > Thanx , about that here the outbound port 80 is blocked so we cannot > wget , moreover this wont solve the problem as to why the the services > are getting hung. Hmm. Can you monitor from the server itself? That's not unusual to do. Also, connections to localhost:80 usually work even when software-based firewalls are in place, since the local host is usually considered trusted. > Well I had an idea, please critic it. Why not monitor the server.log > file if we get some kind of error. We send an alert and then restart the > service . Befire that we have to make a repository of types of error > that can occur We have one particularly poorly-written webapp that has a habit of running out of memory. We have segregated it into it's own Tomcat instance and actually do scan the log file for errors in the way you describe. The script is essentially this: grep -m 1 OutOfMemoryError ${LOGFILE} > /dev/null if [ "$?" == "0" ] ; then # notify an administrator fi It's not particularly elegant, but it gets the job done. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyaS0wACgkQ9CaO5/Lv0PCxXQCgwIlct+hqxxejBAEUAPw8+gXj EiAAoImkWA55dP3Nw8iuWIqM2P/N7Hvk =avt1 -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org