Maximum number of threads (200) created for connector with address null and port

tomcat 6线程数达到默认值(200)处理方法

Maximum number of threads (200) created for connector with address null and port

代码片段如下:

  <!--The connectors can use a shared executor, you can define one or more named thread pools-->
   
    <Executor name="tomcatThreadPool" namePrefix="catalina-exec-" 
        maxThreads="700" 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" URIEncoding="UTF-8"/> -->
    <!-- A "Connector" using the shared thread pool-->
    
    <Connector executor="tomcatThreadPool"
               port="80" protocol="HTTP/1.1" 
               connectionTimeout="20000" 
               redirectPort="8443" URIEncoding="UTF-8"/>
             

猜你喜欢

转载自blog.csdn.net/niuzaiwenjie/article/details/81623654