Apache + Event_MPM + FastCgiExternalServer + php5-fpm:php-fpm挂起emergency_restart_threshold不会重置

对不起,如果这似乎漫步。 我一直试图解决/解决这个过去20个小时的直接,而不得不保姆服务器,并重新启动php5-fpm每次下降。

我想象一个插件(高stream量的WordPress站点)或挂在那个线程,可能会导致绑定其他线程的依赖锁的一个基本问题。 我的直接担忧是find方法来使emergency_restart_threshold在需要时自动重启php5-fpm。 然后我可以睡觉,并find潜在的PHP问题。 这个问题在过去24小时里发生了21次。 有时甚至相隔3.5小时,其他时间只有几分钟。

我已经尝试过不同的时间值,但到目前为止似乎没有触发所需的SIGSEGV或SIGBUS信号。 看起来问题一旦出现,所有的PHP请求都会挂起,就好像它们都在等待什么东西一样,150个最大的孩子最终会在各种超时closures之前填满传入的请求。 除了这个问题发生的时候,通常只有2-5个孩子需要满足现在的交通。

服务器规格

服务器是运行Ubuntu 14.04的Amazon EC2 c4.Xlarge(7.3 Gb RAM,4 vCPU)。

我也安装了New Relic,资源看起来非常好。 超过一半的内存可用,CPU使用率通常远低于50%,除了PHP5-FPM挂起之后。

各种configuration文件,因为我目前有他们configuration

等/ apache2的/ apache2.conf

