Network monitoring tool
I’m basically looking for a utility that displays which processes are using how much bandwidth, similar to how top
displays which processes use how much resources.
Have a look at ntop.org.
netstat can give you usage statistics on a per socket basis.
I would like to add iptraf to the list. http://iptraf.seul.org
You can get stats from netstat
via the -s
flag, and per-process from the -p
flag.
IMO in decreasing order of usefulness, if you want to know what’s eating your bandwidth. Of course, to just list and monitor sockets you can watch -d 'sudo ss -tlpn'
.
Bandwidth monitor with process info
- bandwhich: Terminal bandwidth utilization tool. On brew.
- nethogs: Net top tool grouping bandwidth per process. On Debian repos.
# Show connection but not processes
iptraf-ng
iptop
# Up/down each second
ifstat -bt
sar -n DEV 1