On 8-3-2010 17:07, Caldarale, Charles R wrote:
From: CBy [mailto:tom...@byrman.demon.nl]
Subject: Re: [OT] Question on Executor (thread pool)

I am still curious though on when and how to use Tomcat's Executor. I
someone could provide me with a nice example, I would be most grateful.
Tomcat's thread pools used to be on a connector basis, so each had to be sized 
for the maximum load expected on the server.  Having a single executor shared 
by some connectors provides a more consistent way of tuning the server as a 
whole, while still allowing an individual thread pool for any connector that 
requires it.

To second Chris' comment: sharing a thread pool between Tomcat and the 
dedicated needs of your webapp is just asking for trouble.  Don't try to force 
commonality on things that are unrelated, especially when it's so easy not to.


Thanks for your advise, Chuck. To be honest, I am totally confused now.
I thought it was pretty common to share precious resources across web
apps. Isn't database connection pooling often implemented this way? If
mine isn't, what then would be a good use case for using the shared
class loader?

What is so easy about writing a dedicated service for this?



  - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email
______________________________________________________________________



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

Reply via email to