Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

On occasion I see my bandwidth usage using gnome-system-monitor going up to 300kbit/s. I just can't figure out what is causing it. I want to know what process or program in using my network like that?

I do ssh into different machines and servers, where I would really like to be able to monitor bandwidth usage. It would be very useful to know which utilities people use to see what bandwidth is being used and by which applications / programs / processes / or threads. I don't even know where to start looking.

The two small programs I have found are insufficient. bmon and bwm-ng And tools like wireshark (packet sniffers) are overkill. I would like something in the middle, preferably text console-based.

share|improve this question

5 Answers 5

up vote 10 down vote accepted

You can use

iptraf

or

iftop -P

to identify connections that consume much of your bandwidth. A connection is identified by a pair of (localip:port, remoteip:port). You can then use

netstat -tunp

to look up what process uses that connection. Mostly however, you will be able to tell what service is responsible only by looking at the port, e.g. if the connection uses localip:80 on the local side its probably your webserver ;-)

share|improve this answer

Solution :VnStat PHP: A Web Based Interface for Monitoring Network Bandwidth Usage

VnStat PHP a graphical interface application for most famous console mode network logger utility called “vnstat“. This VnStat PHP is a graphical frontend to VnStat, to view and monitor network traffic bandwidth usage report in nicely graphical format. It display IN and OUT network traffic statistics in hourly, days, months or full summary.

Reference link: http://www.tecmint.com/vnstat-php-frontend-for-monitoring-network-bandwidth/

share|improve this answer

The SSH System Administration Tool has facilities for bandwidth monitoring.

share|improve this answer
2  
This doesn't really answer the question... If this program does it, include instructions –  Canadian Luke Jul 24 '13 at 1:58

Well, there is iftop but that only shows the source and destination, not the program causing the traffic.

Edit:

Just found nethogs. It does exactly what you want.

share|improve this answer

Iftop

It works well showing which ip / hosts the bandwidth is being used by. It can isolate the information down to a single program or port.

sudo Iftop

once it is running you can the access the help menu with H or ?. Which has numerous useful options

Host display:                          General:
 n - toggle DNS host resolution         P - pause display
 s - toggle show source host            h - toggle this help display
 d - toggle show destination host       b - toggle bar graph display
 t - cycle line display mode            B - cycle bar graph average
                                        T - toggle cummulative line totals
Port display:                           j/k - scroll display
 N - toggle service resolution          f - edit filter code
 S - toggle show source port            l - set screen filter
 D - toggle show destination port       L - lin/log scales
 p - toggle port display                ! - shell command
                                        q - quit
Sorting:
 1/2/3 - sort by 1st/2nd/3rd column
 < - sort by source name
 > - sort by dest name
 o - freeze current order

iftop, version 0.17
share|improve this answer

Your Answer

 
discard

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.