Programmatically retrieve number of tomcat connections

2014-07-31 Thread Campbell, Lance
Tomcat 7 Is there a way via a Java servlet to get the number of tomcat connections? Thanks, Lance Campbellhttp://illinois.edu/person/lance Software Architect Web Services at Public Affairs 217-333-0382 [University of Illinois at Urbana-Champaign logo]http://illinois.edu/

Re: Programmatically retrieve number of tomcat connections

2014-07-31 Thread Mark Thomas
On 31/07/2014 17:06, Campbell, Lance wrote: Tomcat 7 Is there a way via a Java servlet to get the number of tomcat connections? Connections from what to what in what state? With or without non-Servlet API calls? Mark - To

RE: Programmatically retrieve number of tomcat connections

2014-07-31 Thread Campbell, Lance
-Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Thursday, July 31, 2014 11:10 AM To: Tomcat Users List Subject: Re: Programmatically retrieve number of tomcat connections On 31/07/2014 17:06, Campbell, Lance wrote: Tomcat 7 Is there a way via a Java servlet

RE: Programmatically retrieve number of tomcat connections

2014-07-31 Thread Igal Sapir
a servlet. Thanks, Lance Campbell Software Architect Web Services at Public Affairs 217-333-0382 -Original Message- From: Mark Thomas [mailto:ma...@apache.org] Sent: Thursday, July 31, 2014 11:10 AM To: Tomcat Users List Subject: Re: Programmatically retrieve number of tomcat

RE: Programmatically retrieve number of tomcat connections

2014-07-31 Thread Campbell, Lance
To: Tomcat Users List Subject: RE: Programmatically retrieve number of tomcat connections Write a simple ServletFilter On Jul 31, 2014 9:33 AM, Campbell, Lance la...@illinois.edu wrote: Good question. I would like to have a servlet that would return to me the number of tomcat HTTP connections. I

Re: Programmatically retrieve number of tomcat connections

2014-07-31 Thread Mark Thomas
To: Tomcat Users List Subject: RE: Programmatically retrieve number of tomcat connections Write a simple ServletFilter On Jul 31, 2014 9:33 AM, Campbell, Lance la...@illinois.edu wrote: Good question. I would like to have a servlet that would return to me the number of tomcat HTTP

Re: Programmatically retrieve number of tomcat connections

2014-07-31 Thread Igal @ getRailo.org
, Lance Campbell Software Architect Web Services at Public Affairs 217-333-0382 -Original Message- From: Igal Sapir [mailto:i...@getrailo.org] Sent: Thursday, July 31, 2014 11:35 AM To: Tomcat Users List Subject: RE: Programmatically retrieve number of tomcat connections Write a simple

RE: Programmatically retrieve number of tomcat connections

2014-07-31 Thread Caldarale, Charles R
From: Igal @ getRailo.org [mailto:i...@getrailo.org] Subject: Re: Programmatically retrieve number of tomcat connections 1) you create a class that implements the Filter interface and maintains the count in an AtomicLong object. 2) you increment the AtomicLong before the call

RE: Programmatically retrieve number of tomcat connections

2014-07-31 Thread Igal Sapir
Isn't Filter.doFilter() called once for each incoming http request? On Jul 31, 2014 10:24 AM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Igal @ getRailo.org [mailto:i...@getrailo.org] Subject: Re: Programmatically retrieve number of tomcat connections 1) you create

Re: Programmatically retrieve number of tomcat connections

2014-07-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Chuck, On 7/31/14, 1:22 PM, Caldarale, Charles R wrote: From: Igal @ getRailo.org [mailto:i...@getrailo.org] Subject: Re: Programmatically retrieve number of tomcat connections 1) you create a class that implements the Filter interface

RE: Programmatically retrieve number of tomcat connections

2014-07-31 Thread Caldarale, Charles R
From: Igal Sapir [mailto:i...@getrailo.org] Subject: RE: Programmatically retrieve number of tomcat connections Isn't Filter.doFilter() called once for each incoming http request? Yes, which is why it has nothing to do with the number of _connections_. - Chuck THIS COMMUNICATION MAY

Re: Programmatically retrieve number of tomcat connections

2014-07-31 Thread André Warnier
Caldarale, Charles R wrote: From: Igal Sapir [mailto:i...@getrailo.org] Subject: RE: Programmatically retrieve number of tomcat connections Isn't Filter.doFilter() called once for each incoming http request? Yes, which is why it has nothing to do with the number of _connections_

Re: Programmatically retrieve number of tomcat connections

2014-07-31 Thread Igal @ getRailo.org
André -- thank you for making this clear. On 7/31/2014 2:27 PM, André Warnier wrote: Caldarale, Charles R wrote: From: Igal Sapir Subject: RE: Programmatically retrieve number of tomcat connections Isn't Filter.doFilter() called once for each incoming http request? Yes, which is why