在Apache 2中,“捕获的SIGWINCH"是什么?错误? [英] What is in Apache 2 a "caught SIGWINCH" error?

查看:501
本文介绍了在Apache 2中,“捕获的SIGWINCH"是什么?错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的服务器(ubuntu 8.04)运行了drupal 6的LAMP,当流量很高时,它将停止提供页面.重新启动apache2将无法正常工作,因此我必须重新启动服务.

My server (ubuntu 8.04) LAMP running drupal 6, when there is high traffic, it stops serving pages. A restart of apache2 will not work, so I have to restart the service.

我在apache2错误中发现了此消息.日志

I found this message in the apache2 error.log

[notice]捕获了SIGWINCH,正在关闭 优雅地下来

[notice] caught SIGWINCH, shutting down gracefully

我还注意到apache2的进程ID在apache停止响应时约为12000.

Also I notice that the process id of the apache2, was around 12000 when apache stops responding.

更新

正如您所指出的,捕获到的SIGWINCH是有关apache服务重新启动的通知.我和最大的客户一起玩耍,并保持生命.我将MaxClients设置得太低,所以出现了服务器已达到MaxClients设置,请考虑提高MaxClients设置"错误,但已解决.

The caught SIGWINCH, as you point out, is a notice of the apache service restarting. I played around with the max clients and keep alive. I set the MaxClients too low so I got a "server reached MaxClients setting, consider raising the MaxClients setting" error, but fixed that.

关于PID,我的安装已安装 prefork模块,因此达到 MaxRequestPerChild 后,它将回收子进程.这就是PID定期上升的原因.仍未弄清楚为什么一段时间后apache停止响应.

Regarding the PID, my installation has prefork module installed, so after MaxRequestPerChild is reached, it recycles the child process. That is why the PID is rising periodically. Still haven't figured out why after a while apache stops responding.

在此期间,将尝试提高MaxRequestPerChild,以使PID不能以如此快的速度达到PID max.当前限制为32768(这是新的debian和ubuntu安装的标准设置.)

In the mean time will try to rise the MaxRequestPerChild so the PID dosen't reach PID max that fast. Current limit is 32768 (which is standard for new debian and ubuntu installations).

这是日志中的更多内容:

Here is more from the log:

[2009年4月24日星期五01:48:56] [通知] 抓到SIGWINCH,关闭了 优雅地

[Fri Apr 24 01:48:56 2009] [notice] caught SIGWINCH, shutting down gracefully

[2009年4月24日星期五01:50:07] [通知] Apache/2.2.8(Ubuntu) PHP/5.2.4-2ubuntu5.3与 Suhosin-Patch已配置-恢复 正常操作

[Fri Apr 24 01:50:07 2009] [notice] Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.3 with Suhosin-Patch configured -- resuming normal operations

[2009年4月24日星期五17:13:35] [错误] [客户端195.70.62.131]客户端已发送 不带主机名的HTTP/1.1请求(请参阅 RFC2616第14.23节): /w00tw00t.at.ISC.SANS.DFind:)

[Fri Apr 24 17:13:35 2009] [error] [client 195.70.62.131] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)

[2009年4月24日星期五17:36:00] [错误] [客户端212.188.33.4]客户端已发送 不带主机名的HTTP/1.1请求(请参阅 RFC2616第14.23节): /w00tw00t.at.ISC.SANS.DFind:)

[Fri Apr 24 17:36:00 2009] [error] [client 212.188.33.4] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)

[2009年4月25日星期六20:05:07] [错误] [客户端84.243.222.12]中的URI无效 请求GET HTTP/1.1 HTTP/1.1

[Sat Apr 25 20:05:07 2009] [error] [client 84.243.222.12] Invalid URI in request GET HTTP/1.1 HTTP/1.1

[2009年4月25日星期六20:05:12] [错误] [客户端84.243.222.12]脚本未 发现或无法统计: /usr/lib/cgi-bin/twiki

[Sat Apr 25 20:05:12 2009] [error] [client 84.243.222.12] script not found or unable to stat: /usr/lib/cgi-bin/twiki

[2009年4月25日星期六20:05:12] [错误] [客户端84.243.222.12]脚本未 发现或无法统计: /usr/lib/cgi-bin/wiki

[Sat Apr 25 20:05:12 2009] [error] [client 84.243.222.12] script not found or unable to stat: /usr/lib/cgi-bin/wiki

[2009年4月25日星期六20:05:12] [错误] [客户端84.243.222.12]脚本未 发现或无法统计: /usr/lib/cgi-bin/wikis

[Sat Apr 25 20:05:12 2009] [error] [client 84.243.222.12] script not found or unable to stat: /usr/lib/cgi-bin/wikis

[2009年4月25日星期六21:46:46] [错误] [客户端211.68.23.167]中的URI无效 请求GET HTTP/1.1 HTTP/1.1

[Sat Apr 25 21:46:46 2009] [error] [client 211.68.23.167] Invalid URI in request GET HTTP/1.1 HTTP/1.1

[2009年4月26日,星期日,06:13:47] [错误] [客户端86.39.154.89]客户端已发送 不带主机名的HTTP/1.1请求(请参阅 RFC2616第14.23节): /w00tw00t.at.ISC.SANS.DFind:)

[Sun Apr 26 06:13:47 2009] [error] [client 86.39.154.89] client sent HTTP/1.1 request without hostname (see RFC2616 section 14.23): /w00tw00t.at.ISC.SANS.DFind:)

[2009年4月26日,星期日,06:53:07] [通知] 请求正常重启,正在执行 重新启动

[Sun Apr 26 06:53:07 2009] [notice] Graceful restart requested, doing restart

推荐答案

好吧,在Ubuntu上启动和停止Apache时,在某些情况下会使用SIGWINCH.如果我在Ubuntu 8.10服务器上执行sudo apache2ctl graceful-stop,则在日志中得到此信息:

Well, SIGWINCH is used in some situations when starting and stopping Apache on Ubuntu. If I do sudo apache2ctl graceful-stop on my Ubuntu 8.10 server, I get this in my log:

[Fri Apr 24 22:41:15 2009] [notice] caught SIGWINCH, shutting down gracefully

我记得它,某些服务还使用SIGWINCH,这些服务在轮换日志,每夜工作等时需要重新启动Apache.

As I remember it, SIGWINCH is also used by some services that need to restart Apache when rotating logs, nightly jobs, etc.

这不能解释您当前遇到的问题,但是我认为这可能是服务器上正在运行的其他事情正在重新启动Apache –或可能根本与您的问题无关.

That doesn't explain the problem you're currently having, but I think it might be something else running on your server that's restarting Apache – or it might not be related to your problem at all.

如果可以的话,尝试发布更多的日志文件,分析起来会容易得多:)

Try posting more of the logfile if you can, it'll be a lot easier to analyse :)

这篇关于在Apache 2中,“捕获的SIGWINCH"是什么?错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