-----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? - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIcBAEBCAAGBQJTHeazAAoJEBzwKT+lPKRYTA4P/0K95yUlujhru68MAE7cL6Wu Sk1IC2FCqfYYEuLOLChpA+P/49EUcqZ4BOn22LHIl3ijcUcP0re6vGXwCL0etOuB qvrYH7tKPsNN4SQJ8tXkXdEKLVukK2RLx0AEZlmRheksYgu8G9lF7EZlPm65i1fr vE9JWti5UtRuVMQiPjhmJZrlfEjdiNcRNr8ClKJmhRxGEeeV+dHMzNpsDbnxoD5e vGGItrFVvfA7ffgYixRDhyGL1gO+T2DWoo4UA8wXNVGg+5Xr5jSoZBf66kY8voy4 3sQBjH5eH8yqmbOaFvX5msGyoDjwQ3o8GDcz0PnMBqNfF/sg1673FIWHjScQCx4/ mltvXJOev3joNycKr4uxFB832JAt7uyUkslowQ50a0RFvsiVC8u1CZ9pwNxcTnVP BTQcvGSGSa5KTQdSfeWWb4LQg6WqxgQM/WI3uOvoEraUBMTvETVv/aQMsh5qPVB6 199PN7rE9XOGObJ7PQDOOm6Y2i+wUeKunZCOfPpzqEFKhKE4GIdD6qoEJnFySIjN x4ita0F2Y8XJs6EiOQsvDE5g3ZlMjV5YDsJXJRnCx1rqxNxHdGyc4+jBzEpybMJ2 W81XThlbMiK7byufAN7YH+7W0Utd7iRMIxE2Z8bcFwm9ZfAd1GogdsNH6iyAh6Ry zn+O78QonFrFbmPvEBLy =+F+E -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org