mod_fcgid: não é possível aplicar o slot de processo para / var / www / cgi-bin / cgi_wrapper / cgi_wrapper

2

Meu blog Wordpress tem geralmente 200 usuários por minuto, mas abaixo de 1000 usuários por minuto carregam meu site fica muito lento e este aviso aparece no meu error_log.

[Sun Aug 17 16:44:41 2014] [warn] [client **.***.**.***] mod_fcgid: can't apply process slot for /var/www/cgi-bin/cgi_wrapper/cgi_wrapper

Às vezes, esses dois também acompanham o aviso:

[Sun Aug 17 16:44:41 2014] [warn] [client ***.***.***.**] mod_fcgid: read data timeout in 45 seconds
[Sun Aug 17 16:44:41 2014] [error] [client ***.***.**.**] Premature end of script headers: index.php

Eu verifiquei o status do servidor e os níveis de CPU, memória e carga estão abaixo de 30%.

Informações do servidor:

CPU     GenuineIntel, Intel(R) Xeon(R)CPU L5630 @ 2.13GHz
Version Parallels Plesk Panel v11.5.30_build115130819.13 os_CentOS 5
OS      CentOS 5.5 (Final)
Memory  5.89 GB

Prefork.c:

<IfModule prefork.c>
StartServers 1
MinSpareServers 1
MaxSpareServers 3
ServerLimit 50
MaxClients 50
MaxRequestsPerChild  4000
</IfModule>

Fcgid.conf

FcgidIdleTimeout 40
FcgidProcessLifeTime 30
FcgidMaxProcesses 20
FcgidMaxProcessesPerClass 8
FcgidMinProcessesPerClass 0
FcgidConnectTimeout 30
FcgidIOTimeout 45
FcgidInitialEnv RAILS_ENV production
FcgidIdleScanInterval 10    

Qual pode ser o motivo desse aviso e como posso corrigi-lo?

    
por NecNecco 18.08.2014 / 00:46

1 resposta

2

Você viu o link ?

FcgidMaxProcesses -- this is the total number of processes FCGID will start, for all users. That is what will prevent OOM issues. The more RAM you have, the higher you can set the value. If you set this value too low, you will get 500 errors, as FCGID will not be able to create new processes to serve requests. This value also depends on the size of PHP processes (which in turn depends on extensions that you have enabled for PHP) as the larger the process the faster you will him OOM. You can try playing with following numbers depending on your RAM: 8GB -- about 150, 16GB – 300 Also, make sure you monitor apache error logs. If you see "can't apply process slot for error" -- it means you are hitting FcgidMaxProcesses

Tente aumentar o FcgidMaxProcesses para 150

    
por 14.04.2015 / 02:34