我的 server.xml 如下所示:
<!--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" />
但是,在 Tomcat 管理器 ( http://localhost/manager/status ) 中,它显示如下
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
出于某种原因,它看起来像 http-8080 没有使用执行器,即使它也被指示,而 jk-8009 正在使用执行器,即使它没有被指示。经理只是误报还是我没有正确设置线程池?