Ask Your Question
1

How can I determine which process is using up and down internet bandwidth?

asked 2016-07-21 16:35:22 -0600

florian gravatar image

updated 2016-07-21 16:37:53 -0600

Noticed a strange thing that I would like to examine but don't know how.

Today, while my PC was idling (all graphical programs closed in Gnome), it showed up- and download traffic on my network interface (monitored by Gnome extension system-monitor) for several minutes.

I would understand download of data (such as automatic refresh of package data by dnf or PackageKit) but that should be over quickly and not produce a consistent upload data stream.

Next time this happens, how can I quickly assess what process is using up and download traffic?

Cheers!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
3

answered 2016-07-25 18:23:29 -0600

ssieb gravatar image

dnf install nethogs

edit flag offensive delete link more

Comments

Nice one. Thanks!

florian gravatar imageflorian ( 2016-07-25 20:56:58 -0600 )edit
1

answered 2016-07-22 06:08:25 -0600

baggypants gravatar image

you could run "ss -punt" in a terminal, this will give you all the current network connections, there will be a lot of lines,

e.g.

[baggypants@swordfish2 ~]$ ss -punt
Netid State      Recv-Q Send-Q                                   Local Address:Port                                                  Peer Address:Port`
tcp   ESTAB      0      0                                       192.168.43.253:52732                                               216.58.198.174:443
 users:(("qupzilla",pid=1259,fd=133))
tcp   ESTAB      0      0                                       192.168.43.253:57114                                                178.79.224.18:80
 users:(("vlc",pid=1132,fd=12))

The users line is the insteresting one the bit in the double quotes shows the process in this case "qupzilla" and "vlc"

if it shows nothing try running it with sudo, It may be a system service like time synchronisation or dnf checking for updates.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2016-07-21 16:35:22 -0600

Seen: 184 times

Last updated: Jul 25 '16