VPS侦探论坛

 找回密码
 注册
查看: 6103|回复: 4

我也来问个502问题,每天都很频繁

[复制链接]
发表于 2013-8-9 09:37:56 | 显示全部楼层 |阅读模式

贴PHP-FPM的LOG文件。

贴PHP-FPM的LOG文件。

[09-Aug-2013 03:15:11] WARNING: [pool www] child 6925, script '/www/forum.php' (request: "GET /forum.php") execution timed out (126.216535 sec), terminating
[09-Aug-2013 03:15:11] WARNING: [pool www] child 6924, script '/www/forum.php' (request: "GET /forum.php") execution timed out (141.602054 sec), terminating
[09-Aug-2013 03:15:11] WARNING: [pool www] child 6910, script '/wwwforum.php' (request: "GET /forum.php") execution timed out (143.610163 sec), terminating
[09-Aug-2013 03:15:11] WARNING: [pool www] child 6900, script '/www/forum.php' (request: "GET /forum.php") execution timed out (124.727048 sec), terminating
[09-Aug-2013 03:15:11] WARNING: [pool www] child 6748, script '/www/forum.php' (request: "GET /forum.php") execution timed out (143.796942 sec), terminating
[09-Aug-2013 03:15:11] WARNING: [pool www] child 28311, script '/www/forum.php' (request: "GET /forum.php") execution timed out (128.805787 sec), terminating
[09-Aug-2013 03:15:11] WARNING: [pool www] child 27868, script '/www/forum.php' (request: "GET /forum.php") execution timed out (131.968560 sec), terminating
[09-Aug-2013 03:15:11] WARNING: [pool www] child 27856, script '/www/forum.php' (request: "GET /forum.php") execution timed out (133.026622 sec), terminating
[09-Aug-2013 03:15:11] WARNING: [pool www] child 19114 exited on signal 15 (SIGTERM) after 32880.798480 seconds from start
[09-Aug-2013 03:15:11] NOTICE: [pool www] child 26384 started
[09-Aug-2013 03:15:11] WARNING: [pool www] child 3119 exited on signal 15 (SIGTERM) after 14720.264240 seconds from start
[09-Aug-2013 03:15:11] NOTICE: [pool www] child 26385 started
[09-Aug-2013 03:15:11] WARNING: [pool www] child 19231 exited on signal 15 (SIGTERM) after 11560.275944 seconds from start
[09-Aug-2013 03:15:11] NOTICE: [pool www] child 26386 started
[09-Aug-2013 03:15:11] WARNING: [pool www] child 23403 exited on signal 15 (SIGTERM) after 11320.329505 seconds from start
[09-Aug-2013 03:15:11] NOTICE: [pool www] child 26387 started
[09-Aug-2013 03:15:11] WARNING: [pool www] child 27856 exited on signal 15 (SIGTERM) after 41441.076612 seconds from start
[09-Aug-2013 03:15:11] NOTICE: [pool www] child 26391 started
[09-Aug-2013 03:15:11] WARNING: [pool www] child 27868 exited on signal 15 (SIGTERM) after 41441.041977 seconds from start
[09-Aug-2013 03:15:11] NOTICE: [pool www] child 26393 started
[09-Aug-2013 03:15:11] WARNING: [pool www] child 6748 exited on signal 15 (SIGTERM) after 38280.967759 seconds from start
[09-Aug-2013 03:15:11] NOTICE: [pool www] child 26395 started
[09-Aug-2013 03:15:11] WARNING: [pool www] child 6900 exited on signal 15 (SIGTERM) after 38241.040787 seconds from start
[09-Aug-2013 03:15:11] NOTICE: [pool www] child 26397 started
[09-Aug-2013 03:15:11] WARNING: [pool www] child 28311 exited on signal 15 (SIGTERM) after 41361.121350 seconds from start
[09-Aug-2013 03:15:11] NOTICE: [pool www] child 26400 started
[09-Aug-2013 03:15:11] WARNING: [pool www] child 6910 exited on signal 15 (SIGTERM) after 38241.038729 seconds from start
[09-Aug-2013 03:15:11] NOTICE: [pool www] child 26401 started
[09-Aug-2013 03:15:11] WARNING: [pool www] child 6924 exited on signal 15 (SIGTERM) after 38241.035563 seconds from start
[09-Aug-2013 03:15:11] NOTICE: [pool www] child 26402 started
[09-Aug-2013 03:15:11] WARNING: [pool www] child 6925 exited on signal 15 (SIGTERM) after 38241.035876 seconds from start
[09-Aug-2013 03:15:11] NOTICE: [pool www] child 26403 started
[09-Aug-2013 03:15:11] WARNING: [pool www] child 6932 exited on signal 15 (SIGTERM) after 38241.033764 seconds from start
[09-Aug-2013 03:15:11] NOTICE: [pool www] child 26404 started
[09-Aug-2013 03:15:11] WARNING: [pool www] child 6935 exited on signal 15 (SIGTERM) after 38241.033107 seconds from start
[09-Aug-2013 03:15:11] NOTICE: [pool www] child 26405 started
[09-Aug-2013 03:15:11] WARNING: [pool www] child 6937 exited on signal 15 (SIGTERM) after 38241.032841 seconds from start
[09-Aug-2013 03:15:11] NOTICE: [pool www] child 26406 started
[09-Aug-2013 03:15:11] WARNING: [pool www] child 6951 exited on signal 15 (SIGTERM) after 38240.959229 seconds from start
[09-Aug-2013 03:15:11] NOTICE: [pool www] child 26407 started
[09-Aug-2013 03:15:11] WARNING: [pool www] child 22406 exited on signal 15 (SIGTERM) after 37161.011855 seconds from start
[09-Aug-2013 03:15:11] NOTICE: [pool www] child 26409 started
[09-Aug-2013 03:15:11] WARNING: [pool www] child 22413 exited on signal 15 (SIGTERM) after 37161.009382 seconds from start
[09-Aug-2013 03:15:11] NOTICE: [pool www] child 26410 started
[09-Aug-2013 03:15:11] WARNING: [pool www] child 22416 exited on signal 15 (SIGTERM) after 37161.008717 seconds from start
[09-Aug-2013 03:15:11] NOTICE: [pool www] child 26411 started
[09-Aug-2013 03:15:11] WARNING: [pool www] child 22427 exited on signal 15 (SIGTERM) after 37160.994853 seconds from start
[09-Aug-2013 03:15:11] NOTICE: [pool www] child 26412 started
[09-Aug-2013 03:15:11] WARNING: [pool www] child 2910 exited on signal 15 (SIGTERM) after 36281.006465 seconds from start
[09-Aug-2013 03:15:11] NOTICE: [pool www] child 26413 started
[09-Aug-2013 03:15:11] WARNING: [pool www] child 2916 exited on signal 15 (SIGTERM) after 36281.000177 seconds from start
[09-Aug-2013 03:15:11] NOTICE: [pool www] child 26414 started
[09-Aug-2013 03:15:11] WARNING: [pool www] child 2928 exited on signal 15 (SIGTERM) after 36280.997861 seconds from start
[09-Aug-2013 03:15:11] NOTICE: [pool www] child 26415 started
[09-Aug-2013 03:15:11] WARNING: [pool www] child 2929 exited on signal 15 (SIGTERM) after 36280.997658 seconds from start
[09-Aug-2013 03:15:11] NOTICE: [pool www] child 26416 started
[09-Aug-2013 03:15:11] WARNING: [pool www] child 2932 exited on signal 15 (SIGTERM) after 36280.987401 seconds from start
[09-Aug-2013 03:15:11] NOTICE: [pool www] child 26417 started
[09-Aug-2013 03:15:11] WARNING: [pool www] child 19094 exited on signal 15 (SIGTERM) after 32880.855195 seconds from start
[09-Aug-2013 03:15:11] NOTICE: [pool www] child 26418 started
[09-Aug-2013 03:15:11] WARNING: [pool www] child 19101 exited on signal 15 (SIGTERM) after 32880.852738 seconds from start
[09-Aug-2013 03:15:11] NOTICE: [pool www] child 26419 started
[09-Aug-2013 03:15:11] WARNING: [pool www] child 19102 exited on signal 15 (SIGTERM) after 32880.852719 seconds from start
[09-Aug-2013 03:15:11] NOTICE: [pool www] child 26420 started
[09-Aug-2013 03:15:11] WARNING: [pool www] child 19105 exited on signal 15 (SIGTERM) after 32880.851927 seconds from start
[09-Aug-2013 03:15:11] NOTICE: [pool www] child 26421 started
[09-Aug-2013 03:15:11] WARNING: [pool www] child 19111 exited on signal 15 (SIGTERM) after 32880.849865 seconds from start
[09-Aug-2013 03:15:11] NOTICE: [pool www] child 26422 started
[09-Aug-2013 03:15:51] WARNING: [pool www] child 18658, script '/www/forum.php' (request: "GET /forum.php") execution timed out (131.681993 sec), terminating
[09-Aug-2013 03:15:51] WARNING: [pool www] child 19949, script '/www/forum.php' (request: "GET /forum.php") execution timed out (151.696535 sec), terminating
[09-Aug-2013 03:15:51] WARNING: [pool www] child 4490, script '/www/forum.php' (request: "GET /forum.php") execution timed out (137.401449 sec), terminating
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2013-8-9 09:38:21 | 显示全部楼层


