Use NetHogs to monitor the network usage of each process in Linux
(I) download
Nethogs-0.8.0.tar.gz
Before installation, you may need to install yum install ncurses *
(Ii) Role
Different from other statistics and monitoring of network card Traffic, NetHogs is a bit special and can monitor the network bandwidth usage of each process
(Iii) Use
This program requires the root permission. By default, the eth0 Nic is monitored. If multiple NICs exist, you must specify
Nethogs
Nethogs eth1
Nethogs [option] eth0 eth1
Nethogs [option] eth0 eth1 ppp0
Sudo/usr/sbin/nethogs eth0
Interactive Control commands:
M: Cycle between display modes (kb/s, kb, B, mb)
R: Sort by sorted ed.
S: Sort by sent.
Q: Quit and return to the shell prompt.
Common options:
-D delay for refresh rate.
-H display available commands usage.
-P sniff in promiscious mode (not recommended ).
-T tracemode.
-V prints Version info.