Cosminexus システム構築ガイド
Persistent Connectionは,WebクライアントとWebサーバ間で確立したTCPコネクションを持続して,複数のHTTPリクエスト間で使用し続けるための機能です。Persistent Connectionを使用することによって,WebクライアントとインプロセスHTTPサーバ間でのコネクション接続に掛かる時間を短縮し,処理時間の短縮と通信トラフィックの軽減を図れます。
Persistent Connectionによる通信制御は,簡易構築定義ファイルで設定します。論理J2EEサーバ(j2ee-server)の<configuration>タグ内に,次のパラメタを設定してください。
Persistent Connectionによる通信制御の設定例を次に示します。
: <param> <param-name>webserver.connector.inprocess_http.persistent_connection.max_connections</param-name> <param-value>5</param-value> </param> <param> <param-name>webserver.connector.inprocess_http.persistent_connection.max_requests</param-name> <param-value>100</param-value> </param> <param> <param-name>webserver.connector.inprocess_http.persistent_connection.timeout</param-name> <param-value>15</param-value> </param> : |
この設定例では,TCPコネクション数が「5」を超えた場合,またはリクエスト処理回数が「100」を超えた場合には,リクエスト処理終了後にTCPコネクションを切断します。また,タイムアウト時間「15」秒を過ぎてもリクエスト処理要求がない場合は,TCPコネクションを切断します。
All Rights Reserved. Copyright (C) 2006, 2007, Hitachi, Ltd.