Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

We have several webapps deployed to a single Tomcat 7 server. Is there a way to monitor the status (uptime, memory usage, etc.) of each webapp deployed to a Tomcat server?

We are using Nagios to monitor basic server status (ie. disk usage, ping, memory usage, etc.), and would be great if we can integrate each webapp status into Nagios as well.

We would also like such integration to alert whenever a webapp reaches a certain threshold limit for memory usage.

EDIT: We're running Tomcat on Ubuntu.

Is there such a way?

Thanks.

share|improve this question
    
Take a look at check_tomcat.pl, check_jmx or JBossNagiosPlugin –  quanta Aug 1 '11 at 10:01
    
On which OS are you running Tomcat? –  Lucky Luke Aug 1 '11 at 14:29
    
We're running it on Ubuntu. –  Shane Oliver Aug 2 '11 at 4:40

2 Answers 2

You should take a look at JavaMelody and PSI Probe:

The goal of JavaMelody is to monitor Java or Java EE application servers in QA and production environments. It is not a tool to simulate requests from users, it is a tool to measure and calculate statistics on real operation of an application depending on the usage of the application by users.

http://code.google.com/p/javamelody/

PSI Probe is a community-driven fork of Lambda Probe distributed under the same open-source license (GPLv2). It is intended to replace and extend Tomcat Manager, making it easier to manage and monitor an instance of Apache Tomcat.

http://code.google.com/p/psi-probe/

share|improve this answer
    
Thanks for the suggestions. Will look into PSI probe and see what we can get from there. –  Shane Oliver Aug 2 '11 at 4:40
    
I've tested Javamelody, it's super-easy to use. Impressive ! –  smonff Feb 2 at 12:03

CA Wily Introscope is a pretty neat tool for this. Loads of features including graphs of multiple Tomcat instances' GC heap, thread count, error count, stall count, back end health, etc. Automated email alerts can also be set up to alert maintenance in case of abnormal situations.

http://www.thenewreality.be/presentations/pdf/Day2Track6/265CTAC.pdf

(PS - I don't think that this one is free though. Good tool nonetheless)

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.