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

Micheal,

On 9/14/2009 6:28 AM, Michael Ludwig wrote:
> Is the possibility to enforce thread quotas for applications (via their
> <Connector>s) the main reason for the existence of <Executor>s?
> 
> What other reasons are there?

<Executors> can shed threads when they are not being used (see
maxIdleTime config param), while the stock thread pool never releases
connections after they are created.

Another reason for <Executors> is for them to be /shared/ by
<Connectors>. If you need to, say, listen for traffic across 10 ports
(okay, it's a bit contrived... maybe across 10 IPs on port 80), then
you'll need 10 <Connectors>. Rather than having to guess at which
webapps will be the most popular and allocate threads to each thread
pool accordingly, you can simply point them all to the same <Executor>
and then all <Connector>s share the thread pool.

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

iEYEARECAAYFAkquT3wACgkQ9CaO5/Lv0PD4aQCfRLMjiGv+82ALmVFfuPqIdaoP
QRQAoMErvt9IFOKpgIo11n2rmmkXTC5q
=84r9
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to