Why is my Tomcat 6 executor thread pool not being used by the connector?
Posted
by jwegan
on Stack Overflow
See other posts from Stack Overflow
or by jwegan
Published on 2010-05-03T22:24:04Z
Indexed on
2010/05/03
22:28 UTC
Read the original article
Hit count: 654
My server.xml looks like the following:
<!--The connectors can use a shared executor, you can define one or more named thread pools-->
<Executor name="tomcatThreadPool"
namePrefix="catalina-exec-"
maxThreads="200"
minSpareThreads="4"/>
<Connector executor="tomcatThreadPool"
port="8080" protocol="HTTP/1.1"
connectionTimeout="10000"
maxKeepAliveRequests="1"
redirectPort="8443" />
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
However, in the Tomcat manager (http://localhost/manager/status) it shows to following
http-8080: Max threads: -1 Current thread count: -1 Current thread busy: -1
jk-8009: Max threads: 200 Current thread count: 4 Current thread busy: 1
For some reason it looks like http-8080 isn't using the executor even though it is directed too and jk-8009 is using the executor even though it isn't instructed to. Is the manager just misreporting or have I not setup the thread pool correctly?
© Stack Overflow or respective owner