AH00161:サーバーがMaxRequestWorkers設定に達しました。MaxRequestWorkers設定を上げることを検討してください



Ah00161 Server Reached Maxrequestworkers Setting



解決:

基本的に、構成は次の場所で上書きされます:/etc/apache2/mods-available/mpm_prefork.conf

そのファイルに新しい設定を入れましたが、Apacheが正しく機能するようになりました。



うまくいけば、これが他の誰かに役立つことを願っています。設定をapache2.confまたはhttpd.confに直接入れないでください。ロードされているすべての構成ファイルを必ず変更してください。


編集する必要がありますmpm_prefork



StartServers 10 MinSpareServers 10 MaxSpareServers 20 ServerLimit 2000 MaxRequestWorkers 1500 MaxConnectionsPerChild 10000


間違ったファイルを変更しました。ログに「mpm_prefork」エラーが表示されます。したがって、mpm_worker.confではなくmpm_prefork.confを変更する必要があります。

'apachectl -M'を使用して、使用しているモジュールを確認することもできます。例えば私のapache2はmpm_event_moduleを使用しているので、mpm_event.confを変更する必要があります



$ apache2ctl -Mロードされたモジュール:core_module(static)so_module(static)watchdog_module(static)http_module(static)log_config_module(static)logio_module(static)version_module(static)unixd_module(static)access_compat_module(shared)alias_module(shared)auth_basic_module(shared )authn_core_module(共有)authn_file_module(共有)authz_core_module(共有)authz_host_module(共有)authz_user_module(共有)autoindex_module(共有)deflate_module(共有)dir_module(共有)env_module(共有)filter_module(共有)mime_module(共有)** m_ )** negotiation_module(共有)setenvif_module(共有)status_module(共有)wsgi_module(共有)