【问题标题】:How to find root cause for server shut down frequently如何找到服务器频繁关闭的根本原因
【发布时间】:2020-01-21 09:35:58
【问题描述】:

我在 ubuntu Apache 上。最近它经常关闭并在重新启动后重新打开。我一直在分析 apache2 错误日志以查找原因。以前它报告 PHP 代码错误。但是在修复它之后,它现在会抛出不同的错误。

根据这些错误我可以得出什么结论?哪个可能会导致停机以及如何解决?

AH: scoreboard is full, not at MaxRequestWorkers.Increase ServerLimit.
AH00484: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting

AH00687: Negotiation: discovered file(s) matching request: /opt/bitnami/apps/file_that_doesn't-exist
(70007)The timeout specified has expired: [client 148.251.79.134:60170] AH01075: Error dispatching request to : (polling)

AH00045: child process 5062 still did not exit, sending a SIGTERM
AH00046: child process 5299 still did not exit, sending a SIGKILL
AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name

我已经完成了足够的谷歌搜索来理解每个错误。最重要的是,我想知道这些错误中的哪一个会导致服务器宕机?修复它的方法是什么?

【问题讨论】:

  • 什么叫“服务器”? Apache 还是 Ubuntu 实例?
  • 这是 ubuntu 上的 apache

标签: wordpress amazon-web-services apache ubuntu bitnami


【解决方案1】:

这里是 Bitnami 工程师,

AH: scoreboard is full, not at MaxRequestWorkers.Increase ServerLimit.
AH00484: server reached MaxRequestWorkers setting, consider raising the MaxRequestWorkers setting

似乎服务器已达到极限,这可能是您遇到问题的原因。它可能会达到限制,因为实例非常小并且您需要增加其内存/CPU,或者因为您受到攻击。

  • 您可以通过运行这些命令来检查您是否受到攻击
cd /opt/bitnami/apache2/logs/
tail -n 10000 access_log | awk '{print $1}'| sort| uniq -c| sort -nr| head -n 10

这些 IP 是不是很熟悉?是否有任何 IP 请求您的网站的次数过多?

你可以找到更多关于如何阻止它的信息here

  • 您还可以通过编辑/opt/bitnami/apache2/conf/bitnami/httpd.conf 文件来增加Apache 中的MaxRequestWorkers 参数,或者您也可以使用AWS 控制台增加实例类型,以便服务器从现在开始拥有更多资源。

【讨论】:

    猜你喜欢
    • 2021-01-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-08-06
    • 2019-09-19
    • 2011-05-30
    相关资源
    最近更新 更多