挨踢小白 发表于 2012-9-1 14:03:56

php-cgi处理大的php动态页面时经常返回502

军好,好,帮我分析一下,php-cgi吧。处理大的php页面时经常超时。。。502 bad gateway!!!!!!!!!!!!!!
这是php-cgi的LOG
fpm_request_check_timed_out(), line 158: child 13809, script '/home/wwwroot/xxxxx/index.php' (pool default) execution timed out (15.009033 sec), terminating
Sep 01 13:51:10.144076 fpm_got_signal(), line 48: received SIGCHLD
Sep 01 13:51:10.144119 fpm_children_bury(), line 215: child 13809 (pool default) exited on signal 15 SIGTERM after 1906.703865 seconds from start
这个问题折磨好很多天,希望给指点一下,非常感谢!!!!!!
PS: 上面的xxxxx代表我的vhost

licess 发表于 2012-9-1 16:33:43

https://bbs.vpser.net/thread-1654-1-1.html

挨踢小白 发表于 2012-9-3 11:29:25

回复 1# 的帖子

这个值我修改过。还是会有像下面这样的报错呢.PS:我php-fpm.conf里面request_terminate_timeout这个值我已经加到15秒了!!
Sep 03 11:24:01.961056 fpm_children_make(), line 352: child 19550 (pool default) started
Sep 03 11:24:30.496094 fpm_request_check_timed_out(), line 158: child 19385, script '/home/wwwroot/xxxxxx/index.php' (pool default) execution timed out (15.007659 sec), terminating
Sep 03 11:24:30.496733 fpm_got_signal(), line 48: received SIGCHLD
Sep 03 11:24:30.496774 fpm_children_bury(), line 215: child 19385 (pool default) exited on signal 15 SIGTERM after 157.211859 seconds from start
页: [1]
查看完整版本: php-cgi处理大的php动态页面时经常返回502