What do you use for monitoring your Apache Tomcat servers? I have used jconsole to manually connect and look at the statistics. I'm wondering if there are any standard tools for watching the health of the java process.
Sean Carolan wrote:
What do you use for monitoring your Apache Tomcat servers? I have used jconsole to manually connect and look at the statistics. I'm wondering if there are any standard tools for watching the health of the java process.
Hi, I'm interesting too in tomcat monitoring. Some times i have a problems with java, for example i get java.lang.OutOfMemoryError
some idea is monitor catalina.out log for such errors, but may be there are a standard tools for java monitoring\restarting.
Hi You will probably get better answers by asking on the tomcat users list. See tomcat.apache.org.
Tomcat publishes its health statistics using jmx and if your developers were thorough it is likely that application statistics would also be available in jmx. There is a number of expensive and not so expensive commercial tools to setup monitoring for jmx. Tivoli and AppManager comes to mind. I believe there might be support for jmx monitoring in cacti so that would be worth googling. Other than that a good test would be to monitor output of a wget request to your tomcat server which gives a good indiction of the health of your application server.
Also have a look at http://www.lambdaprobe.org/d/index.htm which is a tool to monitor multiple tomcats with.
Regards
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Sergej kandyla Sent: 20 January 2009 11:06 To: CentOS mailing list Subject: Re: [CentOS] Tomcat Monitoring
Sean Carolan wrote:
What do you use for monitoring your Apache Tomcat servers? I have used jconsole to manually connect and look at the statistics. I'm wondering if there are any standard tools for watching the health of the java process.
Hi, I'm interesting too in tomcat monitoring. Some times i have a problems with java, for example i get java.lang.OutOfMemoryError
some idea is monitor catalina.out log for such errors, but may be
there
are a standard tools for java monitoring\restarting.
______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________
Gerhardus.Geldenhuis@gta-travel.com wrote:
Hi You will probably get better answers by asking on the tomcat users list. See tomcat.apache.org.
Tomcat publishes its health statistics using jmx and if your developers were thorough it is likely that application statistics would also be available in jmx. There is a number of expensive and not so expensive commercial tools to setup monitoring for jmx. Tivoli and AppManager comes to mind. I believe there might be support for jmx monitoring in cacti so that would be worth googling. Other than that a good test would be to monitor output of a wget request to your tomcat server which gives a good indiction of the health of your application server.
Also have a look at http://www.lambdaprobe.org/d/index.htm which is a tool to monitor multiple tomcats with.
OpenNMS can monitor jmx values (as well as snmp and doing icmp and httpd probes, etc.). http://www.opennms.org.
--- Les Mikesell lesmikesell@gmail.com
On Mon, Jan 19, 2009 at 10:27 PM, Sean Carolan scarolan@gmail.com wrote:
What do you use for monitoring your Apache Tomcat servers? I have used jconsole to manually connect and look at the statistics. I'm wondering if there are any standard tools for watching the health of the java process. _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
You can use snmp and cacti to monitor some of the tomcat information. You simply need to add a few configuration modifications.
See http://java.sun.com/j2se/1.5.0/docs/guide/management/SNMP.html
-----Original Message----- From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Jim Perrin Sent: 20 January 2009 13:50 To: CentOS mailing list Subject: Re: [CentOS] Tomcat Monitoring
On Mon, Jan 19, 2009 at 10:27 PM, Sean Carolan scarolan@gmail.com wrote:
What do you use for monitoring your Apache Tomcat servers? I have
used
jconsole to manually connect and look at the statistics. I'm
wondering if
there are any standard tools for watching the health of the java
process.
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
You can use snmp and cacti to monitor some of the tomcat information. You simply need to add a few configuration modifications.
See http://java.sun.com/j2se/1.5.0/docs/guide/management/SNMP.html
some more usefull links:
http://www.snmp4j.org http://java.sun.com/j2se/1.5.0/docs/guide/management/SNMP.html http://blogs.sun.com/jmxetc/entry/simple_is_not_easy https://opendmk.dev.java.net/ http://java.sun.com/products/jdmk/index.jsp http://www.agentpp.com/agen/agen.html http://java.sun.com/j2se/1.5.0/docs/api/java/lang/management/package-sum mary.html http://docs.sun.com/app/docs/doc/816-7609/6mdjrf88g?a=view
Regards
______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________
You can use snmp and cacti to monitor some of the tomcat information. You simply need to add a few configuration modifications.
See http://java.sun.com/j2se/1.5.0/docs/guide/management/SNMP.html%5C
Thank you all for the replies. We already use Nagios so I'm hoping for a nagios-friendly solution. Unfortunately the check_jmx plugin listed on the Nagios exchange doesn't seem to work properly, being unable to monitor Heap Memory Usage over 2Gb.
Does anyone else have a dependable nagios plugin for keeping tabs on Nagios? If not we will write our own.
thanks
Sean
Sean Carolan wrote:
You can use snmp and cacti to monitor some of the tomcat information. You simply need to add a few configuration modifications.
See http://java.sun.com/j2se/1.5.0/docs/guide/management/SNMP.html%5C
Thank you all for the replies. We already use Nagios so I'm hoping for a nagios-friendly solution. Unfortunately the check_jmx plugin listed on the Nagios exchange doesn't seem to work properly, being unable to monitor Heap Memory Usage over 2Gb.
Monitoring heap is somewhat black magic in my experience, filled with false alarms.
You can use this jsp to poll the heap if you want:
<% Runtime runtime = Runtime.getRuntime(); %> <%=runtime.freeMemory()%> memory free of <%=runtime.totalMemory()%> total memory
I don't monitor heap in nagios, only in cacti. At my last company I had simple crons to monitor when the JVMs spit out of memory errors and restarted them automatically.
A couple companies ago I polled heap for weblogic and stored the values in RRDtool then wrote scripts to get the averages over a period of time to detect low heap levels and alert, took a lot of work to get right and even after all the work there was still some false alarms.
Does anyone else have a dependable nagios plugin for keeping tabs on Nagios? If not we will write our own.
Good luck..a big problem with some JMX client implementations is that they spin up a JVM each time they want a stat. Last time I talked to the people at Groundwork they said they had some sort of JMX tie-in, and their stuff is nagios based you may find something there.
nate