當 top時,發現某個http的負載很高,我要怎麼查出它是那一個domain在作怪,

apache的模組 mod_status 可以設定  /server-status (如下)

設定 httpd.conf

# 查看到更多資訊設定
ExtendedStatus On

<Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from 10.1.1.1 127.0.0.1
</Location>

用法:
http://ssorc.tw/server-status?notable 
http://ssorc.tw/server-status?auto&refresh=10
  
notable       — 用來支援無法顯示 Table 的 Browser
refresh        — 每一秒更新一次畫面
refresh=n    — 每 n 秒更新一次畫面
auto            — 顯示 apache 的狀態資料

Related posts 相關文章
apache httpd 2.4.58 有些安全性更新
More...
Apache 有 path traversal 目錄遍歷的漏洞
More...
CentOS7 透過 systemd 自動讓服務 restart 重啟
More...
用 GoAccess 即時分析 IIS Access Log
More...

作者

留言

撰寫回覆或留言

發佈留言必須填寫的電子郵件地址不會公開。