On Wed, 2003-04-09 at 21:21, Edmund Lian wrote:
> On 04/09/2003 10:14:27 PM webware-discuss-admin wrote:
> >I have noticed something odd about the AppServer; I set min, max, and
> >start threads to 20, and then notice 24 threads are running according to
The min, max set the number of "worker" threads, which are responsible
for handling requests. There are a number of additional threads which
come into play (see below).
> >I'm on linux with a 2.4.19 kernel.
> >Is there some unix-process explanation for this, or is it not following
> >the thread restrictions?
> The consensus is that two extra threads are for the scheduler and session
> sweeper. The other two extra threads are mystifying everybody.
Correct. The "main" thread (which is the initial thread in the process)
is responsible for taking requests out of the incoming queue and handing
them off to the worker threads. And if you're using AutoReload, it
creates an additional thread to monitor file changes (it spends most of
its time sleeping).
I don't know if that leaves any threads outstanding; it's conceivable
that some database adapters use an internal thread, too, especially if
they support asynchronous queries internally (which some do).
Jason D. Hildebrand