Mutex file:${APACHE_LOCK_DIR} default PidFile ${APACHE_PID_FILE} Timeout 40 KeepAlive On MaxKeepAliveRequests 250 KeepAliveTimeout 6 User ${APACHE_RUN_USER} Group ${APACHE_RUN_GROUP} HostnameLookups Off ErrorLog ${APACHE_LOG_DIR}/error.log LogLevel error IncludeOptional mods-enabled/*.load IncludeOptional mods-enabled/*.conf Include ports.conf <Directory /> Options +FollowSymLinks -SymLinksIfOwnerMatch AllowOverride None Require all denied </Directory> <Directory /usr/share> AllowOverride None Require all granted </Directory> <Directory /var/www/> Options +FollowSymLinks -SymLinksIfOwnerMatch AllowOverride All Require all granted </Directory> AccessFileName .htaccess <FilesMatch "^\.ht"> Require all denied </FilesMatch> LogFormat "%{User-agent}i" agent IncludeOptional conf-enabled/*.conf IncludeOptional sites-enabled/*.conf SSLProtocol ALL -SSLv2 SSLCipherSuite ECDHE-RSA-AES256-SHA384:AES256-SHA256:AES256-SHA256:RC4:HIGH:MEDIUM:+TLSv1:+TLSv1.1:+TLSv1.2:!MD5:!ADH:!aNULL:!eNULL:!NULL:!DH:!ADH:!EDH:!AESGCM <IfModule fastcgi_module> Action fastcgi-php5-fpm /fastcgi.php5-fpm virtual Alias /fastcgi.php5-fpm /var/www/cgi-bin/fastcgi.php5-fpm -socket /var/run/fastcgi/USERNAME.socket -appConnTimeout 10 -idle-timeout 250 -pass-header Authorization FastCgiExternalServer /var/www/cgi-bin/fastcgi.php5-fpm -socket /var/run/php5-fpm.sock -idle-timeout 15 -appConnTimeout 0 -pass-header Authorization -pass-header Range AddHandler fastcgi-php5-fpm php phar <Directory /var/www/cgi-bin> AllowOverride none Options FollowSymLinks <IfModule authz_core_module> Require env REDIRECT_STATUS Options +ExecCGI </IfModule> </Directory> </IfModule> <IfModule mpm_event_module> Timeout 300 StartServers 3 ThreadLimit 50 ThreadsPerChild 50 MaxConnectionsPerChild 10000 MinSpareThreads 50 MaxSpareThreads 250 ServerLimit 600 MaxRequestWorkers 600 KeepAlive on MaxKeepAliveRequests 100 KeepAliveTimeout 5 </IfModule> 

等/ PHP5 / FPM / PHP-fpm.conf

 [global] pid = /var/run/php5-fpm.pid error_log = log/php5-fpm.log syslog.facility = daemon syslog.ident = php-fpm log_level = debug ;log_level = notice ; If this number of child processes exit with SIGSEGV or SIGBUS within the time ; interval set by emergency_restart_interval then FPM will restart. A value ; of '0' means 'Off'. ; Default Value: 0 emergency_restart_threshold = 3 ; Interval of time used by emergency_restart_interval to determine when ; a graceful restart will be initiated. This can be useful to work around ; accidental corruptions in an accelerator's shared memory. ; Available Units: s(econds), m(inutes), h(ours), or d(ays) ; Default Unit: seconds ; Default Value: 0 emergency_restart_interval = 2m ; Time limit for child processes to wait for a reaction on signals from master. ; Available units: s(econds), m(inutes), h(ours), or d(ays) ; Default Unit: seconds ; Default Value: 0 process_control_timeout = 5s include=/etc/php5/fpm/pool.d/*.conf 

等/ PHP5 / FPM / pool.d / www.conf

 [www] user = www-data group = www-data listen = /var/run/php5-fpm.sock ; Set listen(2) backlog. ; Default Value: 65535 (-1 on FreeBSD and OpenBSD) ;listen.backlog = 65535 ; Set permissions for unix socket, if one is used. In Linux, read/write ; permissions must be set in order to allow connections from a web server. Many ; BSD-derived systems allow connections regardless of permissions. ; Default Values: user and group are set as the running user ; mode is set to 0660 listen.owner = www-data listen.group = www-data ;listen.mode = 0660 pm = dynamic pm.max_children = 150 pm.start_servers = 10 pm.min_spare_servers = 10 pm.max_spare_servers = 30 pm.process_idle_timeout = 10s pm.max_requests = 40 pm.status_path = /public_html/bvt-fpmstatus.php access.log = /var/log/$pool.access.log access.format = %T %R \"%m %r%Q%q\" - %s %u %f %{mili}d %{kilo}M %C%% %t" ; The log file for slow requests ; Default Value: not set ; Note: slowlog is mandatory if request_slowlog_timeout is set ;slowlog = /var/log/$pool.log.slow ;request_slowlog_timeout = 25s ; The timeout for serving a single request after which the worker process will ; be killed. This option should be used when the 'max_execution_time' ini option ; does not stop script execution for some reason. A value of '0' means 'off'. ; Available units: s(econds)(default), m(inutes), h(ours), or d(ays) ; Default Value: 0 request_terminate_timeout = 31s ; Chroot to this directory at the start. This value must be defined as an ; absolute path. When this value is not set, chroot is not used. ; Note: you can prefix with '$prefix' to chroot to the pool prefix or one ; of its subdirectories. If the pool prefix is not set, the global prefix ; will be used instead. ; Note: chrooting is a great security feature and should be used whenever ; possible. However, all PHP paths will be relative to the chroot ; (error_log, sessions.save_path, ...). ; Default Value: not set ;chroot = ; Chdir to this directory at the start. ; Note: relative path can be used. ; Default Value: current directory or / when chroot chdir = / ; Redirect worker stdout and stderr into main error log. If not set, stdout and ; stderr will be redirected to /dev/null according to FastCGI specs. ; Note: on highloaded environement, this can cause some delay in the page ; process time (several ms). ; Default Value: no php_admin_value[display_errors] = stderr catch_workers_output = yes ; Add to Apache log. ; Limits the extensions of the main script FPM will allow to parse. This can ; prevent configuration mistakes on the web server side. You should only limit ; FPM to .php extensions to prevent malicious users to use other extensions to ; exectute php code. ; Note: set an empty value to allow all extensions. ; Default Value: .php security.limit_extensions = .php .php3 .php4 .php5 .phar ; Pass environment variables like LD_LIBRARY_PATH. All $VARIABLEs are taken from ; the current environment. ; Default Value: clean env ;env[HOSTNAME] = $HOSTNAME ;env[PATH] = /usr/local/bin:/usr/bin:/bin ;env[TMP] = /tmp ;env[TMPDIR] = /tmp ;env[TEMP] = /tmp php_admin_flag[log_errors] = on ;php_admin_flag[display_errors] = stderr ; Send displayed errors to error stream instead of screen ;php_admin_value[error_reporting] = 2147483647 ; Log all (WARNING: very verbose) ;php_admin_value[memory_limit] = 32M php_admin_value[upload_max_filesize] = 32M php_admin_value[post_max_size] = 32M php_admin_value[max_execution_time] = 30 

日志摘录

/var/log/upstart/php5-fpm.log

PHP_FPM重启后@ 09:54正常运行后:

 [11-Mar-2015 09:54:03] NOTICE: fpm is running, pid 17478 [11-Mar-2015 09:54:03] NOTICE: ready to handle connections [11-Mar-2015 09:54:03] NOTICE: systemd monitor interval set to 10000ms [11-Mar-2015 09:59:51] NOTICE: [pool www] child 17481 exited with code 0 after 348.302350 seconds from start [11-Mar-2015 09:59:51] NOTICE: [pool www] child 17978 started [11-Mar-2015 09:59:54] NOTICE: [pool www] child 17488 exited with code 0 after 350.794698 seconds from start [11-Mar-2015 09:59:54] NOTICE: [pool www] child 17982 started [11-Mar-2015 09:59:54] NOTICE: [pool www] child 17485 exited with code 0 after 351.236038 seconds from start [11-Mar-2015 09:59:54] NOTICE: [pool www] child 17985 started [11-Mar-2015 10:00:01] NOTICE: [pool www] child 17486 exited with code 0 after 357.770981 seconds from start [11-Mar-2015 10:00:01] NOTICE: [pool www] child 17995 started [11-Mar-2015 10:00:01] NOTICE: [pool www] child 17484 exited with code 0 after 358.020653 seconds from start [11-Mar-2015 10:00:01] NOTICE: [pool www] child 17996 started [11-Mar-2015 10:00:02] NOTICE: [pool www] child 17483 exited with code 0 after 358.627602 seconds from start [11-Mar-2015 10:00:02] NOTICE: [pool www] child 18048 started [11-Mar-2015 10:00:02] NOTICE: [pool www] child 17487 exited with code 0 after 358.753904 seconds from start [11-Mar-2015 10:00:02] NOTICE: [pool www] child 18049 started [11-Mar-2015 10:00:03] NOTICE: [pool www] child 17489 exited with code 0 after 360.321755 seconds from start [11-Mar-2015 10:00:03] NOTICE: [pool www] child 18053 started [11-Mar-2015 10:00:05] NOTICE: [pool www] child 17490 exited with code 0 after 361.648421 seconds from start [11-Mar-2015 10:00:05] NOTICE: [pool www] child 18061 started [11-Mar-2015 10:00:05] NOTICE: [pool www] child 17494 exited with code 0 after 359.677309 seconds from start [11-Mar-2015 10:00:05] NOTICE: [pool www] child 18062 started [11-Mar-2015 10:00:11] NOTICE: [pool www] child 17482 exited with code 0 after 368.373606 seconds from start [11-Mar-2015 10:00:11] NOTICE: [pool www] child 18070 started 

然后,我们开始看到麻烦的第一个迹象(服务器CPU和内存在这一点上仍然很好):

 [11-Mar-2015 10:13:02] NOTICE: [pool www] child 19380 started [11-Mar-2015 10:13:04] NOTICE: [pool www] child 18791 exited with code 0 after 380.518655 seconds from start [11-Mar-2015 10:13:04] NOTICE: [pool www] child 19381 started [11-Mar-2015 10:13:04] NOTICE: [pool www] child 18787 exited with code 0 after 382.270838 seconds from start [11-Mar-2015 10:13:04] NOTICE: [pool www] child 19382 started [11-Mar-2015 10:13:05] NOTICE: [pool www] child 18794 exited with code 0 after 378.655639 seconds from start [11-Mar-2015 10:13:05] NOTICE: [pool www] child 19384 started [11-Mar-2015 10:15:28] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 7 idle, and 20 total children [11-Mar-2015 10:15:41] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 8 idle, and 32 total children [11-Mar-2015 10:15:46] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 8 children, there are 8 idle, and 38 total children [11-Mar-2015 10:15:47] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 16 children, there are 9 idle, and 40 total children [11-Mar-2015 10:15:48] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 8 idle, and 41 total children [11-Mar-2015 10:15:49] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 9 idle, and 43 total children [11-Mar-2015 10:15:50] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 9 idle, and 44 total children [11-Mar-2015 10:15:55] WARNING: [pool www] child 19384, script '/var/www/html/index.php' (request: "GET /index.php") execution timed out (31.932041 sec), terminating [11-Mar-2015 10:15:55] WARNING: [pool www] child 19382, script '/var/www/html/public_html/index.php' (request: "GET /public_html/index.php") execution timed out (32.027672 sec), terminating [11-Mar-2015 10:15:55] WARNING: [pool www] child 19366, script '/var/www/html/public_html/index.php' (request: "GET /public_html/index.php") execution timed out (31.208359 sec), terminating [11-Mar-2015 10:15:55] WARNING: [pool www] child 19363, script '/var/www/html/public_html/index.php' (request: "GET /public_html/index.php") execution timed out (32.113767 sec), terminating [11-Mar-2015 10:15:55] WARNING: [pool www] child 19355, script '/var/www/html/public_html/index.php' (request: "GET /public_html/index.php") execution timed out (31.057660 sec), terminating [11-Mar-2015 10:15:55] WARNING: [pool www] child 19351, script '/var/www/html/public_html/index.php' (request: "GET /public_html/index.php") execution timed out (32.977536 sec), terminating [11-Mar-2015 10:15:55] WARNING: [pool www] child 19384 exited on signal 15 (SIGTERM) after 170.885585 seconds from start [11-Mar-2015 10:15:55] NOTICE: [pool www] child 19760 started [11-Mar-2015 10:15:55] WARNING: [pool www] child 19366 exited on signal 15 (SIGTERM) after 184.386893 seconds from start [11-Mar-2015 10:15:55] NOTICE: [pool www] child 19761 started [11-Mar-2015 10:15:55] WARNING: [pool www] child 19382 exited on signal 15 (SIGTERM) after 171.442721 seconds from start [11-Mar-2015 10:15:55] NOTICE: [pool www] child 19762 started [11-Mar-2015 10:15:55] WARNING: [pool www] child 19355 exited on signal 15 (SIGTERM) after 193.595364 seconds from start [11-Mar-2015 10:15:55] NOTICE: [pool www] child 19764 started [11-Mar-2015 10:15:55] WARNING: [pool www] child 19351 exited on signal 15 (SIGTERM) after 195.910381 seconds from start [11-Mar-2015 10:15:55] NOTICE: [pool www] child 19765 started [11-Mar-2015 10:15:55] WARNING: [pool www] child 19363 exited on signal 15 (SIGTERM) after 187.115830 seconds from start [11-Mar-2015 10:15:55] NOTICE: [pool www] child 19766 started [11-Mar-2015 10:16:06] WARNING: [pool www] child 19657, script '/var/www/html/public_html/wp-admin/admin-ajax.php' (request: "POST /public_html/wp-admin/admin-ajax.php") execution timed out (31.374989 sec), terminating [11-Mar-2015 10:16:06] WARNING: [pool www] child 19656, script '/var/www/html/public_html/wp-admin/admin-ajax.php' (request: "POST /public_html/wp-admin/admin-ajax.php") execution timed out (33.896470 sec), terminating [11-Mar-2015 10:16:06] WARNING: [pool www] child 19652, script '/var/www/html/public_html/wp-admin/admin-ajax.php' (request: "POST /public_html/wp-admin/admin-ajax.php") execution timed out (35.011947 sec), terminating [11-Mar-2015 10:16:06] WARNING: [pool www] child 19651, script '/var/www/html/public_html/index.php' (request: "GET /public_html/index.php") execution timed out (35.830626 sec), terminating [11-Mar-2015 10:16:06] WARNING: [pool www] child 19381, script '/var/www/html/public_html/index.php' (request: "GET /public_html/index.php") execution timed out (38.100342 sec), terminating [11-Mar-2015 10:16:06] WARNING: [pool www] child 19371, script '/var/www/html/public_html/index.php' (request: "GET /public_html/index.php") execution timed out (39.258347 sec), terminating [11-Mar-2015 10:16:06] WARNING: [pool www] child 19365, script '/var/www/html/public_html/index.php' (request: "GET /public_html/index.php") execution timed out (39.064079 sec), terminating [11-Mar-2015 10:16:06] WARNING: [pool www] child 19360, script '/var/www/html/public_html/index.php' (request: "GET /public_html/index.php") execution timed out (37.983709 sec), terminating [11-Mar-2015 10:16:06] WARNING: [pool www] child 19356, script '/var/www/html/public_html/index.php' (request: "GET /public_html/index.php") execution timed out (40.136172 sec), terminating [11-Mar-2015 10:16:06] WARNING: [pool www] child 19272, script '/var/www/html/public_html/index.php' (request: "GET /public_html/index.php") execution timed out (38.265691 sec), terminating [11-Mar-2015 10:16:06] WARNING: [pool www] child 19229, script '/var/www/html/public_html/index.php' (request: "GET /public_html/index.php") execution timed out (34.137729 sec), terminating [11-Mar-2015 10:16:06] WARNING: [pool www] child 19091, script '/var/www/html/public_html/wp-admin/admin-ajax.php' (request: "POST /public_html/wp-admin/admin-ajax.php") execution timed out (38.957131 sec), terminating [11-Mar-2015 10:16:06] WARNING: [pool www] child 19651 exited on signal 15 (SIGTERM) after 40.426680 seconds from start [11-Mar-2015 10:16:06] NOTICE: [pool www] child 19840 started [11-Mar-2015 10:16:06] WARNING: [pool www] child 19091 exited on signal 15 (SIGTERM) after 384.915614 seconds from start [11-Mar-2015 10:16:06] NOTICE: [pool www] child 19841 started [11-Mar-2015 10:16:06] WARNING: [pool www] child 19381 exited on signal 15 (SIGTERM) after 182.183820 seconds from start [11-Mar-2015 10:16:06] NOTICE: [pool www] child 19842 started [11-Mar-2015 10:16:06] WARNING: [pool www] child 19652 exited on signal 15 (SIGTERM) after 39.431626 seconds from start [11-Mar-2015 10:16:06] NOTICE: [pool www] child 19843 started [11-Mar-2015 10:16:06] WARNING: [pool www] child 19656 exited on signal 15 (SIGTERM) after 38.430261 seconds from start [11-Mar-2015 10:16:06] NOTICE: [pool www] child 19844 started 

这一直持续到我注意到快速的小孩升级(并打开MySQL连接)。 在这一点上,我将重新启动PHP_FPM服务(@ 10:18:54)。 这次我在150个Max儿童用完之前就收到了,但是没有一个PHP脚本收到200个回复。 崩溃是不可避免的。

 [11-Mar-2015 10:18:51] WARNING: [pool www] child 20080, script '/var/www/html/index.php' (request: "GET /index.php") execution timed out (39.148257 sec), terminating [11-Mar-2015 10:18:51] WARNING: [pool www] child 20079, script '/var/www/html/public_html/index.php' (request: "GET /public_html/index.php") execution timed out (40.497106 sec), terminating [11-Mar-2015 10:18:51] WARNING: [pool www] child 20078, script '/var/www/html/public_html/index.php' (request: "GET /public_html/index.php") execution timed out (40.785344 sec), terminating [11-Mar-2015 10:18:51] WARNING: [pool www] child 20077, script '/var/www/html/public_html/index.php' (request: "GET /public_html/index.php") execution timed out (41.271773 sec), terminating [11-Mar-2015 10:18:51] WARNING: [pool www] child 19969, script '/var/www/html/public_html/wp-content/plugins/w3-total-cache/pub/minify.php' (request: "GET /public_html/wp-content/plugins/w3-total-cache/pub/minify.php") execution timed out (33.608193 sec), terminating [11-Mar-2015 10:18:51] WARNING: [pool www] child 19969 exited on signal 15 (SIGTERM) after 113.661735 seconds from start [11-Mar-2015 10:18:51] NOTICE: [pool www] child 20279 started [11-Mar-2015 10:18:51] WARNING: [pool www] child 20081 exited on signal 15 (SIGTERM) after 62.003482 seconds from start [11-Mar-2015 10:18:51] NOTICE: [pool www] child 20280 started [11-Mar-2015 10:18:51] WARNING: [pool www] child 20084 exited on signal 15 (SIGTERM) after 62.001519 seconds from start [11-Mar-2015 10:18:51] NOTICE: [pool www] child 20283 started [11-Mar-2015 10:18:51] WARNING: [pool www] child 20077 exited on signal 15 (SIGTERM) after 62.009634 seconds from start [11-Mar-2015 10:18:51] NOTICE: [pool www] child 20284 started [11-Mar-2015 10:18:51] WARNING: [pool www] child 20078 exited on signal 15 (SIGTERM) after 62.009429 seconds from start [11-Mar-2015 10:18:51] NOTICE: [pool www] child 20285 started [11-Mar-2015 10:18:51] WARNING: [pool www] child 20079 exited on signal 15 (SIGTERM) after 62.009275 seconds from start [11-Mar-2015 10:18:51] NOTICE: [pool www] child 20286 started [11-Mar-2015 10:18:51] WARNING: [pool www] child 20080 exited on signal 15 (SIGTERM) after 62.007759 seconds from start [11-Mar-2015 10:18:51] NOTICE: [pool www] child 20287 started [11-Mar-2015 10:18:51] WARNING: [pool www] child 20097 exited on signal 15 (SIGTERM) after 51.677646 seconds from start [11-Mar-2015 10:18:51] NOTICE: [pool www] child 20288 started [11-Mar-2015 10:18:51] WARNING: [pool www] child 20100 exited on signal 15 (SIGTERM) after 51.675055 seconds from start [11-Mar-2015 10:18:51] NOTICE: [pool www] child 20289 started [11-Mar-2015 10:18:54] NOTICE: Terminating ... [11-Mar-2015 10:18:54] NOTICE: exiting, bye-bye! 

FastCGI:从服务器收到的不完整标题(0字节)“/ var / www / cgi- bin / fastcgi.php5-fpm“,referer: https ://www.thewebsitedomain.com/public_html/some-post/ [Wed Mar 11 09:54:03.418052 2015] [fastcgi:error] [pid 13072:tid 140351486428928] (104)通过对等方重置连接:[client 84.202.21.98:52139] FastCGI:与服务器通信“/var/www/cgi-bin/fastcgi.php5-fpm”中止:读取失败[Wed Mar 11 09:54:03.418078 FastCGI:从服务器收到的不完整标题(0字节)“/var/www/cgi-bin/fastcgi.php5-fpm”[fastcgi:error] [pid 13072:tid 140351486428928] [client 84.202.21.98:52139]星期三3月11日10:15:19.031557 2015] [:错误] [pid 18669:tid 140351536785152] [客户62.108.27.152:56596] FastCGI:服务器“/var/www/cgi-bin/fastcgi.php5-fpm”stderr:主要脚本不明[Wed Mar 11 10:15:55.905638 2015] [fastcgi:error] [pid 18728:tid 140351394109184](104) [client 211.28.60.59:53044] FastCGI:与服务器通信“/var/www/cgi-bin/fastcgi.php5-fpm”中止:读取失败[Wed Mar 11 10:15:55.905681 2015] [fastcgi:error] [ pid 18728:tid 140351394109184] [client 211.28.60.59:53044] FastCGI:从服务器收到的不完整标题(0字节)“/var/www/cgi-bin/fastcgi.php5-fpm”[Wed Mar 11 10:15:55.906363 2015)[fastcgi:错误] [pid 18669:tid 140351494821632](104)通过对等方重置连接:[client 58.174.227.102:61362] FastCGI:与服务器通信“/var/www/cgi-bin/fastcgi.php5-fpm “中止:阅读失败,引用: https : //www.thewebsitedomain.com/public_html/some-post/page/3/

/var/log/apache2/error.log(域名和url已更改)

这里有很多条目,但都属于下面的两个类别。

FastCGI: comm with server "/var/www/cgi-bin/fastcgi.php5-fpm" aborted: read failed当我手动重新启动php-fpm时强制closures所有仍然打开的连接, FastCGI: comm with server "/var/www/cgi-bin/fastcgi.php5-fpm" aborted: read failed的文件。

stderr: Primary script unknown的是由机器人尝试随机URL导致404错误。

 [Wed Mar 11 12:28:53.135352 2015] [:error] [pid 31126:tid 139952113252096] [client 188.40.153.39:46874] FastCGI: server "/var/www/cgi-bin/fastcgi.php5-fpm" stderr: Primary script unknown [Wed Mar 11 12:28:54.344039 2015] [:error] [pid 437:tid 139952197179136] [client 188.40.153.39:46875] FastCGI: server "/var/www/cgi-bin/fastcgi.php5-fpm" stderr: Primary script unknown [Wed Mar 11 12:40:25.086767 2015] [:error] [pid 437:tid 139952338970368] [client 49.4.164.66:55601] FastCGI: server "/var/www/cgi-bin/fastcgi.php5-fpm" stderr: Primary script unknown [Wed Mar 11 12:40:27.536523 2015] [:error] [pid 437:tid 139952079681280] [client 49.4.164.66:55847] FastCGI: server "/var/www/cgi-bin/fastcgi.php5-fpm" stderr: Primary script unknown [Wed Mar 11 12:45:08.438864 2015] [:error] [pid 437:tid 139952347363072] [client 5.39.218.220:35839] FastCGI: server "/var/www/cgi-bin/fastcgi.php5-fpm" stderr: Primary script unknown [Wed Mar 11 12:56:02.328823 2015] [core:error] [pid 437:tid 139952330577664] [client 41.13.228.41:26895] AH00126: Invalid URI in request POST ww.thewebsitedomain.com/public_html/wp-admin/admin-ajax.php HTTP/1.1 [Wed Mar 11 13:01:01.058193 2015] [:error] [pid 31126:tid 139952146822912] [client 69.12.90.191:58259] FastCGI: server "/var/www/cgi-bin/fastcgi.php5-fpm" stderr: Primary script unknown, referer: https://www.thewebsitedomain.com/ [Wed Mar 11 13:01:02.346250 2015] [:error] [pid 31126:tid 139952355755776] [client 69.12.90.191:58259] FastCGI: server "/var/www/cgi-bin/fastcgi.php5-fpm" stderr: Primary script unknown, referer: https://www.thewebsitedomain.com/wp-login.php?action=register [Wed Mar 11 13:10:11.007667 2015] [:error] [pid 4074:tid 139952062895872] [client 23.94.222.15:53539] FastCGI: server "/var/www/cgi-bin/fastcgi.php5-fpm" stderr: Primary script unknown, referer: https://www.thewebsitedomain.com/ [Wed Mar 11 13:10:11.671945 2015] [:error] [pid 4074:tid 139952330577664] [client 23.94.222.15:53539] FastCGI: server "/var/www/cgi-bin/fastcgi.php5-fpm" stderr: Primary script unknown, referer: https://www.thewebsitedomain.com/wp-login.php?action=register 

我有很多其他的日志保存,以及我各种尝试configuration更改的详细说明。 不知道还有什么可能是相关的。 很高兴发布其他任何有用的信息。

感谢您寻求解决scheme的任何build议。 即使它只是一个临时的解决方法,所以我可以离开服务器无人看pipe足够长的时间睡眠和充电。