VPS侦探论坛

 找回密码
 注册
查看: 6403|回复: 5

求军哥来分析下这个502日志

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

新装的lnmp1.0,php升级到了5.5.4,,nginx增加了2个模块(mp4和flv),昨天开始一直报502。。

  1. [root@bcsytv ~]# php -v
  2. Zend Guard Loader requires Zend Engine API version 220090626.
  3. The Zend Engine API version 220121212 which is installed, is newer.
  4. Contact Zend Technologies at http://www.zend.com/ for a later version of Zend Guard Loader.

  5. PHP 5.5.4 (cli) (built: Oct 14 2013 13:38:50)
  6. Copyright (c) 1997-2013 The PHP Group
  7. Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies
  8.     with XCache v3.1.0, Copyright (c) 2005-2013, by mOo
  9.     with XCache Optimizer v3.1.0, Copyright (c) 2005-2013, by mOo
  10.     with XCache Cacher v3.1.0, Copyright (c) 2005-2013, by mOo
  11.     with XCache Coverager v3.1.0, Copyright (c) 2005-2013, by mOo
复制代码


  1. [root@bcsytv ~]# nginx -V
  2. nginx version: nginx/1.4.3
  3. built by gcc 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC)
  4. TLS SNI support enabled
  5. configure arguments: --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-http_gzip_static_module --with-http_mp4_module --with-http_flv_module
复制代码



之前已经看了军哥你发的502解决方法。
pm.max_children = 120(改为了120)
max_execution_time 改为300了



日志在附件里,求军哥指导!

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2013-10-17 19:26:09 | 显示全部楼层


