由于某些原因,当地时间上午5-6点的大部分星期天Apache无法正常工作。 我无法find原因,而且卡在故障排除中。
我使用SSL证书在Apache2上运行Magento,并在该特定时间周围随机页面停止运行,导致没有下订单。 有时候是分类页面,有时候是pipe理区域。
我认为这可能是循环,但不知道如何进一步排除故障。 这是我过去两个星期天的Apache错误日志:
1月29日
/var/log/apache2/error.log.1:[Sun Jan 29 00:35:21 2012] [错误]服务器达到MaxClients设置,考虑提高MaxClients设置
/var/log/apache2/error.log.1:[Sun Jan 29 00:39:44 2012] [错误] [客户端66.87.100.194]请求失败:读取头文件时出错
/var/log/apache2/error.log.1:[Sun Jan 29 06:25:21 2012] [notice]请求平稳重启,重启
—注意新的日志文件
/var/log/apache2/error.log:[Sun Jan 29 06:25:24 2012] [notice] Apache / 2.2.16(Debian)PHP / 5.3.3-7 + squeeze1与Suhosin-Patch mod_ssl / 2.2。 16configuration了OpenSSL / 0.9.8o – 恢复正常操作
/var/log/apache2/error.log:[Sun Jan 29 06:26:00 2012] [notice] child pid 7301 exit signal Segmentation fault(11)
1月22日
/var/log/apache2/error.log.2.gz:[Sun 1月22日06:25:17 2012] [通知]请求平稳重启,重新启动
—注意新的日志文件
/var/log/apache2/error.log.1:[Sun 1月22日06:25:22 2012] [通知] Apache / 2.2.16(Debian)PHP / 5.3.3-7 + squeeze1与Suhosin-Patch mod_ssl / 2.2.16configurationOpenSSL / 0.9.8o – 恢复正常操作
/var/log/apache2/error.log.1:[Sun 1月22日16:26:11 2012] [notice]抓到SIGTERM,关机
/var/log/apache2/error.log.1:[Sun 1月22日16:26:12 2012] [预告] Apache / 2.2.16(Debian)PHP / 5.3.3-7 + squeeze1与Suhosin-Patch mod_ssl / 2.2.16configurationOpenSSL / 0.9.8o – 恢复正常操作
/var/log/apache2/error.log.1:[Sun 1月22日16:26:14 2012] [注意] child pid 30367退出信号分割错误(11)
不是一个编程问题,但有这个
server reached MaxClients setting, consider raising the MaxClients setting
这表明Apachex正尝试接收更多的请求 (一次),而不是configuration它。 提高这个数字可能是一个好主意。
还有这两条线
/var/log/apache2/error.log:[Sun Jan 29 06:25:24 2012] [notice] Apache/2.2.16 (Debian) PHP/5.3.3-7+squeeze1 with Suhosin-Patch mod_ssl/2.2.16 OpenSSL/0.9.8o configured -- resuming normal operations /var/log/apache2/error.log.2.gz:[Sun Jan 22 06:25:17 2012] [notice] Graceful restart requested, doing restart
这表明有人正在升级服务器软件包,这可能会影响服务器本身的性能。
ServerFault是一个问这样的问题的好地方。
一个更好的地方是你的ISP / IT部门/networking主机。
你有同时运行的cronjob吗? 我的直觉是有一个系统更新运行,更新您的apache应用程序加载一些共享库,这往往会导致段错误。
我研究了谷歌有关“分段错误”的错误,其中大部分与第三方应用有关,可以是eAccelerator,iconcube,zend编码器等等。另外,有人写了一个可以和PHP版本相关的评论。 他们的build议,卸载整个PHP然后再重新安装。
我的build议,如果你有eAccelerator,删除一段时间,再次查找日志。 如果错误仍在继续,请尝试安装新的PHP,而不使用“Suhosin”补丁。
分段故障