Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

nethogs is something similar, but shows also the process (

share|improve this answer
That's a cool program. Thanks! – tftd Feb 5 '12 at 21:27
I totally could of used this about eight hours ago! – kce Feb 7 '12 at 5:20

little clumsy solution, but


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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.