tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: Monitoring multiple tomcat instances from single app
Date Wed, 10 Apr 2013 16:33:01 GMT
Hash: SHA256


On 4/9/13 3:18 PM, David kerber wrote:
> My system has several instances of TC 7.0.22, running on windows
> server 2008 R2, and JRE 6.0.27.  And yes, I know both TC and Java
> could use an update...
> The TC instances are all running the same webapp, as a Windows
> service, though not all have the exact same version of the webapp.
> Each is running from its own catalina.base directory, but all have
> the same catalina.home.  Each instance is listening on a different
> TCP port, and everything is working fine, handling several hundred
> requests per second.
> What I'd like to do is develop an easier way of monitoring each
> instance than what I have now.  In particular, I'd like to get
> visibility to a couple of the webapp's internal variables (they're
> counters), as well as being able to stop and restart the instances
> if necessary.  My current method is that the app has a browser page
> that I can log into and see the variables of interest, and I use
> tomcat7w to control the service instances.  Of course, that
> requires me to log into each one of them individually to check on
> them.  That requirement for separate logins is what I'd like to
> eliminate if possible.
> Is this even remotely doable from (ideally) another webapp running
> on the same server, or maybe an external non-browser app?  Or am I
> just dreaming?  Can JMX allow me to see internal application
> variables and control services?

Since you've already got your own "snooping" page set up, you might
want to stick with that unless it's really not meeting your needs.

When we deploy servers, we deploy the manager webapp, lock it down to
only allow localhost access, and expose the JMXProxyServlet to allow
external processes to peek at the JMX-exposed data from the JVM and
Tomcat. We happen to aggregate that data using Nagios, but you could
do pretty much anything you wanted to do with that data.

I have never written by own JMX bean and published it out to JMX --
not sure how hard that is, but it shouldn't be too difficult.

See for more information
about monitoring the JVM and Tomcat itself. If that kind of thing
looks attractive to you, perhaps exposing some application data via
JMX will be the most convenient for you.

- -chris
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: GPGTools -
Comment: Using GnuPG with Thunderbird -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message