Linux

大量處於“L”狀態的 Apache 請求,可能是什麼原因?DDOS?

  • April 19, 2013

我在我的 apache 伺服器狀態消息中有這個:

LLLLLLLLLLLLLLLWLLLLLLLLWLLLLLWLLLLLLLLLLWLLLLLLLWLLLLLLLLLLLLLL WLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLWLWLLLLLLLLL LLLLLLLLLLLLLLLLLLWLLLLLLLLLLLLLLLLLLLLRLLWLLLLLLLLLLLLLLLLLLLLL LLLLLLLWLLLWLWLLLLLLLLLLLLLLLLWLLLLLLLLLLLLLLLLLWLLLLLLLLLLLLLLL LLLLWRLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL LWLLLLLLLLWLLLLLWLLLLLLLLLLLLLLLLLLLLLWLLLLLLLLLLLLLLLLLLLLLLLLL LLLLLLLLLLLLLLLLLLLWLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLWLWL LLLWLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLWLLLLLLLLLWLL

可能是什麼原因?所有 512 個插槽都已填滿,每秒請求數僅為 3。CPU 負載達到 250+ (15m)。是某種 DDOS 嗎?因為很多請求只是對許多具有不同 IP 地址的不同虛擬主機的 GET 請求。

這意味著 apache 記錄請求集比接收、處理和發送響應要花費更長的時間。這似乎不太可能。您的文件系統更有可能出現問題。

(如果您提供伺服器狀態的完整輸出會很有幫助)

下一步是在 syslog 中記錄日誌 - 查看您的硬體是否存在問題。如果仍然出現,請檢查 iotop 的輸出。如果這些顯示沒有任何問題,請查看您的網路伺服器日誌(訪問錯誤)。

可能只是您沒有輪換日誌太久。

引用自:https://serverfault.com/questions/500870