> From: John Smith [mailto:tomcat.ran...@gmail.com] 
> Subject: Executor thread pool

> How dumb am I being by not using an Executor with a named thread pool?
> Currently I just have a Connector in server.xml:

> <Connector port="8080" protocol="org.apache.coyote.http11.Http11NioProtocol"
>                    connectionTimeout="20000"
>                    redirectPort="8443" />

If you only have one <Connector>, it doesn't really make much difference.  An 
<Executor> does give you a bit more control due to its additional configuration 
options; whether or not that's important in your environment is something 
you'll have to decide.

> Assuming ~2000 simultaneous connections. Tomcat 7.0.42. RHEL6.

For NIO, it's not the number of connections that matters, it's the number of 
concurrent requests.

 - 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.


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

Reply via email to