Tomcat - maxThreads 与 maxConnections - Tomcat - maxThreads vs maxConnections

问题:

In Tomcat server.xml what is maxThreads versus maxConnections在 Tomcat server.xml什么是maxThreadsmaxConnections

I understand that maxConnections is the number of connections open to the server我知道maxConnections是打开到服务器的连接数

And maxThreads is the maximum number of request processing threadsmaxThreads是最大请求处理线程数

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"
/>

解决方案:

参考: https://stackoom.com/en/question/1fY2v
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章