开源中国tomcat_server.xml
-----------------------------
- <Server port="9005" shutdown="SHUTDOWN">
- <Service name="Catalina">
- <Executor name="tomcatThreadPool" namePrefix="HTTP-9081-exec-"
- maxThreads="200" minSpareThreads="10" maxIdleTime="60000"/>
- <!--
- <Connector port="9082" protocol="org.apache.coyote.http11.Http11NioProtocol"
- connectionTimeout="20000" executor="tomcatThreadPool"
- redirectPort="8443" acceptorThreadCount="4"/>
- -->
- <Connector port="9081" protocol="HTTP/1.1"
- connectionTimeout="20000"
- redirectPort="8443" executor="tomcatThreadPool"/>
- <Engine name="Catalina" defaultHost="localhost">
- <Host name="localhost" appBase="webapps"
- unpackWARs="false" autoDeploy="false"
- xmlValidation="false" xmlNamespaceAware="false">
- <Context path="" docBase="/data/oschina/webapp" reloadable="false"/>
- </Host>
- </Engine>
- </Service>
- </Server>
--------------------------------
200线程就足够?
一般当你的应用并发线程达到200的时候有这么两种情况 1. 访问量真的太大了,远远超过oschina 2. 你的应用性能真的太差了
看来开源中国的tomcat也没有采用异步io,nio。
转载于:https://blog.51cto.com/linuxgp/781207