nethogs: 按进程查看流量占用
#nethogs -h
usage: nethogs [-V] [-b] [-d seconds] [-t] [-p] [device [device [device ...]]]
-V : prints version.
-d : delay for update refresh rate in seconds. default is 1.
-t : tracemode.
-b : bughunt mode - implies tracemode.
-p : sniff in promiscious mode (not recommended).
device : device(s) to monitor. default is eth0
When nethogs is running, press:
q: quit
m: switch between total and kb/s mode
#nethogs eht1
NetHogs version 0.8.0
PID USER PROGRAM DEV SENT RECEIVED
13363 root /xx/xx-agent eth1 0.478 2.954 KB/sec
9229 root /xx/xx eth1 7.003 0.423 KB/sec