[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: What's using up bandwidth?



Celejar wrote:

> On Sat, 20 Jan 2007 23:26:54 -0600
> "a.list.address@gmail.com" <a.list.address@gmail.com> wrote:
> 
>> On 1/20/07, Jochen Schulz <ml@well-adjusted.de> wrote:
>> > Bill Moseley:
>> > >
>> > > How would you go about tracking down the process that is eating up
>> > > all the bandwidth?
>> >
>> > Take a look at netstat-nat on the NATting machine iftop for the machine
>> > using the bandwidth.
>> 
>> Unfortunately, iftop doesn't display usage per-process.  Here are the
>> two solutions I've found:
>> 
>> 1. atop, with the atopcnt kernel patch.  Unfortunately,
>> kernel-patch-atopcnt doesn't apply against 2.6.18, so unless you use
>> 2.6.13 or 2.6.8, this doesn't help.  (There's an RC bug filed against
>> that package, and hopefully it will be updated for Etch.)
>> 
>> 2.  A combination of iftop to find the port of the saturating
>> connection, and $(netstat -anp | grep portnumber) to find the process
>> that's using that port.
>> 
>> There are several other bandwidth-monitoring apps, but I haven't yet
>> found the right one to show the usage per-process (other than atop).
> 
> Nethogs [0] claims to display bandwidth per process.

apt-cache search for the win!

baloo@ursa-major:~$ apt-cache show nethogs
Package: nethogs
Priority: optional
Section: net
Installed-Size: 96
Maintainer: Bart Martens <bartm@knars.be>
Architecture: i386
Version: 0.6.0-2
Depends: libc6 (>= 2.3.6-6), libgcc1 (>= 1:4.1.1-12), libncurses5 (>=
5.4-5), libpcap0.8 (>= 0.9.3-1), libstdc++6 (>= 4.1.1-12)
Filename: pool/main/n/nethogs/nethogs_0.6.0-2_i386.deb
Size: 22462
MD5sum: fa9b0ff300ac9f81ae3fae6549a57739
SHA1: e9082393875853944e849417263fea6b0da9fcc4
SHA256: 31516fbe2f592ec5812f429dbf4cf49353657d355e5810bd7c5437a7224be04c
Description: Net top tool grouping bandwidth per process
 NetHogs is a small 'net top' tool. Instead of breaking the traffic down per
 protocol or per subnet, like most tools do, it groups bandwidth by process.
 NetHogs does not rely on a special kernel module to be loaded.
 .
  Homepage: http://nethogs.sourceforge.net/
Tag: uitoolkit::ncurses

Package: nethogs
Priority: optional
Section: net
Installed-Size: 96
Maintainer: Bart Martens <bartm@knars.be>
Architecture: i386
Version: 0.6.0-1
Depends: libc6 (>= 2.3.6-6), libgcc1 (>= 1:4.1.0), libncurses5 (>= 5.4-5),
libpcap0.8 (>= 0.9.3-1), libstdc++6 (>= 4.1.0)
Filename: pool/main/n/nethogs/nethogs_0.6.0-1_i386.deb
Size: 22410
MD5sum: 3fd15ed3055e351e17898fb26f2feaff
SHA1: 75e93f03ab0dc6e279e60c354ec15cfb6803be62
SHA256: 0db40ee6ec09fdc416b778350ecd2119831054f9c8a15688936bcd9a86d07fe6
Description: Net top tool grouping bandwidth per process
 NetHogs is a small 'net top' tool. Instead of breaking the traffic down per
 protocol or per subnet, like most tools do, it groups bandwidth by process.
 NetHogs does not rely on a special kernel module to be loaded.
 .
  Homepage: http://nethogs.sourceforge.net/
Tag: uitoolkit::ncurses





Reply to: