Rezolvare eroare “server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting” cu MPM_worker

Configurare noua (How To)

Situatie

Solutie

  1. Verificati ce tip de MPM (Multi Processing Module) este folosit de catre serviciul dumneavoastra web. ( aceasta solutie se aplica pentru mpm_worker )

# apache2ctl -V | grep MPM

      2.  Modificati fisierul de configuratie:

nano /etc/apache2/mods-available/mpm_worker.conf
# worker MPM
# StartServers: initial number of server processes to start
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadLimit: ThreadsPerChild can be changed to this maximum value during a
# graceful restart. ThreadLimit can only be changed by stopping
# and starting Apache.
# ThreadsPerChild: constant number of worker threads in each server process
# MaxRequestWorkers: maximum number of threads
# MaxConnectionsPerChild: maximum number of requests a server process serves

<IfModule mpm_worker_module>
ServerLimit 625
StartServers 8
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxRequestWorkers 625
MaxConnectionsPerChild 1000
</IfModule>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet

3.Mariti valoarea MaxRequestWorkers putin cate putin . Valoarea poate fii doar multiplu de ThreadsPerChild.

4. Efectuati un test al configuratiei de apache.

apachectl configtest

5.In cazul in care testul este okay puteti restarta serviciul de apache.

systemctl restart apache2

Tip solutie

Permanent

Voteaza

(6 din 12 persoane apreciaza acest articol)

Despre Autor

Leave A Comment?