There's an evil application that is eating ALL my upload bandwidth (I'm brazilian, it's only ~35kbps) for like 80% of the time my PC is turned on.
I would like to know if there's any way to track this usage and discover what app is doing this.
|
There's an evil application that is eating ALL my upload bandwidth (I'm brazilian, it's only ~35kbps) for like 80% of the time my PC is turned on. I would like to know if there's any way to track this usage and discover what app is doing this.
| ||||
|
feedback
|
|
What about nethogs? In my opinion, it is lot more humane. Lists which command/program using network and how much bandwidth for each of them, in realtime. Install it in ubuntu/debian systems with:
Run it to monitor your network interface like this:
| ||||
feedback
|
|
While running an upgrade on an ubuntu system:
With netstat, you can find out what process is connected to a particular port or IP. For ports, its a good idea to prefix with a colon.
For example, to look at open connections for ssh:
You can also look for open port connections with lsof:
You can get more information about the open files from lsof with -p PID.
(Lots of output from that suppressed) | |||||||||||||
feedback
|
|
ntop is your friend. Packages are in linux repos and macports. | |||||||
feedback
|
|
In addition to using iftop to identify the address and port that's using bandwidth, you can use netstat to identify the process
This will show all TCP connections open and the process name/id attached to each. | |||||
feedback
|
|
Wireshark is also a very good (multiplatform) app for monitoring network traffic. Here's a description from the site:
| |||
|
feedback
|
|
In my opinion, iftop's user interface is not well-designed. In practice there is hardly ever a need for viewing the IPs or hostnames in realtime. If I needed, a listing of all current connections, I would just go with netstat as jtimberman explained. For my purposes, bmon is better suited than iftop. It has a very simplistic user interface with support for multiple interfaces and drawing of "graphs". Here is a screenshot:
If you do not need all the features bmon offers, bwm-ng might be the perfect tool for you. It only shows the current occupied bandwidth per interface -- no more and no less:
| ||||
|
feedback
|
|
You could do this at the router level depending on your firmware. For example, if you use DD-WRT, you could track usage over time and by machine. | |||
feedback
|
|
Install a firewall and, at least temporarily, make it block all outgoing connections. It should notify you when something tries to make a connection at which point you should have your culprit :-) here is one of many articles online that gives you info on installing a firewall on ubuntu: | |||
feedback
|