28

I need to keep watch on how much bandwidth some connections are taking in a server, and I know I have seen a top-like tool for that before. However, I can't remember the name of the tool, and I'm not having much luck searching for it.

So, is there a top-like tool for that? I'm running Debian.

Daniel C. Sobral
  • 5,713
  • 6
  • 34
  • 48

6 Answers6

28

iftop or pktstat -nT (for short term monitoring) is what you need to do this (under *nix). For long-term monitoring, ntop is useful.

Finding pktstat is a little tricky for those who aren't running a Debian / Ubuntu box, but this is a decent pktstat source-code archive

Use tcpview if you want the same kind of stats under windows

Mike Pennington
  • 8,305
  • 9
  • 44
  • 87
11

You might also want to have a look at iptraf.

wolfgangsz
  • 8,847
  • 3
  • 30
  • 34
4

There's also nethogs which shows traffic per process, most of the popular distros have a package for it.

Not Available
  • 226
  • 1
  • 16
4

I am partial for pktstat. It can easily also show real-time data on the traffic as URLs for HTTP GETs, queries for DNS, etc.

Eduardo Ivanec
  • 14,881
  • 1
  • 37
  • 43
  • Ok, I'm really enjoying pktstat. I like iftop's display better, but seeing the URLs is particularly useful for me at the moment! I'll stick with my original accepted answer on the grounds that it provided a Windows alternative as well, and that iftop does the job. – Daniel C. Sobral Jun 10 '11 at 18:29
1

jnettop is my personal favorite. Seems to exist for most distros. Ref: http://jnettop.kubs.info/wiki/

Petter
  • 41
  • 2
0

There is also ntop, although it isn't terminal based anymore.

D.F.
  • 646
  • 3
  • 6