Warning message

This translation is outdated. For the most up-to-date information, please refer to the English version.

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.