-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

André,

André Warnier wrote:
> On this page : http://tomcat.apache.org/tomcat-6.0-doc/config/http.html
> , referring to the third paragraph of the Introduction.

If you really want tight control over the thread management, you should
probably use an "executor" instead of tweaking "maxThreads" and related
settings.

> Am I right in assuming that, as soon as one of these threads is done
> processing his current request, it disappears again ? Or does it stick
> around doing nothing for a while ?

That behavior is not specified. Creating a thread is a pretty heavy
operation, so I would imagine that created threads would be kept in the
pool for a while.

> And is there a "minThread" setting, or is that automatically 1, the one
> thread listening for new requests ?

There is no minThread setting.

> Also, in terms of thread memory usage : when on a Linux system, one
> looks at a "top" display with an idle single Tomcat (thread ? process ?)
> and sees it using e.g. "250m" of memory, is that memory really used at
> that point ?

That's usually closer to the memory used by the whole JVM, not that one
thread.

> And if 3 requests were to come in very rapidly, resulting in 3 new
> threads being started, would each of these threads really require "250m"
> bytes in order to run ?

No. Much of the memory showing there is shared (the heap, for instance,
is global, not local to a particular thread).

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkaBqcACgkQ9CaO5/Lv0PBmGwCfeCE4bHIE8+vvNdZkSCJUrfFR
9uEAnRe7XixeICBPdwKy+tRk9u2XWK/U
=Es6F
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to