问题:
In Tomcat server.xml
what is maxThreads
versus maxConnections
在 Tomcat server.xml
什么是maxThreads
与maxConnections
I understand that maxConnections
is the number of connections open to the server我知道maxConnections
是打开到服务器的连接数
And maxThreads
is the maximum number of request processing threads而maxThreads
是最大请求处理线程数
But how the two configuration parameters working together, obviously you will not set maxConnections
to 1000 and maxThreads
to 10但是这两个配置参数如何协同工作,显然你不会将maxConnections
设置为 1000 将maxThreads
为 10
What is the relationship between the two configuration parameters?这两个配置参数有什么关系?
<Connector
port="8443"
protocol="org.apache.coyote.http11.Http11Protocol"
maxThreads="250"
SSLEnabled="true"
scheme="https" secure="true"
clientAuth="false"
sslProtocol="TLS"
connectiontimeout="20000"
/>