Apache – 进程没有死后得到超时

如何自动杀死一个进程,它超时。

我有一个configuration已被设置如下: –

# # Timeout: The number of seconds before receives and sends time out. # Timeout 300 

在查看服务器状态时,我可以看到一个进程仍在运行,正在99633 secs超过99633 secs (即超过一天(27小时))的服务器响应(也可能在两者之间停留)。 尽pipe我已经将conf设置为5分钟,但它仍然停留在两者之间。

如果超过5分钟,我将如何杀死这个过程?

我在Debian OS中使用Apache2版本。 我的configuration文件放在/etc/apache2/apache.conf

如果有兴趣ulimit,你可以检查手册页。

http://linux.die.net/man/3/ulimit

要么

检查这个链接,我发现它在另一个姊妹站点stackexchange

https://askubuntu.com/questions/54747/automatically-kill-a-process-if-it-exceeds-a-given-amount-of-ram