Re: Monitoring multiple tomcat instances from single app

2013-04-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 David, 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

Re: Monitoring multiple tomcat instances from single app

2013-04-10 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Neven, On 4/9/13 10:17 PM, Neven Cvetkovic wrote: David, Here's an example application that has a CounterServlet that counts hits for example... Here are the classes that I used - CounterServlet - just counts number of hits, calls

Re: Monitoring multiple tomcat instances from single app

2013-04-10 Thread David kerber
On 4/9/2013 9:59 PM, Neven Cvetkovic wrote: On Tue, Apr 9, 2013 at 3:46 PM, David kerberdcker...@verizon.net wrote: Is there a restart command available? Obviously I need to do some more research now that you've gotten me started. David, I don't think you can restart Tomcat JVM process.

Monitoring multiple tomcat instances from single app

2013-04-09 Thread David kerber
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

Re: Monitoring multiple tomcat instances from single app

2013-04-09 Thread Neven Cvetkovic
Hey David, Just one clarification - I assume TC refers to Apache Tomcat, and not tcat (mulesoft) or tc server (vmware). You could create a script that uses JMX to connect to each one of the instances and polls for certain MBeans that have access to your runtime data (your counters). You could

Re: Monitoring multiple tomcat instances from single app

2013-04-09 Thread David kerber
On 4/9/2013 3:39 PM, Neven Cvetkovic wrote: Hey David, Just one clarification - I assume TC refers to Apache Tomcat, and not tcat (mulesoft) or tc server (vmware). Yes, that's correct. TC = Apache Tomcat You could create a script that uses JMX to connect to each one of the instances and

Re: Monitoring multiple tomcat instances from single app

2013-04-09 Thread Neven Cvetkovic
On Tue, Apr 9, 2013 at 3:46 PM, David kerber dcker...@verizon.net wrote: Is there a restart command available? Obviously I need to do some more research now that you've gotten me started. David, I don't think you can restart Tomcat JVM process. Why do you want to do that? What are you

Re: Monitoring multiple tomcat instances from single app

2013-04-09 Thread Neven Cvetkovic
David, Here's an example application that has a CounterServlet that counts hits for example... Here are the classes that I used - CounterServlet - just counts number of hits, calls MyCounter.incrementAndGet() static method - MyCounter - class that implements the counter (static calls to reset