tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: Question: does Tomcat4 manage jsp/servlet threads?
Date Mon, 01 Apr 2002 16:53:12 GMT


On Mon, 1 Apr 2002, Hugh J. L. wrote:

> Date: Mon, 1 Apr 2002 00:15:36 -0800 (PST)
> From: Hugh J. L. <hughjlee@yahoo.com>
> Reply-To: Tomcat Developers List <tomcat-dev@jakarta.apache.org>
> To: Tomcat Developers List <tomcat-dev@jakarta.apache.org>
> Subject: Question: does Tomcat4 manage jsp/servlet threads?
>
> Hi, everyone,
>
> I need some help on Tomcat 4 architecture. Does Tomcat
> 4 manage jsp/servlet threads? For example, can it
> report condition of those threads, stop dead thread
> and release resource, etc? And, does it use thread
> pool?
>

In the 4.0.x releases, there is an
org.apache.catalina.connector.http.HttpProcessor instance for each request
processing thread.  Requests are handed off by the HttpConnector instance
which does the socket accept calls.  The number of request processing
threads is managed by the minProcessors and maxProcessors configuration
properties.

The processor threads are recycled, so that's sort of a thread pool
(although the threads themselves are not stored in a separate thread
pool).

> Thanks. I have to know this before I have time to read
> its source code. :-(
>

That's too bad, because that is where all the answers are.  Check the
classes in the org.apache.catalina.connector.http package.

> Regards,
> Hugh
>

Craig


--
To unsubscribe, e-mail:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message