-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Jeffrey,

On 3/10/14, 4:15 PM, Jeffrey Janner wrote:
>> -----Original Message----- From: Christopher Schultz
>> [mailto:ch...@christopherschultz.net] Sent: Monday, March 10,
>> 2014 11:22 AM To: Tomcat Users List Subject: Re: Executor thread
>> pool
>> 
>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
>> 
>> John,
>> 
>> On 3/10/14, 11:43 AM, John Smith wrote:
>>> 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" />
>> 
>> An executor is being used under the covers... you just aren't 
>> configuring it yourself.
>> 
>> If you don't configure it yourself you lose out on these
>> benefits:
>> 
>> 1. Shared executor for multiple Connectors. If you only have a
>> single connector, obviously this matters little.
>> 
>> 2. You have less control over the underlying Executor if you
>> don't manually configure it and let the Connector auto-create
>> one. Check the documentation for
>> http://tomcat.apache.org/tomcat-7.0- doc/config/executor.html
>> against the thread-related configuration attributes available
>> for, say, the HTTP connector here 
>> http://tomcat.apache.org/tomcat-7.0-doc/config/http.html and
>> you'll see what I mean.
>> 
>>> Assuming ~2000 simultaneous connections. Tomcat 7.0.42. RHEL6.
>> 
>> 2000 simultaneous connections really is quite a lot. Are you
>> sure? 2000 simultaneous sessions isn't a stretch, but 2k
>> connections is a big deal. How long are your transactions? What
>> is the incoming request rate?
>> 
> 
> How about the more likely 2 connector scenario, one for port 80 one
> for port 443? Any benefit of using the executor here?  Assuming
> sharing one between connectors, and web.xml configured to
> auto-route everything to SSL, i.e. time spent on 80 is minimal
> (redirect)?

+1

This allows you to handle N connections in-progress regardless of
which connector they connect through. Instead of having 50 threads for
HTTP and 500 threads for HTTPS, you can just drop the 50 threads for
HTTP and share all of them.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQIcBAEBCAAGBQJTHipaAAoJEBzwKT+lPKRY2TAP/jpcAioKUsOQ1lLVbLd7mFo0
F/Wq8OwpLnJtnUYQpMQXqNYvgyNF0PYj806rj2YZq1WQcAuzDiwsli+ox7GiSzv/
POEYiN7odnyKaoYIXbPTYt8SWP4xdd/5B/Qc+iVyzBvuHkK4eqoHeuyCZj9bmMEk
nLieDH9m+O3EHgvmEBLfjpe76seHFUzyGfFU62oh0eXcwe4Y4uUDnNTZtcVBf43b
MLTu5YsuYMJkGr9yB/egAqsVzrtN67czXEcrEzBl5ZDVdKRqbnaSfW3q+ntnJfGL
0iNdrKqJOLZnQNgOdfhCxxMCvD5XBlfntkRWvL+8BE2y5B5F0bH6Y7h7HUZPvA49
GNEuMiSaLILwAJP87lykQTiOhrOktCJzA5BvkVQPBDNCHg0b4+QONYOARRGAFhAQ
C+sLepOoj+XCr/2icZpuHOEFtr+OqCzzVxxOFCPy/dxsbVwlavWkq+dr6Wa4/lyf
UUetK4QBfaL4heoGHh5osW6aen/leZTHiYJvlPwlZxlJ0RZtqlhFkpOcNsLbky1R
6yT57Wivqa19HR7zWqvew0t0S0LmLB+FaILsN20W0nXCYMBFUGjsUislVsbXpSCD
R9wNykbM4BtR4I9RI5ltJ/npR63h4Yw0XYsVnsJewNgxeYEyiNPDK3t39Qpyxe2c
ciegPT6xwnyhCnwxnK3E
=e8Oj
-----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