問題:
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"
/>