46

Tomcat7.0.42 が一度に処理するリクエストの数。外部ファイルで同じように設定できますか。

4

3 に答える 3

18

server.xmlファイルで指定maxThreadsするspecifies maximum number of simultaneous requests that can be handled..

<Connector port="8080" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" redirectPort="4443" acceptCount="100"
               debug="0" connectionTimeout="60000" 
               disableUploadTimeout="true" />

Tomcat 7 では、

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.

EDIT : エグゼキュータがこのコネクタに関連付けられている場合、コネクタは内部スレッド プールではなくエグゼキュータを使用してタスクを実行するため、この属性は無視されます。

詳細については、このリンクTomcat 7 Docを参照してください。

于 2013-08-22T06:05:46.560 に答える