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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章