11

How can I find the process which uses most bandwidth on a Linux PC?

With iftop it's possible to find which connections produce most bandwidth, but how to find the process?

knittl
  • 312
  • 3
  • 11

2 Answers2

6

nethogs is something similar, but shows also the process (http://nethogs.sourceforge.net/)

Hubert Kario
  • 6,361
  • 6
  • 36
  • 65
Jure1873
  • 3,702
  • 1
  • 22
  • 28
3

little clumsy solution, but

start

iftop -nNP

and after it starts, press 't' and now you need to pause by pressing 'P' (shift+p). copy the desired 'IP:port' from 2nd column and start as super-user

netstat -tnp | grep "<paste_IP:port_here>"

and at the last field of the output you should see PID/program. hope this help.

readyblue
  • 109
  • 1
  • 7