2017-12-29
nethogs でプロセス別の通信量を調べる
nethogs はネットワークの top コマンド的なもので通信量の多いプロセスをランキング表示して、秒間通信量も見ることができる。
インストール
sudo yum -y install gcc-c++ libpcap-devel.x86_64 libpcap.x86_64 ncurses* git clone https://github.com/raboof/nethogs make sudo make install
使ってみる
sudo /usr/local/sbinnethogs
参考
NetHogs is a small 'net top' tool. Instead of breaking the traffic down per protocol or per subnet, like most tools do, it groups bandwidth by process.
NetHogs does not rely on a special kernel module to be loaded. If there's suddenly a lot of network traffic, you can fire up NetHogs and immediately see which PID is causing this. This makes it easy to identify programs that have gone wild and are suddenly taking up your bandwidth.
Since NetHogs heavily relies on /proc, most features are only available on Linux. NetHogs can be built on Mac OS X and FreeBSD, but it will only show connections, not processes.
https://github.com/raboof/nethogs
トラックバック - http://d.hatena.ne.jp/yohei-a/20171229/1514553807
リンク元
- 121 https://www.google.co.jp/
- 5 http://search.yahoo.co.jp/
- 5 http://www.google.co.uk/url?sa=t&source=web&cd=1
- 5 https://www.bing.com/
- 3 http://b.hatena.ne.jp/
- 3 http://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwia-IHp2rDYAhXKNpQKHcbAAwIQFggnMAA&url=http://d.hatena.ne.jp/yohei-a/20100323/1269323652&usg=AOvVaw0zSgXZVm8BhKUxyTVzmS45
- 3 https://www.google.com/
- 2 http://b.hatena.ne.jp/entrylist/it?sort=hot
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&source=web&cd=4&ved=0ahUKEwiolPa89K_YAhWDV7wKHW06CKgQFgg5MAM&url=http://d.hatena.ne.jp/yohei-a/20110124/1295837170&usg=AOvVaw3bvzCzIU3yXJpy3-v9lmmv
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=&esrc=s&source=web&cd=5&ved=0ahUKEwjm7NbGzrDYAhVLhrwKHUHaA2wQFghFMAQ&url=http://d.hatena.ne.jp/yohei-a/20100203/1265179550&usg=AOvVaw0k5LxX_YMtMrc6e_DpLnRl
おとなり日記
- 2017-12-28 kwyの日記 3/34 8%
- 2017-12-28 how to code something 3/54 5%