ITPub博客

首页 > 数据库 > Oracle > 用 NetHogs 监控 Linux 每个进程的网络使用情况

用 NetHogs 监控 Linux 每个进程的网络使用情况

原创 Oracle 作者:幕南风 时间:2014-07-03 14:23:23 0 删除 编辑
     ㈠ 下载
        

           nethogs-0.8.0.tar.gz 

           安装之前、可能需要先 yum install ncurses*


        
     ㈡ 作用
       

          有别于其他统计和监控网卡流量、NetHogs 有点特别、可以监控每个进程的网络带宽占用情况


     
     ㈢ 使用
     
          该程序需要 root 权限,默认是监控 eth0 网卡 ,如果有多网卡的话就必须进行指定
        
           nethogs
           nethogs eth1
           nethogs [option] eth0 eth1
           nethogs [option] eth0 eth1 ppp0
           sudo /usr/sbin/nethogs eth0
     
          交互式控制指令:
     
           m : Cycle between display modes (kb/s, kb, b, mb)
           r : Sort by received.
           s : Sort by sent.
           q : Quit and return to the shell prompt.
     
          常用的 option :
     
            -d     delay for refresh rate.
            -h     display available commands usage.
            -p     sniff in promiscious mode (not recommended).
            -t     tracemode.

            -V     prints Version info.


             

<!-- Baidu Button BEGIN -->

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26515977/viewspace-1208305/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 个性化设置 MySQL prompt 提示符
下一篇: MySQL 硬件加速:Flash 存储技术
请登录后发表评论 登录
全部评论
腾讯数据库工程师

注册时间:2012-05-10

最新文章