I found the cause of the issue. A call was being made to a jsp that opened a 
connection to another application sitting on the same server (via orbd.exe). 
This jsp is being called approx 10 times a second (as it is a monitor jsp) and 
the majority of requests are being served but on occasion it would seem that 
the request is not being served and a connection is left dangling. So I guess 
it was not Tomcats fault in the end! 

I found some error messages in the catalina log alluding to a connection 
problem related to a jsp that is not actually part of the webapp - hence why I 
didn't think of it until I saw the stack trace.

To prove it was this jsp, I took out the code that creates a connection and 
found the windows threads just stood at the same thread count. Gonna have to 
have a word with the TA about this...


----- Original Message ----
From: "Caldarale, Charles R" <chuck.caldar...@unisys.com>
To: Tomcat Users List <users@tomcat.apache.org>
Sent: Tuesday, 14 July, 2009 13:00:53
Subject: RE: Tomcat 5.5.23 keeps starting threads until OS runs out of memory

> From: Rahman Akhlaqur [mailto:aki...@yahoo.co.uk]
> Subject: Re: Tomcat 5.5.23 keeps starting threads until OS runs out of
> memory
> 
> I have some more info about the issue that I think is related. I found
> our Tomcat executable is also establishing a lot of TCP connections.

Tomcat isn't, your webapp is.  Don't blame Tomcat for your misbehaving code.

> Is this some sort of tomcat ping?

No, it's your webapp opening up some sort of connection - likely RMI, judging 
from your stack trace.

> Our tomcat connectors are set up to limit the max http threads as below

That's irrelevant, since it's your webapp starting the extra threads.

> The only timeouts are for the http requests, are there any other
> timeouts I can configure that could potentially stop all those selector
> threads from persisting?

Whatever you can configure in your webapp - this is a problem with your code, 
not with Tomcat.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to