httpd を適切に再起動するのに時間がかかる場合があるのはなぜですか?
Issue
- httpd を適切に再起動するのに時間がかかる場合があるのはなぜですか?
以下は、再現方法となります。
-
httpd.conf の例
<IfModule prefork.c> StartServers 100 MinSpareServers 50 MaxSpareServers 100 ServerLimit 1024 MaxClients 1024 MaxRequestsPerChild 4000 </IfModule> -
クライアントで以下のコマンドを実行します。
$ /usr/bin/ab -n 100000 -c 64 http://webserver/testhttpd. の遅延を確認します。遅延が 10 秒前後になる場合があります。
$ while :; do date; curl -s -o /dev/null http://webserver/test ; sleep 1 ; done -
以下のコマンドを実行します。
# 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.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
