php-fpm日志出现以下情况:  不知道如何解决
[21-Nov-2017 18:33:49] NOTICE: [pool www] child 5737 started
[21-Nov-2017 19:08:49] WARNING: [pool www] child 5737, script '/var/www/bbs/index.php' (request: "GET /index.php") execution timed out (1193.068792 sec), terminating
[21-Nov-2017 19:08:49] WARNING: [pool www] child 5737 exited on signal 15 (SIGTERM) after 2100.005507 seconds from start
[21-Nov-2017 19:08:49] NOTICE: [pool www] child 5788 started
[21-Nov-2017 19:53:49] WARNING: [pool www] child 5614, script '/var/www/bbs/index.php' (request: "GET /index.php") execution timed out (1034.911156 sec), terminating
[21-Nov-2017 19:53:49] WARNING: [pool www] child 5614 exited on signal 15 (SIGTERM) after 7800.027390 seconds from start
[21-Nov-2017 19:53:49] NOTICE: [pool www] child 5833 started
[21-Nov-2017 22:03:49] WARNING: [pool www] child 5510, script '/var/www/bbs/index.php' (request: "GET /index.php") execution timed out (946.894139 sec), terminating
[21-Nov-2017 22:03:49] WARNING: [pool www] child 5510 exited on signal 15 (SIGTERM) after 16766.712291 seconds from start
[21-Nov-2017 22:03:49] NOTICE: [pool www] child 6125 started
[21-Nov-2017 22:43:49] WARNING: [pool www] child 5788, script '/var/www/bbs/index.php' (request: "GET /index.php") execution timed out (1086.586503 sec), terminating
[21-Nov-2017 22:43:49] WARNING: [pool www] child 5788 exited on signal 15 (SIGTERM) after 12900.047981 seconds from start
[21-Nov-2017 22:43:49] NOTICE: [pool www] child 6164 started
[22-Nov-2017 04:13:49] WARNING: [pool www] child 5380, script '/var/www/bbs/index.php' (request: "GET /index.php") execution timed out (1088.584897 sec), terminating
[22-Nov-2017 04:13:49] WARNING: [pool www] child 5380 exited on signal 15 (SIGTERM) after 39300.142089 seconds from start
[22-Nov-2017 04:13:49] NOTICE: [pool www] child 6702 started
[22-Nov-2017 05:28:49] WARNING: [pool www] child 5444, script '/var/www/bbs/index.php' (request: "GET /index.php") execution timed out (1043.730957 sec), terminating
[22-Nov-2017 05:28:49] WARNING: [pool www] child 5444 exited on signal 15 (SIGTERM) after 43668.021433 seconds from start
[22-Nov-2017 05:28:49] NOTICE: [pool www] child 6759 started

解决方案 »

  1.   

    优化你的代码,index.php 页面执行超时了,执行1000多秒
      

  2.   

    是这样子的,我用的是一个开源软件论坛 好像是会一直执行这个 index.php  我现在把request_terminate_timeout 给改成 0 了  之前是900 这样设置会有什么问题吗?大神,有个问题 就是一个人访问就会打开一个fpm进程吗?
     
    netstat -napo |grep "php-fpm" | wc -l   如果这个达到设定的值网页是不是就挂了 
      

  3.   

    肯定不能设置为0,而且一个访问就执行 1000多秒,合理吗?
    max_children 300,300个同时访问index.php,你网站就不能提供服务
    你的代码有问题,优化你的代码