You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Chris Massam <ch...@yellowtuna.co.nz> on 2002/11/26 00:47:02 UTC

Excessive Thread Count

Hi all,

I was hoping someone would be able to assist me with debuging this problem.

Firstly, a bit of Setup background.

Tomcat 4.1.12 running with JDK1.3.1_04 (Sun Release), under Redhat Linux 
7.3.

The application consists of various JSP's and Servlets.

I've been noticing excessive thread pooling, what seems to happen is this.

- A POST is made to a Servlet - which runs a JavaBean, updating a DB.
- During this POST, 3 Additional threads are created by Tomcat.

Once this POST has finished, the thread count is never reduced, whats 
more of a problem is the next time the same Servlet is POST'd to, 
another 3 threads are created.

So, after a few hours we have a few hundred threads running, and after 
running it overnight, there can be over a thousand threads by morning, 
at which point Tomcat is unresponsive, and unstoppable (kill -9 works 
though).

The servlets/beans connected via Corba to a backend system, which has 
been running via in various implementations for a while.

I have checked the connector configuration, we are using Coyote1.1, 
below is the relevant config file section...

--

<Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
       port="8000" minProcessors="5" maxProcessors="75"
       enableLookups="false"
       acceptCount="10" debug="0" scheme="https" secure="true"
       useURIValidationHack="false">
   <Factory 	 
className="org.apache.coyote.tomcat4.CoyoteServerSocketFactory"
clientAuth="false" protocol="TLS" keystorePass="<hidden :-)>" />
     </Connector>

--

Any assistance, places too look, suggestions would be great.

Kind Regards
Chris Massam








--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>