Access Gateway エラー: Server ran out of threads to serve requests. Consider raising the ThreadsPerChild setting
search cancel

Access Gateway エラー: Server ran out of threads to serve requests. Consider raising the ThreadsPerChild setting

book

Article ID: 269286

calendar_today

Updated On:

Products

CA Single Sign On Secure Proxy Server (SiteMinder)

Issue/Introduction

Access Gateway が頻繁にダウンして接続が許可されなくなり、Access Gateway 経由でバックエンド アプリケーションにアクセスするユーザーに影響を与える状況が発生しました。

Agentログファイルに記録されるログには、次のようなものがあります。

[05/16/2023][19:52:23][18464][572][<transaction-id-1>][getConnection][No connections available for [{s}->https://<ServerName>.example.com:443] Found In-Use = true]
[05/16/2023][19:52:23][18464][13112][<transaction-id-2>][getConnection][No connections available for [{s}->https://<ServerName>.example.com:443] Found In-Use = true]

Environment

Product : Access Gateway 

Release : 12.8.x

Cause

Access GatewayのHTTPDコンポーネントのすべてのワーカー・スレッドが稼働中ですが、バックエンドに到達するための新しい受信クライアント・リクエストを受け入れるための予備のワーカー・スレッドがありません。 以下は、Apache ログの抜粋です。

[Fri Jun 02 18:37:17.219183 2023] [mpm_winnt:notice] [pid ####:tid ##] AH00354: Child: Starting 150 worker threads.
[Mon Jun 05 11:17:47.130632 2023] [mpm_winnt:error] [pid ###:tid ###] AH00326: Server ran out of threads to serve requests. Consider raising the ThreadsPerChild setting

Resolution

以下の手順に従いワーカー・スレッド数を増やします。

  1. Access Gatewayサービスを停止します。

  2. <secure-proxy>\httpd\conf\extra ディレクトリに移動します。

  3. ファイル httpd-mpm.conf ファイルを開き、最大ワーカー・スレッドを希望の値に設定するか、ワーカー・スレッドの既存の値の 2 倍に設定します。
    これにより、Access Gateway httpd コンポーネントが新しい受信クライアント要求を受け入れることができるようになります。
    [補足] 上記のApache ログでは "[mpm_winnt:notice]" とあるので、confファイルのモジュール "mpm_winnt_module" が対応し、"ThreadsPerChild" の設定が対象となります。

  4.  Access Gateway サービスを開始します。

Additional Information

ワーカー スレッドの確認方法:

<secure-proxy>\httpd\bin ディレクトリに移動して、コマンドプロンプトで以下のコマンドを実行します。

httpd -V

"Server MPM:" で始まる行を確認します。以下は出力例です。

Server MPM:     WinNT

#

この文書は以下の英文技術情報を翻訳したものです。

[英語文書] Access Gateway error : Server ran out of threads to serve requests. Consider raising the ThreadsPerChild setting