LPI認定試験情報
今日の一題
運営について

問題の一覧
LPIC 202−「Web」−「Apacheのメンテナンス」

 
問 題  

以下は、httpd.confの一部である。

Timeout 120
KeepAlive On
MaxKeepAliveRequests 200
KeepAliveTimeout 15
<IfModule prefork.c>
StartServers 5
MinSpareServers 5
MaxSpareServers 20
MaxClients 25
MaxRequestsPerChild 10000
</IfModule>

このWebサーバの平均的なアクセス数は多くはないが、昼過ぎと夕方に大量のアクセスが集中し、そのときにはブラウザがタイムアウトになってしまう。その時点でのuptimeコマンドの実行結果は次のとおりである。

11:10:26 up 326 days, 16:40, 1 user, load average: 0.03, 0.02, 0.03

また、その時点でのfreeコマンドの実行結果は次のとおりである。

total used free shared buffers cached
Mem: 255236 232432 22804 0 81376 80052
-/+ buffers/cache: 71004 184232
Swap: 1052248 0 1052248

そこで、httpd.confのあるパラメータの設定を変更したところ、症状は劇的に改善され、タイムアウトは発生しなくなった。どのパラメータを変更したと考えられるか?

  1. StartServers の値を増やした
  2. MaxClients の値を増やした
  3. MaxSpareServers の値を増やした
  4. MaxRequestsPerChild の値を減らした
  5. MaxKeepAliveRequests の値を増やした
解答

以下はhttpd.confで名前ベースのバーチャルホストの設定が記述されている箇所(一部)である。空欄に当てはまるディレクティブはどれか?

_______________ 192.168.1.50

<VirtualHost 192.168.1.50>
ServerAdmin virtual1@v1.example.com
DocumentRoot /var/www/virtual/v1
ServerName v1.example.com
ErrorLog logs/v1.example.com-error_log
CustomLog logs/v1.example.com-access_log common
</VirtualHost>

  1. BaseVirtualHost
  2. NameVirtualHost
  3. VirtualHostAdress
  4. VirtualHostRoot
  5. RootVirtualHost
解答
 
ページ最上部へ ホームへ