Tomcat线程池设置

在Tomcat6下可以更改配置,为Tomcat更改线程池实现:
<Executor name="threadpool" maxThreads="200" minSpareThreads="25" prefix="tomcat-thread-"/>
<Connector port="8080" executor="threadpool"/>
这样Tomcat将使用java.util.concurrent.ThreadPoolExecutor。

默认是org.apache.catalina.core.StandardThreadExecutr。

http://forum.springsource.org/showthread.php?t=73784

猜你喜欢

转载自sunjia-704471770-qq-com.iteye.com/blog/1753154