Chuck,

Many thanks for your feeback.

> > From: Guillaume Lahitette [mailto:[EMAIL PROTECTED]
> > Subject: Over 1000 threads running in production
> >
> > Our operations team discovered over 1000 java threads running
> > on each production server. It appears that about 20 threads
> > are added to this count every hour.
>
> Since no one else seems to be reporting this kind of problem,
> odds are it's a bug in one or more of the applications you're
> running under Tomcat.

This is what I am suspecting too. It's a large application with "third
party" modules (open source, outsourced,...). I am not too sure on how to
best track it down. Pointers welcome!

> There's an off chance it could be a
> problem in the JRE, since you're using a level that's been out of
> date and unsupported for quite some time.

We'll try to run some tests with the latest 1.4.2 JDK...If performance
increases, it will be an easy sell (although we'll want plenty of regression
testing). If not, operation teams will argue about the "upgrade cost",
benefits....

>
> The number of threads Tomcat uses to service requests is
> controlled by the maxProcessors parameter of the <Connector>
> element you're using; for 4.1, the default value is 20, and it
> would be very, very unusual to ever need to set it to much over
> 100.  Since you don't seem to be aware of this configuration
> parameter, you're probably using the default.

We're using the default values for TC4.1.26: minProcessors="5"
maxProcessors="75".

>
> Other than a few created for internal purposes by Tomcat and the
> JVM itself, additional threads must come from the applications.

How can I tell? Can I monitor who/when these are created?

> I would be highly suspicious of some piece of code kicking off a
> thread and then losing track of it and the thread not having any
> logic to terminate itself when it's no longer needed.

Slightly off topic: a third party module uses RMI: would RMI kick off a new
thread for each new RMI connection? We're suspecting this module does NOT
release RMI connections correctly and would explain these accumulation of
threads. I'm trying to get this confirmed...

>
> >   e.. Any known issues with our setup?
>
> Can't tell unless you pass on the .xml files.

The server.xml is per default, except for port numbers. Any other relevant
XML files?

Tons of thanks for your feedback Chuck!

Guillaume

>
>  - 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to