- 投稿日2010-01-22 (金)
- 更新日2010-01-22 (金) 20:54
- Linuxソフト
topのような監視ツールのApache版です。
現在どのページにアクセスが集中しているか、等を表示するのに便利です
お手軽にaptでインストールできます
apt-get install apachetop
インストールが完了したら実行してみます。
オプションとして-f。
引数としてApacheのログファイルを指定する事で状況を確認できます。
apachetop -f /usr/local/apache2/logs/access_log
こんな感じで表示されました。
last hit: 11:52:09 atop runtime: 0 days, 00:09:25 11:52:10
All: 9504 reqs ( 16.8/sec) 41.6M ( 75.3K/sec) 4584.3B/req
2xx: 9058 (95.3%) 3xx: 444 ( 4.7%) 4xx: 2 ( 0.0%) 5xx: 0 ( 0.0%)
R ( 30s): 519 reqs ( 17.3/sec) 2269.0K ( 75.6K/sec) 4476.7B/req
2xx: 492 (94.8%) 3xx: 27 ( 5.2%) 4xx: 0 ( 0.0%) 5xx: 0 ( 0.0%)
REQS REQ/S KB KB/S URL
380 12.67 1595 53.2*/wiki/index.php
19 0.63 53.2 1.8 /wiki/skin/inputhelper.js
19 0.63 0.4 0.0 /wiki/skin/assistloaded.js
17 0.57 26.9 0.9 /wiki/skin/winie.js
17 0.57 425.7 14.2 /wiki/
12 0.41 43.7 1.5 /wiki/image/pukiwiki_v174.png
12 0.41 1.8 0.1 /wiki/image/external_link.gif
11 0.38 61.3 2.1 /wiki/skin/pukiwiki.css
11 0.37 1.6 0.1 /wiki/image/arrow-grey.png
9 0.30 0.6 0.0 /wiki/image/triangle.gif
6 0.22 54.2 2.0 /wiki//index.php
2 0.07 0.3 0.0 /wiki/skin/other.js
2 0.07 0.5 0.0 /
1 0.03 3.6 0.1 /wiki/favicon.ico
1 0.03 0.2 0.0 /wiki
デフォルトでは直近30秒がモニタリングされ、それを5秒ごとに描写しているようです。
apachetop -h
でいろいろなオプションを指定して立ち上げる事ができるようです。
アクセス過多な時等にどのファイルへのアクセスが原因か、等を調べる事ができそうです。
- 次の記事→ ガンブラー(gumblar)によるWEBページ改竄ファイル簡易チェックCGI
- 前の記事→ proftpでアクセス制限
コメント:0
トラックバック:0
- この記事のトラックバックURL
- http://www.ahref.org/tech/server/linuxsoft/679.html/trackback
- この記事へのリンク
- エーエイチレフ linuxサーバー技術情報 からの記事 Apacheの状況を詳細に表示する「apachetop」













関連記事