VPS侦探论坛

 找回密码
 注册
查看: 5963|回复: 3

军哥,502 Bad Gateway ,好像是php-cgi执行过程中自动死掉了照成的

[复制链接]
发表于 2013-7-2 17:35:19 | 显示全部楼层 |阅读模式

军哥502 Bad Gateway ,好像是php-cgi执行过程中自动死掉了照成的,PHP 5.3.26php-cgi配置
  1. [global]
  2. pid = /usr/local/php/var/run/php-fpm.pid
  3. error_log = /usr/local/php/var/log/php-fpm.log
  4. log_level = notice

  5. [www]
  6. listen = 127.0.0.1:9000
  7. user = www
  8. group = www
  9. pm = static
  10. pm.max_children = 300
  11. pm.start_servers = 100
  12. pm.min_spare_servers = 50
  13. pm.max_spare_servers = 300
  14. request_terminate_timeout = 0
复制代码




日志
php-fpm.log

  1. [02-Jul-2013 13:32:41] NOTICE: fpm is running, pid 5138
  2. [02-Jul-2013 13:32:41] NOTICE: ready to handle connections
  3. [02-Jul-2013 13:33:28] NOTICE: Finishing ...
  4. [02-Jul-2013 13:33:28] NOTICE: exiting, bye-bye!
  5. [02-Jul-2013 13:33:30] NOTICE: fpm is running, pid 5189
  6. [02-Jul-2013 13:33:30] NOTICE: ready to handle connections
  7. [02-Jul-2013 13:33:33] NOTICE: Finishing ...
  8. [02-Jul-2013 13:33:33] NOTICE: exiting, bye-bye!
  9. [02-Jul-2013 13:33:35] NOTICE: fpm is running, pid 5895
  10. [02-Jul-2013 13:33:35] NOTICE: ready to handle connections
  11. [02-Jul-2013 13:33:37] NOTICE: Finishing ...
  12. [02-Jul-2013 13:33:37] NOTICE: exiting, bye-bye!
  13. [02-Jul-2013 13:33:39] NOTICE: fpm is running, pid 6601
  14. [02-Jul-2013 13:33:39] NOTICE: ready to handle connections
  15. [02-Jul-2013 13:33:42] NOTICE: Finishing ...
  16. [02-Jul-2013 13:33:42] NOTICE: exiting, bye-bye!
  17. [02-Jul-2013 13:33:44] NOTICE: fpm is running, pid 7307
  18. [02-Jul-2013 13:33:44] NOTICE: ready to handle connections
  19. [02-Jul-2013 13:36:54] NOTICE: Finishing ...
  20. [02-Jul-2013 13:36:54] NOTICE: exiting, bye-bye!
  21. [02-Jul-2013 13:36:56] NOTICE: fpm is running, pid 8021
  22. [02-Jul-2013 13:36:56] NOTICE: ready to handle connections
  23. [02-Jul-2013 13:37:02] NOTICE: Finishing ...
  24. [02-Jul-2013 13:37:02] NOTICE: exiting, bye-bye!
  25. [02-Jul-2013 13:37:04] NOTICE: fpm is running, pid 9033
  26. [02-Jul-2013 13:37:04] NOTICE: ready to handle connections
  27. [02-Jul-2013 13:37:07] NOTICE: Finishing ...
  28. [02-Jul-2013 13:37:07] NOTICE: exiting, bye-bye!
  29. [02-Jul-2013 13:37:09] NOTICE: fpm is running, pid 10037
  30. [02-Jul-2013 13:37:09] NOTICE: ready to handle connections
  31. [02-Jul-2013 13:37:11] NOTICE: Finishing ...
  32. [02-Jul-2013 13:37:11] NOTICE: exiting, bye-bye!
  33. [02-Jul-2013 13:37:13] NOTICE: fpm is running, pid 11042
  34. [02-Jul-2013 13:37:13] NOTICE: ready to handle connections
  35. [02-Jul-2013 13:40:03] NOTICE: Finishing ...
  36. [02-Jul-2013 13:40:03] NOTICE: exiting, bye-bye!
  37. [02-Jul-2013 13:40:05] NOTICE: fpm is running, pid 12055
  38. [02-Jul-2013 13:40:05] NOTICE: ready to handle connections
  39. [02-Jul-2013 13:41:22] NOTICE: Finishing ...
  40. [02-Jul-2013 13:41:22] NOTICE: exiting, bye-bye!
  41. [02-Jul-2013 13:41:24] NOTICE: fpm is running, pid 13063
  42. [02-Jul-2013 13:41:24] NOTICE: ready to handle connections
  43. [02-Jul-2013 13:41:54] NOTICE: Terminating ...
  44. [02-Jul-2013 13:41:54] NOTICE: exiting, bye-bye!
  45. [02-Jul-2013 13:42:44] NOTICE: fpm is running, pid 1756
  46. [02-Jul-2013 13:42:44] NOTICE: ready to handle connections
  47. [02-Jul-2013 13:46:44] NOTICE: Finishing ...
  48. [02-Jul-2013 13:46:44] NOTICE: exiting, bye-bye!
  49. [02-Jul-2013 13:46:46] NOTICE: fpm is running, pid 3322
  50. [02-Jul-2013 13:46:46] NOTICE: ready to handle connections
  51. [02-Jul-2013 13:46:49] NOTICE: Finishing ...
  52. [02-Jul-2013 13:46:49] NOTICE: exiting, bye-bye!
  53. [02-Jul-2013 13:46:51] NOTICE: fpm is running, pid 4326
  54. [02-Jul-2013 13:46:51] NOTICE: ready to handle connections
  55. [02-Jul-2013 13:46:54] NOTICE: Finishing ...
  56. [02-Jul-2013 13:46:54] NOTICE: exiting, bye-bye!
  57. [02-Jul-2013 13:46:56] NOTICE: fpm is running, pid 5330
  58. [02-Jul-2013 13:46:56] NOTICE: ready to handle connections
  59. [02-Jul-2013 14:06:11] NOTICE: Finishing ...
  60. [02-Jul-2013 14:06:11] NOTICE: exiting, bye-bye!
  61. [02-Jul-2013 14:06:13] NOTICE: fpm is running, pid 6417
  62. [02-Jul-2013 14:06:13] NOTICE: ready to handle connections
  63. [02-Jul-2013 16:07:51] NOTICE: Finishing ...
  64. [02-Jul-2013 16:07:51] NOTICE: exiting, bye-bye!
  65. [02-Jul-2013 16:07:52] NOTICE: fpm is running, pid 10974
  66. [02-Jul-2013 16:07:53] NOTICE: ready to handle connections
  67. [02-Jul-2013 16:13:36] NOTICE: Finishing ...
  68. [02-Jul-2013 16:13:36] NOTICE: exiting, bye-bye!
  69. [02-Jul-2013 16:13:38] NOTICE: fpm is running, pid 11346
  70. [02-Jul-2013 16:13:39] NOTICE: ready to handle connections
  71. [02-Jul-2013 16:13:42] NOTICE: Finishing ...
  72. [02-Jul-2013 16:13:42] NOTICE: exiting, bye-bye!
  73. [02-Jul-2013 16:13:44] NOTICE: fpm is running, pid 12351
  74. [02-Jul-2013 16:13:44] NOTICE: ready to handle connections
  75. [02-Jul-2013 16:13:52] NOTICE: Finishing ...
  76. [02-Jul-2013 16:13:52] NOTICE: exiting, bye-bye!
  77. [02-Jul-2013 16:13:54] NOTICE: fpm is running, pid 13355
  78. [02-Jul-2013 16:13:54] NOTICE: ready to handle connections
  79. [02-Jul-2013 16:13:57] NOTICE: Finishing ...
  80. [02-Jul-2013 16:13:57] NOTICE: exiting, bye-bye!
  81. [02-Jul-2013 16:13:59] NOTICE: fpm is running, pid 14359
  82. [02-Jul-2013 16:13:59] NOTICE: ready to handle connections
  83. [02-Jul-2013 16:14:02] NOTICE: Finishing ...
  84. [02-Jul-2013 16:14:02] NOTICE: exiting, bye-bye!
  85. [02-Jul-2013 16:14:04] NOTICE: fpm is running, pid 15363
  86. [02-Jul-2013 16:14:04] NOTICE: ready to handle connections
  87. [02-Jul-2013 17:10:08] NOTICE: Finishing ...
  88. [02-Jul-2013 17:10:08] NOTICE: exiting, bye-bye!
  89. [02-Jul-2013 17:10:10] NOTICE: fpm is running, pid 16520
  90. [02-Jul-2013 17:10:10] NOTICE: ready to handle connections
  91. [02-Jul-2013 17:10:13] NOTICE: Finishing ...
  92. [02-Jul-2013 17:10:13] NOTICE: exiting, bye-bye!
  93. [02-Jul-2013 17:10:15] NOTICE: fpm is running, pid 17524
  94. [02-Jul-2013 17:10:15] NOTICE: ready to handle connections
  95. [02-Jul-2013 17:10:19] NOTICE: Finishing ...
  96. [02-Jul-2013 17:10:19] NOTICE: exiting, bye-bye!
  97. [02-Jul-2013 17:10:21] NOTICE: fpm is running, pid 18528
  98. [02-Jul-2013 17:10:21] NOTICE: ready to handle connections
  99. [02-Jul-2013 17:13:23] WARNING: [pool www] child 18712 exited on signal 7 (SIGBUS - core dumped) after 182.230256 seconds from start
  100. [02-Jul-2013 17:13:23] NOTICE: [pool www] child 19501 started
复制代码
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2013-7-2 21:21:21 | 显示全部楼层


按日子结尾看是某个程序长时间运行吧php-fpm拖死了
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2013-7-2 21:48:07 | 显示全部楼层

回复 2# 的帖子


程序运行前重启了PHP,没有运行很长时间,这有什么办法解决吗?
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2013-7-3 09:27:38 | 显示全部楼层



得先用strace 看看哪个程序的问题
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-20 08:03 , Processed in 0.025890 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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