WDlinux官方论坛's Archiver

mingwd 发表于 2012-9-28 23:01

lanmp隔断时间报502/504错误

使用lanmp隔段时间报502/504错误,相隔的时间都很近,而且基本都是在凌晨的时候出现这个问题的,这个是我记录下来日志这个是一台服务器的
reboot apacheFri Sep  7 03:45:01 CST 2012
reboot apache
Tue Sep 18 03:30:01 CST 2012
reboot apache
Fri Sep 28 03:30:02 CST 2012
reboot apache

第二台的
Sat Sep 15 03:30:01 CST 2012
reboot apache
Thu Sep 27 03:46:35 CST 2012
reboot apache

第三台的
Mon Sep 10 03:45:01 CST 2012
reboot apache
Tue Sep 18 03:45:02 CST 2012
reboot apache
Wed Sep 26 03:30:02 CST 2012
reboot apache

这个是重启apache的记录,时间非常奇怪.

mingwd 发表于 2012-9-28 23:52

[i=s] 本帖最后由 mingwd 于 2012-9-28 23:54 编辑 [/i]

[code][Wed Sep 26 03:20:03 2012] [notice] SIGHUP received.  Attempting to restart
[Wed Sep 26 03:20:03 2012] [notice] Apache/2.2.22 (Unix) PHP/5.2.17p1 configured -- resuming normal operations
[Wed Sep 26 03:20:03 2012] [notice] SIGHUP received.  Attempting to restart
[Wed Sep 26 03:20:03 2012] [notice] Apache/2.2.22 (Unix) PHP/5.2.17p1 configured -- resuming normal operations
[Wed Sep 26 03:20:04 2012] [notice] SIGHUP received.  Attempting to restart
[Wed Sep 26 03:20:04 2012] [notice] Apache/2.2.22 (Unix) PHP/5.2.17p1 configured -- resuming normal operations
[Wed Sep 26 03:20:04 2012] [notice] SIGHUP received.  Attempting to restart
[Wed Sep 26 03:20:04 2012] [notice] Apache/2.2.22 (Unix) PHP/5.2.17p1 configured -- resuming normal operations
[Wed Sep 26 03:20:04 2012] [notice] SIGHUP received.  Attempting to restart
[Wed Sep 26 03:20:04 2012] [notice] Apache/2.2.22 (Unix) PHP/5.2.17p1 configured -- resuming normal operations
[Wed Sep 26 03:20:04 2012] [notice] SIGHUP received.  Attempting to restart
[Wed Sep 26 03:20:04 2012] [notice] Apache/2.2.22 (Unix) PHP/5.2.17p1 configured -- resuming normal operations
[Wed Sep 26 03:20:04 2012] [notice] SIGHUP received.  Attempting to restart
[Wed Sep 26 03:20:05 2012] [notice] Apache/2.2.22 (Unix) PHP/5.2.17p1 configured -- resuming normal operations
[Wed Sep 26 03:20:05 2012] [notice] SIGHUP received.  Attempting to restart
[Wed Sep 26 03:20:05 2012] [notice] Apache/2.2.22 (Unix) PHP/5.2.17p1 configured -- resuming normal operations
[Wed Sep 26 03:20:05 2012] [notice] SIGHUP received.  Attempting to restart
[Wed Sep 26 03:20:05 2012] [notice] Apache/2.2.22 (Unix) PHP/5.2.17p1 configured -- resuming normal operations
[Wed Sep 26 03:20:05 2012] [notice] SIGHUP received.  Attempting to restart
[Wed Sep 26 03:20:05 2012] [notice] Apache/2.2.22 (Unix) PHP/5.2.17p1 configured -- resuming normal operations[Wed Sep 26 03:20:19 2012] [notice] seg fault or similar nasty error detected in the parent process[/code]查看apache错误,里面显示的是这个

admin 发表于 2012-9-29 09:36

你上面的重起apache,是因为502/504了才重起apache

还是本身定期重起apache的功能?

如果是在重起apache的过程中,502/504,那是正常的

mingwd 发表于 2012-9-29 10:22

[b]回复 [url=http://wdlinux.cn/bbs/redirect.php?goto=findpost&pid=13884&ptid=3668]3#[/url] [i]admin[/i] [/b]


   这个是在出现502/504后才重启的,因为用的crond +curl 隔段时间检测网站状态,检查到502/504才重启apache.

admin 发表于 2012-9-29 10:50

看那个时间,都集中在3点多,是不是这个时间段有什么特别的东西在运行?

mingwd 发表于 2012-9-29 11:12

[b]回复 [url=http://wdlinux.cn/bbs/redirect.php?goto=findpost&pid=13899&ptid=3668]5#[/url] [i]admin[/i] [/b]


   应该没有, 因为这个我都是装完系统后就装了LNAMP,其他都没动。计划任务里也没有。

admin 发表于 2012-9-29 11:59

那真有点怪呀,几台机都在差不多的同一时间里这样

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.