我有一个LAMP设置。 我只是在debugging应用程序和设置服务器状态模块。
我得到的服务器正常运行时间高达29秒,然后重新启动,在这一点上我的应用程序开始行事怪异的,而不是正确处理阿贾克斯发布请求。
我也注意到,每隔30秒我的apache错误日志中的以下内容:
[Tue Sep 16 01:39:21.948791 2014] [mpm_prefork:notice] [pid 21487] AH00169: caught SIGTERM, shutting down [Tue Sep 16 01:39:22.239043 2014] [mpm_prefork:notice] [pid 21549] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.3 configured -- resuming normal operations [Tue Sep 16 01:39:22.239171 2014] [core:notice] [pid 21549] AH00094: Command line: '/usr/sbin/apache2'
任何人有任何想法可能会导致这一点? 或者,如果有任何其他信息必要的。
编辑:
Syslog有这些重复:
Sep 16 01:42:26 nocmonitor monit[1149]: 'apache' trying to restart Sep 16 01:42:26 nocmonitor monit[1149]: 'apache' stop: /etc/init.d/apache2 Sep 16 01:42:26 nocmonitor monit[1149]: 'apache' start: /etc/init.d/apache2 Sep 16 01:42:56 nocmonitor monit[1149]: 'apache' failed protocol test [HTTP] at INET[server_url:80/index.html] via TCP -- HTTP error: Server returned status 404#012
你发布的系统日志消息告诉整个故事。 你有monitconfiguration检查Apache。 这是从您configuration检查(server_url:80 / index.html),它认为是不希望的行为,所以它重新启动apache的URL 404错误。
停止监视,行为应该停止。 然后检查并修复你的监控configuration。