VPS侦探论坛

 找回密码
 注册
查看: 6171|回复: 1

求助502错误,谢谢

[复制链接]
发表于 2014-8-13 14:09:09 | 显示全部楼层 |阅读模式

服务器配置是独立服务器,16G内存

LNMP是基于最新的1.1版本安装,有升级过PHP
PHP:5.5.15
MYSQL:5.5
系统:debian7 x64



程序用的是帝国CMS,502出现是在批量生成(目前数据量不大,单个生成都可以成功)内容页时,部分表(同时刷新8个表,有3-4个502)会出现502导致刷新不成功。

按置顶网里挨个排查了下,问题没有解决。

我帖上php-fpm日志,麻烦帮忙看下,感谢!!



上面的日志就是出现502时的记录,大概类似于:
  1. [13-Aug-2014 13:27:05] WARNING: [pool www] child 39267 exited on signal 7 (SIGBUS) after 4.396186 seconds from start
  2. [13-Aug-2014 13:27:05] NOTICE: [pool www] child 39376 started
  3. [13-Aug-2014 13:27:05] WARNING: [pool www] child 39269 exited on signal 7 (SIGBUS) after 4.416852 seconds from start
  4. [13-Aug-2014 13:27:05] NOTICE: [pool www] child 39377 started
  5. [13-Aug-2014 13:27:05] WARNING: [pool www] child 39270 exited on signal 7 (SIGBUS) after 4.539614 seconds from start
  6. [13-Aug-2014 13:27:05] NOTICE: [pool www] child 39380 started
  7. [13-Aug-2014 13:27:05] WARNING: [pool www] child 39272 exited on signal 7 (SIGBUS) after 4.606072 seconds from start
  8. [13-Aug-2014 13:27:05] NOTICE: [pool www] child 39382 started
  9. [13-Aug-2014 13:27:25] WARNING: [pool www] child 39293 exited on signal 7 (SIGBUS) after 24.054506 seconds from start
  10. [13-Aug-2014 13:27:25] NOTICE: [pool www] child 39407 started
  11. [13-Aug-2014 13:27:25] WARNING: [pool www] child 39296 exited on signal 7 (SIGBUS) after 24.122519 seconds from start
  12. [13-Aug-2014 13:27:25] NOTICE: [pool www] child 39411 started
  13. [13-Aug-2014 13:27:36] WARNING: [pool www] child 39312 exited on signal 7 (SIGBUS) after 35.143935 seconds from start
  14. [13-Aug-2014 13:27:36] NOTICE: [pool www] child 39427 started
  15. [13-Aug-2014 13:27:37] WARNING: [pool www] child 39318 exited on signal 7 (SIGBUS) after 36.655550 seconds from start
  16. [13-Aug-2014 13:27:37] NOTICE: [pool www] child 39432 started
  17. [13-Aug-2014 13:27:38] WARNING: [pool www] child 39323 exited on signal 7 (SIGBUS) after 37.886509 seconds from start
  18. [13-Aug-2014 13:27:38] NOTICE: [pool www] child 39438 started
复制代码
目前8个表的数据还没有2000条,但生成内容页时会有大量的sql查询,现在有些怀疑是mysql的问题,但按军哥的教程重新设置了mysql的参数,问题依旧。

求帮忙看看,谢谢啦!
目前的php-fpm.conf,这个是出502问题后改,目前流量不大,内存剩余好多,所以我设置成static了。
  1. listen = /tmp/php-cgi.sock
  2. listen.backlog = -1
  3. listen.allowed_clients = 127.0.0.1
  4. listen.owner = www
  5. listen.group = www
  6. listen.mode = 0666
  7. user = www
  8. group = www
  9. pm = static
  10. pm.max_children = 100
  11. pm.start_servers = 2
  12. pm.min_spare_servers = 1
  13. pm.max_spare_servers = 6

  14. #pm.max_requests = 1000
  15. rlimit_files = 30000

  16. request_terminate_timeout = 100
  17. request_slowlog_timeout = 0
  18. slowlog = var/log/slow.log
复制代码

[ 本帖最后由 uk8u8 于 2014-8-13 14:18 编辑 ]

本帖子中包含更多资源

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

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


php-fpm日志里只有运行超时的,你把https://bbs.vpser.net/thread-1144-1-1.html 第四条改过了吗
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-15 19:50 , Processed in 0.026467 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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