签到成功

知道了

CNDBA社区CNDBA社区

Linux 下 NetHogs 工具按进程实时统计网络带宽利用率

2017-10-24 15:16 3126 0 原创 Linux
作者: dave

[root@dave.cndba.cn ~]# yum install nethogs                                               
base                                                          | 3.6 kB  00:00:00     
epel                                                          | 4.3 kB  00:00:00     
extras                                                        | 3.4 kB  00:00:00     
updates                                                       | 3.4 kB  00:00:00     
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package nethogs.x86_64 0:0.8.5-1.el7 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

=====================================================================================
 Package                     Arch       Version            Repository           Size
=====================================================================================
Installing:
 nethogs                     x86_64     0.8.5-1.el7        epel                 38 k

Transaction Summary
=====================================================================================
Install  1 Package

Total download size: 38 k                           
Installed size: 71 k
Is this ok [y/d/N]: y
Downloading packages:
nethogs-0.8.5-1.el7.x86_64.rpm                        |  38 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : nethogs-0.8.5-1.el7.x86_64                                1/1 
  Verifying  : nethogs-0.8.5-1.el7.x86_64                                1/1 

Installed:
  nethogs.x86_64 0:0.8.5-1.el7                                               

Complete!
[root@dave.cndba.cn ~]# nethogs 
Ethernet link detected
                      Waiting for first packet to arrive 
NetHogs version 0.8.5                                    

  28018 root     wget                       eth0       17.399     699.899 KB/sec
    PID USER     PROGRAM                    DEV        SENT      RECEIVED       
  27993 root     wget                       eth0       10.380     378.250 KB/sec
  27824 root     wget                       eth0        8.912     334.306 KB/sec
  27992 root     wget                       eth0        8.084     310.944 KB/sec
  27991 root     wget                       eth0        4.293     153.247 KB/sec
  28644 root     sshd: root@pts/0           eth0        0.591     0.162 KB/sec
       ? root     unknown TCP                            0.000     0.000 KB/sec

  TOTAL                                                49.659    1876.807 KB/sec
[root@dave.cndba.cn ~]#
http://www.cndba.cn/dave/article/2299 http://www.cndba.cn/dave/article/2299 http://www.cndba.cn/dave/article/2299
http://www.cndba.cn/dave/article/2299
http://www.cndba.cn/dave/article/2299
http://www.cndba.cn/dave/article/2299 http://www.cndba.cn/dave/article/2299
http://www.cndba.cn/dave/article/2299
http://www.cndba.cn/dave/article/2299
http://www.cndba.cn/dave/article/2299

版权声明:本文为博主原创文章,未经博主允许不得转载。

用户评论
* 以下用户言论只代表其个人观点,不代表CNDBA社区的观点或立场
dave

dave

关注

人的一生应该是这样度过的:当他回首往事的时候,他不会因为虚度年华而悔恨,也不会因为碌碌无为而羞耻;这样,在临死的时候,他就能够说:“我的整个生命和全部精力,都已经献给世界上最壮丽的事业....."

  • 2261
    原创
  • 3
    翻译
  • 578
    转载
  • 191
    评论
  • 访问:7968241次
  • 积分:4346
  • 等级:核心会员
  • 排名:第1名
精华文章
    最新问题
    查看更多+
    热门文章
      热门用户
      推荐用户
        Copyright © 2016 All Rights Reserved. Powered by CNDBA · 皖ICP备2022006297号-1·

        QQ交流群

        注册联系QQ