Which application consumes the most bandwidth?

I bring you this excellent tip that I found in the Un Brutus with Debian blog, where it shows us how to know which application on our computer is consuming more bandwidth.

To achieve this we have to install an application called nethogs:

$ sudo pacman -S nethogs

or in Debian:

$ sudo aptitude install nethogs

And so on according to the distribution we are using. Now how do we use it?

Use of Nethogs

Basically what we have to do is run the command:

$ sudo nethogs [interface]

In Debian and derivatives it would normally be:

$ sudo nethogs eth0

But in Arch Linux we know that this changed, so we have to first know the name of our interface with the command:

$ ip link 1: lo: mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT link / loopback 00: 00: 00: 00: 00: 00 brd 00: 00: 00: 00: 00: 00 2: enp5s0: mtu 1500 qdisc pfifo_fast state UP mode DEFAULT qlen 1000 link / ether 18: 03: 73: a3: f3: e1 brd ff: ff: ff: ff: ff: ff 3: wlp9s0: mtu 1500 qdisc noop state DOWN mode DEFAULT qlen 1000 link / ether 4c: 80: 93: 19: da: 02 brd ff: ff: ff: ff: ff: ff 4: virbr0: mtu 1500 qdisc noqueue state UP mode DEFAULT link / ether fe: 54: 00: 00: d8: 4f brd ff: ff: ff: ff: ff: ff 5: vnet0: mtu 1500 qdisc pfifo_fast master virbr0 state UNKNOWN mode DEFAULT qlen 500 link / ether fe: 54: 00: 00: d8: 4f brd ff: ff: ff: ff: ff: ff

In my case it would be:

$ sudo nethogs enp5s0

Which returns us something like this:

nethogs

And that's it, Firefox to the bonfire !! 🙂


17 comments, leave yours

Leave a Comment

Your email address will not be published. Required fields are marked with *

*

*

  1. Responsible for the data: Miguel Ángel Gatón
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.

  1.   zagur said

    And is it not normal for a browser to consume more bandwidth? xD

    1.    elav said

      Hahaha, of course it is, I was just kidding ..

      1.    zagur said

        Ah .. clear sarcasm. Sometimes it is difficult to understand on the Internet, ok, excuse me! xD

        1.    pablox said

          Sheldon detected! 😛

  2.   kike said

    Very good !, interesting application, but there is one thing that is not seen in the image and that if it appears to me when I run the application, that thing is that it shows me the IPs + port with which the application communicates when it sends / receives. In my case, I must say that the application that occupies the most bandwidth is normally aria2, aria2 to the stake! XD!

  3.   Jesus Israel Perales Martinez said

    I had a lot that I was looking for !!, I have a very reduced bandwidth: Yes, when I used ubuntu one day they did not open the pages, I restarted and everything was normal but then again and I started to see what happened with the system monitor and it turned out that I was uploading a file but it was neither from ubuntu one nor dropbox and due to my bandwidth it affected me, I found that it was the bug report or the information that is sent to canonical about ubuntu so I deactivated it but, it would have been easier to detect that it ate my bandwidth with this application xD

  4.   rots87 said

    What version or application do you have for the elav terminal? or is it just a theme? because it does not seem to me that it is the normal konsole

    1.    staff said

      If I'm not mistaken, it's yakuake with a different skin than the one that comes by default.

    2.    elav said

      Hehehehe .. It's Yakuake, with one of the themes that it brings by default, but I put a background color that is integrated into the color of the panel .. What's cool? 😛

      1.    eliotime3000 said

        Yes, and it is much cooler than my gnome-terminal.

        1.    kike said

          In GTK you can use Guake, it's the same:

          # apt-get install guake

          1.    eliotime3000 said

            Good. I will try it.

  5.   eliotime3000 said

    It is obvious that our beloved browser is the one that uses the most bandwidth than the rest.
    [YaoMing] Iceweasel, to the stake! >> http://i.imgur.com/Qsv6BNG.png%5B/YaoMing%5D

  6.   Sergio said

    Very good application, now I will be able to easily identify that it takes away bandwidth from downloads.

    Regards!

  7.   Cristian said

    Very good application and super useful when you have hundreds of programs that use the internet constantly. Needless to say, the information is appreciated.

    # Cheers

  8.   taregon said

    My interface is no longer eth0 but is called wlp4s0. Does anyone know what the change is due to? I thought it would be a new standard but I see that in the explanation using Arch the interface is enp5s0.

    Doubts, doubts mine ...

    1.    elav said

      What distribution are you using? Because in your case it seems that you already use Systemd and the interface you mention is that of the WiFi.