我的server.xml如下所示:爲什麼我的Tomcat 6執行程序線程池沒有被連接器使用?
<!--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正在使用執行器,即使它沒有被指示。經理是否錯誤報告或者我沒有正確設置線程池?
看起來你是對的。謝謝您的幫助 – jwegan 2010-05-03 22:56:22