tomcat优化

原创
2014/06/06 21:25
阅读数 203
<!--The connectors can use a shared executor, you can define one or more named thread pools-->
<Executor name="tomcatThreadPool" namePrefix="catalina-exec-" 
	maxThreads="600" minSpareThreads="400"/>


<!-- 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="8080" protocol="HTTP/1.1" 
		   connectionTimeout="20000" 
		   redirectPort="8443" />
-->
<!-- A "Connector" using the shared thread pool-->
<Connector executor="tomcatThreadPool"
		   port="80" protocol="HTTP/1.1" 
		   connectionTimeout="20000" 
		   redirectPort="8443" enableLookups="false" 
		   URIEncoding="UTF-8" acceptCount="1000"
/>
展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
0 评论
1 收藏
0
分享
返回顶部
顶部