[09-Aug-2013 03:15:51] NOTICE: [pool www] child 26681 started
[09-Aug-2013 03:15:51] WARNING: [pool www] child 28085 exited on signal 15 (SIGTERM) after 41441.107288 seconds from start
[09-Aug-2013 03:15:51] NOTICE: [pool www] child 26682 started
[09-Aug-2013 03:15:51] WARNING: [pool www] child 3127 exited on signal 15 (SIGTERM) after 14760.273795 seconds from start
[09-Aug-2013 03:15:51] NOTICE: [pool www] child 26683 started
[09-Aug-2013 03:15:51] WARNING: [pool www] child 19095 exited on signal 15 (SIGTERM) after 32920.845139 seconds from start
[09-Aug-2013 03:15:51] NOTICE: [pool www] child 26684 started
[09-Aug-2013 03:15:51] WARNING: [pool www] child 598 exited on signal 15 (SIGTERM) after 29880.720026 seconds from start
[09-Aug-2013 03:15:51] NOTICE: [pool www] child 26685 started
[09-Aug-2013 03:15:51] WARNING: [pool www] child 3121 exited on signal 15 (SIGTERM) after 14760.302317 seconds from start
[09-Aug-2013 03:15:51] NOTICE: [pool www] child 26686 started
[09-Aug-2013 03:15:51] WARNING: [pool www] child 19113 exited on signal 15 (SIGTERM) after 32920.839333 seconds from start
[09-Aug-2013 03:15:51] NOTICE: [pool www] child 26687 started
[09-Aug-2013 03:15:51] WARNING: [pool www] child 22412 exited on signal 15 (SIGTERM) after 37201.014238 seconds from start
[09-Aug-2013 03:15:51] NOTICE: [pool www] child 26688 started
[09-Aug-2013 03:15:51] WARNING: [pool www] child 6909 exited on signal 15 (SIGTERM) after 38281.050822 seconds from start
[09-Aug-2013 03:15:51] NOTICE: [pool www] child 26689 started
[09-Aug-2013 03:15:51] WARNING: [pool www] child 22426 exited on signal 15 (SIGTERM) after 37201.002065 seconds from start
[09-Aug-2013 03:15:51] NOTICE: [pool www] child 26690 started
[09-Aug-2013 03:15:51] WARNING: [pool www] child 2923 exited on signal 15 (SIGTERM) after 36320.999505 seconds from start
[09-Aug-2013 03:15:51] NOTICE: [pool www] child 26691 started
[09-Aug-2013 03:15:51] WARNING: [pool www] child 2936 exited on signal 15 (SIGTERM) after 36320.962312 seconds from start
[09-Aug-2013 03:15:51] NOTICE: [pool www] child 26692 started
[09-Aug-2013 03:15:51] WARNING: [pool www] child 19093 exited on signal 15 (SIGTERM) after 32920.852849 seconds from start
[09-Aug-2013 03:15:51] NOTICE: [pool www] child 26694 started
[09-Aug-2013 03:15:51] WARNING: [pool www] child 19096 exited on signal 15 (SIGTERM) after 32920.852668 seconds from start
[09-Aug-2013 03:15:51] NOTICE: [pool www] child 26695 started
[09-Aug-2013 03:15:51] WARNING: [pool www] child 595 exited on signal 15 (SIGTERM) after 29880.729693 seconds from start
[09-Aug-2013 03:15:51] NOTICE: [pool www] child 26696 started
[09-Aug-2013 03:15:51] WARNING: [pool www] child 3125 exited on signal 15 (SIGTERM) after 14760.283859 seconds from start
[09-Aug-2013 03:15:51] NOTICE: [pool www] child 26697 started

经常502,每天偶尔三四次,高的时候十几次。

下面是PHP-FPM.CONF的配置参数。

listen = 127.0.0.1:9000
user = www
group = www
pm = dynamic
pm.max_children = 100
pm.start_servers = 10
pm.min_spare_servers = 8
pm.max_spare_servers = 100
pm.max_requests = 10240
request_terminate_timeout = 120s
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2013-8-9 15:36:15 | 显示全部楼层

上面的那个日志里有,程序长时间执行拖垮了php-fpm
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2013-10-17 18:36:20 | 显示全部楼层

回复 3# 的帖子




应该怎么解决呢?????
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2013-10-17 20:54:30 | 显示全部楼层

检查网站程序可能论坛上的插件之类的导致的

军哥运维代购:http://shop63846532.taobao.com/

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-12-26 14:05 , Processed in 0.034989 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表