这里是我的服务器探针:http://jalena.bcsytv.com/info.php
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2013-10-17 19:27:25 | 显示全部楼层

  1. [17-Oct-2013 19:01:06] NOTICE: using inherited socket fd=9, "/tmp/php-cgi.sock"
  2. [17-Oct-2013 19:01:06] NOTICE: using inherited socket fd=9, "/tmp/php-cgi.sock"
  3. [17-Oct-2013 19:01:06] NOTICE: fpm is running, pid 4211
  4. [17-Oct-2013 19:01:06] NOTICE: ready to handle connections
  5. [17-Oct-2013 19:01:17] NOTICE: Terminating ...
  6. [17-Oct-2013 19:01:17] NOTICE: exiting, bye-bye!
  7. [17-Oct-2013 19:01:26] NOTICE: fpm is running, pid 4265
  8. [17-Oct-2013 19:01:26] NOTICE: ready to handle connections
  9. [17-Oct-2013 19:01:44] ERROR: An another FPM instance seems to already listen on /tmp/php-cgi.sock
  10. [17-Oct-2013 19:01:44] ERROR: FPM initialization failed
  11. [17-Oct-2013 19:01:58] WARNING: [pool www] child 4266 exited on signal 15 (SIGTERM) after 32.632004 seconds from start
  12. [17-Oct-2013 19:01:58] NOTICE: [pool www] child 5146 started
  13. [17-Oct-2013 19:01:58] WARNING: [pool www] child 4267 exited on signal 15 (SIGTERM) after 32.632023 seconds from start
  14. [17-Oct-2013 19:01:58] NOTICE: [pool www] child 5147 started
  15. [17-Oct-2013 19:01:58] NOTICE: Terminating ...
  16. [17-Oct-2013 19:01:58] NOTICE: exiting, bye-bye!
  17. [17-Oct-2013 19:02:21] NOTICE: fpm is running, pid 1065
  18. [17-Oct-2013 19:02:21] NOTICE: ready to handle connections
  19. [17-Oct-2013 19:14:07] WARNING: [pool www] child 1067 exited on signal 11 (SIGSEGV) after 706.729884 seconds from start
  20. [17-Oct-2013 19:14:07] NOTICE: [pool www] child 3623 started
  21. [17-Oct-2013 19:14:11] WARNING: [pool www] child 1066 exited on signal 11 (SIGSEGV) after 710.650912 seconds from start
  22. [17-Oct-2013 19:14:11] NOTICE: [pool www] child 3639 started
  23. [17-Oct-2013 19:14:56] WARNING: [pool www] child 3623 exited on signal 11 (SIGSEGV) after 48.795364 seconds from start
  24. [17-Oct-2013 19:14:56] NOTICE: [pool www] child 3698 started
  25. [17-Oct-2013 19:16:20] WARNING: [pool www] child 3639 exited on signal 11 (SIGSEGV) after 129.005032 seconds from start
  26. [17-Oct-2013 19:16:20] NOTICE: [pool www] child 3699 started
  27. [17-Oct-2013 19:16:21] WARNING: [pool www] child 3698 exited on signal 11 (SIGSEGV) after 84.721209 seconds from start
  28. [17-Oct-2013 19:16:21] NOTICE: [pool www] child 3700 started
  29. [17-Oct-2013 19:16:21] WARNING: [pool www] child 3699 exited on signal 11 (SIGSEGV) after 1.215703 seconds from start
  30. [17-Oct-2013 19:16:21] NOTICE: [pool www] child 3701 started
  31. [17-Oct-2013 19:16:21] WARNING: [pool www] child 3700 exited on signal 11 (SIGSEGV) after 0.647252 seconds from start
  32. [17-Oct-2013 19:16:21] NOTICE: [pool www] child 3702 started
  33. [17-Oct-2013 19:16:22] WARNING: [pool www] child 3701 exited on signal 11 (SIGSEGV) after 0.242310 seconds from start
  34. [17-Oct-2013 19:16:22] NOTICE: [pool www] child 3703 started
  35. [17-Oct-2013 19:16:22] WARNING: [pool www] child 3702 exited on signal 11 (SIGSEGV) after 0.439404 seconds from start
  36. [17-Oct-2013 19:16:22] NOTICE: [pool www] child 3704 started
  37. [17-Oct-2013 19:16:22] WARNING: [pool www] child 3703 exited on signal 11 (SIGSEGV) after 0.560476 seconds from start
  38. [17-Oct-2013 19:16:22] NOTICE: [pool www] child 3705 started
  39. [17-Oct-2013 19:16:23] WARNING: [pool www] child 3704 exited on signal 11 (SIGSEGV) after 0.794293 seconds from start
  40. [17-Oct-2013 19:16:23] NOTICE: [pool www] child 3706 started
  41. [17-Oct-2013 19:16:23] WARNING: [pool www] child 3705 exited on signal 11 (SIGSEGV) after 0.625915 seconds from start
  42. [17-Oct-2013 19:16:23] NOTICE: [pool www] child 3707 started
  43. [17-Oct-2013 19:16:23] WARNING: [pool www] child 3706 exited on signal 11 (SIGSEGV) after 0.496306 seconds from start
  44. [17-Oct-2013 19:16:23] NOTICE: [pool www] child 3708 started
  45. [17-Oct-2013 19:17:51] WARNING: [pool www] child 3707 exited on signal 11 (SIGSEGV) after 88.287194 seconds from start
  46. [17-Oct-2013 19:17:51] NOTICE: [pool www] child 3709 started
  47. [17-Oct-2013 19:18:16] WARNING: [pool www] child 3708 exited on signal 11 (SIGSEGV) after 112.633687 seconds from start
  48. [17-Oct-2013 19:18:16] NOTICE: [pool www] child 3710 started
  49. [17-Oct-2013 19:19:16] WARNING: [pool www] child 3709 exited on signal 11 (SIGSEGV) after 84.804190 seconds from start
  50. [17-Oct-2013 19:19:16] NOTICE: [pool www] child 3711 started
  51. [17-Oct-2013 19:19:35] WARNING: [pool www] child 3710 exited on signal 11 (SIGSEGV) after 79.213760 seconds from start
  52. [17-Oct-2013 19:19:35] NOTICE: [pool www] child 3712 started
  53. [17-Oct-2013 19:19:37] WARNING: [pool www] child 3711 exited on signal 11 (SIGSEGV) after 21.279502 seconds from start
  54. [17-Oct-2013 19:19:37] NOTICE: [pool www] child 3713 started
  55. [17-Oct-2013 19:19:39] WARNING: [pool www] child 3712 exited on signal 11 (SIGSEGV) after 4.090402 seconds from start
  56. [17-Oct-2013 19:19:39] NOTICE: [pool www] child 3714 started
  57. [17-Oct-2013 19:19:48] WARNING: [pool www] child 3713 exited on signal 11 (SIGSEGV) after 11.128804 seconds from start
  58. [17-Oct-2013 19:19:48] NOTICE: [pool www] child 3715 started
  59. [17-Oct-2013 19:19:50] WARNING: [pool www] child 3714 exited on signal 11 (SIGSEGV) after 10.675070 seconds from start
  60. [17-Oct-2013 19:19:50] NOTICE: [pool www] child 3716 started
  61. [17-Oct-2013 19:20:03] WARNING: [pool www] child 3715 exited on signal 11 (SIGSEGV) after 14.306609 seconds from start
  62. [17-Oct-2013 19:20:03] NOTICE: [pool www] child 3717 started
  63. [17-Oct-2013 19:20:05] WARNING: [pool www] child 3716 exited on signal 11 (SIGSEGV) after 15.334459 seconds from start
  64. [17-Oct-2013 19:20:05] NOTICE: [pool www] child 3718 started
复制代码
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2013-10-17 19:50:18 | 显示全部楼层



将php-fpm改到如下貌似稳定些了。军哥默认的进程只有1个哇??

listen = /tmp/php-cgi.sock
user = www
group = www
pm = dynamic
pm.max_children = 30
pm.start_servers = 4
pm.min_spare_servers = 2
pm.max_spare_servers = 6
request_terminate_timeout = 150
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2013-10-17 20:54:32 | 显示全部楼层

修改pm.max_spare_servers即可

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

 楼主| 发表于 2013-10-18 09:44:51 | 显示全部楼层

回复 5# 的帖子


已经稳定了、军哥你是不是把默认的进程给整大点呢
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-15 17:01 , Processed in 0.027934 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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