Translated message

A translation of this page exists in English.

httpd を適切に再起動するのに時間がかかる場合があるのはなぜですか?

Solution Unverified - Updated -

Issue

  • httpd を適切に再起動するのに時間がかかる場合があるのはなぜですか?

以下は、再現方法となります。

  1. httpd.conf の例

    <IfModule prefork.c>
    StartServers       100
    MinSpareServers    50
    MaxSpareServers   100
    ServerLimit      1024
    MaxClients       1024
    MaxRequestsPerChild  4000
    </IfModule>
    
  2. クライアントで以下のコマンドを実行します。

    $ /usr/bin/ab -n 100000 -c 64 http://webserver/test
    

    httpd. の遅延を確認します。遅延が 10 秒前後になる場合があります。

    $ while :; do date; curl -s -o /dev/null http://webserver/test ; sleep 1 ; done
    
  3. 以下のコマンドを実行します。

    # service httpd graceful
    

Environment

  • Red Hat Enterprise Linux (RHEL) 6
  • httpd

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content