tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Tomcat threads
Date Wed, 03 Mar 2010 18:02:22 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bharath,

On 3/2/2010 7:42 PM, Bharath Vasudevan wrote:
> Why is it illlogical? Fast is a relative term. If the number of requests
> increases, the number of threads that can be handled by the system goes down
> . The context switches and the pain to handle the switches makes handling of
> the requests in lesser threads which is scalable.

If you can afford the memory and CPU to create a second thread pool that
does the "real work" of your webapp, why not just allocate those same
threads in the request processing thread pool?

Seems like a wash in terms of thread availability with a significant
reduction in overhead of managing multiple thread pools, passing data
between them, etc. and trying to work around a problem that really
doesn't exist.

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

iEYEARECAAYFAkuOpC4ACgkQ9CaO5/Lv0PCGXACgkVGoBYzmZwMUPGT9ZE5G8vlD
LqEAn1IX6EuxlfY4hPZGO5uJOzbb2gI8
=pvO1
-----END PGP SIGNATURE-----

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


Mime
View raw message