首先发现网上漫天的资料都是很老的版本,现在应该都是tomcat6.0或者7.0的了。所以很多老的配置已经过时了。比如minProcessors,maxProcessors这两个值网上大多资料说明修改他们俩,但是这两个值在 http://tomcat.apache.org/tomcat-7.0-doc/config/http.html 官方的说明中并不存在。
Each incoming request requires a thread for the duration of that request. If more simultaneous requests are received than can be handled by the currently available request processing threads,
additional threads will be created up to the configured maximum (the value of the maxThreads attribute). If still more simultaneous requests are received, they are stacked up inside the server socket created by theConnector, up to the configured maximum (the
value of the acceptCount attribute). Any further simultaneous requests will receive "connection refused" errors, until resources are available to process them.
maxThreads:The maximum number of request processing threads to be created by
this Connector, which therefore determines the maximum number of simultaneous requests that can be handled. If not specified, this attribute is set to 200. If an executor is associated with this connector, this attribute is ignored as the connector will execute
tasks using the executor rather than an internal thread pool.
处理request的最大线程数是由Connector决定的。这个值决定着目前可处理的最大并发数,如果没有设置,默认值为200,如果executor 与connector相关联,那么这个值将会被忽略,
acceptCount:The maximum queue length for incoming connection requests when all possible request processing threads are in use. Any requests received
when the queue is full will be refused. The default value is 100.