昨日はApacheの「Out of memory」エラー対策として apache2.conf の設定を変えました。 しかしMaxClientsを下げすぎたようで、アクセスピーク時にCPUのロードアベレージが下がらない状態になってしまいました。 仕方なくtopコマンドで状態を監視しつつ、MaxClientsを少しずつ変更し、120まで上げたところで一段落。 そんな流れを踏まえ、現在の “/etc/apache2/apache2.conf" には以下の変更を加えています。 MaxKeepAliveRequests 50 KeepAliveTimeout 5 <ifmodule mpm_prefork_module> StartServers 8 MinSpareServers 8 MaxSpareServers 8 MaxClients 100 MaxRequestsPerChild 4000
![さくらのVPS、引き続きApacheチューニング | Hinemosu](https://cdn-ak-scissors.b.st-hatena.com/image/square/629fab95339480820f9798ee1cb15aa311a831aa/height=288;version=1;width=512/https%3A%2F%2Fimages-na.ssl-images-amazon.com%2Fimages%2FI%2F51TABRVHV3L._SL160_.jpg)