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

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
connections 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

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

Tomcat connections

2011-04-29 Thread Monty wig
Gurus - I am working on a situation where Apache spits Proxy Errors while trying to get a page form Tomcat. We are running Apache 2.2.3 and tomcat 5.5 on the same box and using mod_proxy to redirect traffic to tomcat on port 8080. Tomcat has maxThreads=150 but when we look at the total # of

Re: Tomcat connections

2011-04-29 Thread André Warnier
Monty wig wrote: Gurus - I am working on a situation where Apache spits Proxy Errors while trying to get a page form Tomcat. We are running Apache 2.2.3 and tomcat 5.5 on the same box and using mod_proxy to redirect traffic to tomcat on port 8080. Tomcat has maxThreads=150 but when we look at

RE: Tomcat connections not closing.

2007-11-02 Thread Roark, Mike
: Tomcat connections not closing. Mike- I would strongly suggest use of Version Control for archiving your configuration files server.xml/web.xml and context.xml, catalina.policy, logging.properties, workers.properties, tomcat-users.xml In the case of axis you want to archive axis2.xml

Re: Tomcat connections not closing.

2007-11-01 Thread Martin Gainty
@tomcat.apache.org; [EMAIL PROTECTED] Sent: Wednesday, October 31, 2007 11:04 AM Subject: RE: Tomcat connections not closing. Well, yes and no. Yes, the problem has abated, and possibly been eliminated. However, we have no idea what change fixed it. We changed nothing in tomcat, but some changes

RE: Tomcat connections not closing.

2007-10-31 Thread Roark, Mike
to look into it, but just keeping watch over it... -Mike -Original Message- From: Ralph Goers [mailto:[EMAIL PROTECTED] Sent: Saturday, October 27, 2007 10:48 AM To: Tomcat Users List Subject: Re: Tomcat connections not closing. Mike, Have you been able to make any progress

Re: Tomcat connections not closing.

2007-10-27 Thread Ralph Goers
Mike, Have you been able to make any progress with this? I'm very interested in the outcome as we experience the same problem. Ralph Roark, Mike wrote: Filip, Thanks for the help. You were right about the default for disableUploadTimeout. I must have been looking at 5.0 docs before, it

Re: Tomcat connections not closing.

2007-10-27 Thread Martin Gainty
http://tomcat.apache.org/tomcat-4.1-doc/config/coyote.html I would check the connectionLinger parameter M-- - Original Message - From: Ralph Goers [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Saturday, October 27, 2007 11:47 AM Subject: Re: Tomcat connections

Re: Tomcat connections not closing.

2007-10-27 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, Martin Gainty wrote: http://tomcat.apache.org/tomcat-4.1-doc/config/coyote.html I would check the connectionLinger parameter Version mismatch. :( Please match versions next time you are attempting to give advise. - -chris -BEGIN

RE: Tomcat connections not closing.

2007-10-15 Thread Roark, Mike
not even seeing that. I would expect if I don't send a GET that the connectionTimeout would definitely apply. -Mike -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 10, 2007 1:18 PM To: Tomcat Users List Subject: Re: Tomcat connections

RE: Tomcat connections not closing.

2007-10-10 Thread Roark, Mike
:[EMAIL PROTECTED] Sent: Friday, October 05, 2007 9:34 AM To: Tomcat Users List Subject: RE: Tomcat connections not closing. Thanks Filip. We believe that disableUploadTimeout is defaulting to false in our setup. connectionTimeout seems to refer to the time until the request URI is received. We

Re: Tomcat connections not closing.

2007-10-10 Thread Filip Hanik - Dev Lists
05, 2007 9:34 AM To: Tomcat Users List Subject: RE: Tomcat connections not closing. Thanks Filip. We believe that disableUploadTimeout is defaulting to false in our setup. connectionTimeout seems to refer to the time until the request URI is received. We are receiving the URI, the problem occurs

Re: Tomcat connections not closing.

2007-10-08 Thread Filip Hanik - Dev Lists
connectionTimeout - gets set to your sockets SO_TIMEOUT, but disableUploadTimeout=true unsets the value in the line above, causing socketWrite0 to not have a timeout, hence if you set disableUploadTimeout=false, then you will make sure that socket read and writes from your servlets/jsps, will

Re: Tomcat connections not closing.

2007-10-07 Thread rgoers
) at org.apache.catalina.connector.CoyoteWriter.write(CoyoteWriter.java:142) at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:276) -- View this message in context: http://www.nabble.com/Tomcat-connections-not-closing.-tf4571365.html#a13080277 Sent from

Re: Tomcat connections not closing.

2007-10-05 Thread Rainer Jung
Some comments, but not a real solution: The FIN from the client comes in, when the server had already sent out a couple of packets without getting an ACK. The ACK in the FIN does not ACK the latest server packet, instead it is related to a packet some steps earlier (you can check the sequence

RE: Tomcat connections not closing.

2007-10-05 Thread Roark, Mike
though, just to make sure. -Mike -Original Message- From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] Sent: Thursday, October 04, 2007 4:03 PM To: Tomcat Users List Subject: Re: Tomcat connections not closing. try setting connectionTimeout=5000 disableUploadTimeout

RE: Tomcat connections not closing.

2007-10-05 Thread Roark, Mike
Thank Rainer. That's a good point about the sequence numbers. -Mike -Original Message- From: Rainer Jung [mailto:[EMAIL PROTECTED] Sent: Friday, October 05, 2007 2:44 AM To: Tomcat Users List Subject: Re: Tomcat connections not closing. Some comments, but not a real solution

Tomcat connections not closing.

2007-10-04 Thread Roark, Mike
Hello Tomcat users, We are having difficulty with connections to Tomcat remaining open after the client hits stop in their browser. This only seems to happen when we have a particular combination of load balancer hardware in front of the tomcats. We are also running apache and have not seen the

Re: Tomcat connections not closing.

2007-10-04 Thread Filip Hanik - Dev Lists
try setting connectionTimeout=5000 disableUploadTimeout=false I believe the 2nd parameter, should not set the timeout to infinite while you are inside of a request Filip Roark, Mike wrote: Hello Tomcat users, We are having difficulty with connections to Tomcat remaining open after the