我们遇到了一个在Ubuntu 8.04上运行plesk 9.5的VPS问题。看起来随机的时间间隔,Apache将会消失,需要手动启动。 我已经检查了apache错误日志,/ var / log / messages,单个虚拟主机apache错误文件,并且找不到与失败时间一致的任何内容。 dmesg是空的这有点奇怪。
我们也有没有明显的理由psa服务下来,但阿帕奇熬夜。
我无法诊断这是因为所有的日志文件,我可以find没有指出任何问题。 还有其他的我可以看看吗?
内存使用率约为55%(400MB),并不是特别高的stream量服务器。
任何指针,我可以找出发生了什么,将非常感激。
缺口
更新:
我一直在运行看门狗一段时间,这是重新启动进程时,他们倒下了。 不幸的是,它经常比apache更糟糕(虽然有时它只是apache)似乎没有任何模式。 我们也得到快递和qmail下降。 无论如何,我已经提高了Apache的日志logging级别,并注意到以下内容
[Mon Mar 07 16:46:14 2011] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 8 children, there are 0 idle, and 21 total children [Mon Mar 07 16:49:56 2011] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 8 children, there are 0 idle, and 12 total children [Mon Mar 07 16:50:08 2011] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 8 children, there are 0 idle, and 28 total children [Mon Mar 07 16:50:09 2011] [info] server seems busy, (you may need to increase StartServers, or Min/MaxSpareServers), spawning 16 children, there are 0 idle, and 36 total children [Mon Mar 07 16:50:14 2011] [info] [client ipaddressofserver] (32)Broken pipe: core_output_filter: writing data to the network [Mon Mar 07 16:50:14 2011] [info] removed PID file /var/run/apache2.pid (pid=9556) [Mon Mar 07 16:50:14 2011] [notice] caught SIGWINCH, shutting down gracefully [Mon Mar 07 16:50:18 2011] [emerg] (22)Invalid argument: mod_fcgid: can't get lock, pid: 9557 [Mon Mar 07 16:50:24 2011] [info] Init: Seeding PRNG with 0 bytes of entropy
我已经增加了minmaxspareservers,但慢慢地,并留意内存使用情况。 当然,这不能导致阿帕奇,快递和qmail失败?
对日志条目的任何帮助和他们表示将不胜感激
干杯尼克
我build议你通过terminallogin到服务器,运行{screen}并在前台模式下运行httpd。 如果和当它崩溃应该有一些在控制台消息的线索。
当然, man screen和man httpd第一为最好的结果。
HTH
您还可以尝试增加LogLevel以捕获错误日志中的更多详细信息。 如果stream量不多,则可以立即将其增加到“debugging”。
可能是你的VPS在高峰期达到了极限? 如果你使用UBC limita在Virtuozzo下运行,你可以检查/ proc / user_beancounters文件 – failcnt列不应该有任何非零值。 另外,您可以在Plesk中设置一个Watchdog系统监控模块 ,以自动启动停机的服务。