Training, Open Source computer languages
PerlPHPPythonMySQLApache / TomcatTclRubyJavaC and C++LinuxCSS 
Search for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
 
For 2023 (and 2024 ...) - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))
Monitoring Memory and Tomcat

Posted by Kev_Coomber (Kev Coomber), 29 August 2006
Hi all, hope I'm in the right place for this.

I have a Tomcat 5.0 instance serving a couple of apps with fairly constant usage through the day. The hits are creeping upwards over time and about once a week for the last few weeks Tomcat has just stopped working. The logs show the applications working away and the next entry will be the restart.

Does anyone have any suggestions for monitoring what is happening? Tomcat is routinly restarted on the server each night to allow a refresh of some of the caching for the application, long standing issue that has no bearing on the issue apart from to say that Tomcat has only ever been running a maximum of a day when it happens.

While I'm at it can I recycle catalina.out as that is getting a bit big?

Any help on getting more clue to where the problem lies gratefully recieved.



Posted by Kev_Coomber (Kev Coomber), 29 August 2006
By the way, this all runs on Fedora core 3.

Posted by admin (Graham Ellis), 30 August 2006
Has the application closed down neatly through the destructor, or simply diasppeared?   If it's the former, you can perhaps add some trace code; it it's the latter, it's rather more awkward but I would be tempted to put in some sort of logging and look for patterns just before the failure.

Shouldn't be any problem recycling catalina.out; how about a crontab job that "mv"s the file to a separate logging directory, giving it a new name based on the day iof the week so that you have 7 old files to look back at?

Posted by Kev_Coomber (Kev Coomber), 30 August 2006
Everything appears to just disappear.

Adding logging to the application is a problem due to the external testing and certification required. I am working on the assumption that either the system is running out of resources for some reason or the application is bringing down Tomcat rather than a problem with Tomcat itself. I guess I need to get improved logging into the application before the next testing phase.

Thanks for the help.



This page is a thread posted to the opentalk forum at www.opentalk.org.uk and archived here for reference. To jump to the archive index please follow this link.

You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2024: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 793803 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho