Tomcat6執行緒池(Executor Thread pool)的配置
阿新 • • 發佈:2018-12-19
原文地址:http://www.java2000.net/p11864配置很簡單第一步,開啟共享的執行緒池
- <Servicename="Catalina">
- <!--The connectors can use a shared executor, you can define one or more named thread pools-->
- <Executorname="tomcatThreadPool"namePrefix="catalina-exec-"
- maxThreads="1000"minSpareThreads="50"maxIdleTime="600000"/>
- <
- port="8009"
- protocol="AJP/1.3"
- maxThreads="5000"
- executor="tomcatThreadPool"