Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am running several sites and I was trying wget and I noticed slow speed. So I suspect that my sites are taking considerable amount of traffic.

Question is, how I can really detect the total consumption of traffic in and out to know the real speed of my server?

This is to know if I am really using a dedicated server or a shared internet line.

share|improve this question

migrated from Apr 6 '11 at 3:24

This question came from our site for professional and enthusiast programmers.

Try iftop. You'll need to install it, since it's not a built-in in any distros I know of, but it's a great tool.

share|improve this answer

netstat -i will show in and out packets for each logical interface

and netstat -i 1 for example will give you a very crude measurement of speed.

share|improve this answer
what does this mean: eth0 1500 0 13413936 0 0 0 16313092 0 0 0 BMRU – TDSii Apr 6 '11 at 0:21
do yourself a favor and read the man page for netstat. Basically that means you have 13413936 packets coming in on interface eth0 and 13413936 going out. But note if this is the first time you've executed netstat this figure will be meaningless since it represents the total number odf packets since the last time the box booted up – ennuikiller Apr 6 '11 at 0:28
@TDSii: MTU == Max Transmission Unit, the largest packet that can be sent without fragmentation; Met is the Metric for that interface, the relative cost of sending packets on that interface rather than other interfaces; RX-OK is the number of packets received without errors, RX-ERR is the number of packets that failed checksums or lengths, RX-DRP is number of packets dropped, RX-OVR is probably receive buffer overruns (too many packets too quickly); TX- metrics mirror the RX- metrics, and the Flg column shows the flags found via ifconfig – sarnold Apr 6 '11 at 0:30

iptraf is another good tool.

share|improve this answer
I do second that! – 3molo Apr 6 '11 at 11:39

If you want to monitor bandwidth usage in realtime (with nice ASCII graphics :D ) you can try nload, too.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.