参考网上教程,使用executor进行调优,修改maxThreads为300,查看server status页面,maxThreads为-1,很尴尬.
我给的是maxThreads=300
越调越垃圾了,...=_=
就添加了这些东西..
<Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
maxThreads="300" minSpareThreads="4"/>
<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Documentation at :
Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
Java AJP Connector: /docs/config/ajp.html
APR (HTTP/AJP) Connector: /docs/apr.html
Define a non-SSL HTTP/1.1 Connector on port 8080
-->
<!-- <Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" /> -->
<Connector executor="tomcatThreadPool" connectionTimeout="20000" port="80"
protocol="org.apache.coyote.http11.Http11NioProtocol"
redirectPort="8443"/>
我给的是maxThreads=300