Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 want to test each downstream of several clients (~100) which are connected to a media server. They are continuously downloading media files and I want to check which clients have a slow internet connection. Therefore I don't want to test them manually by hand again and again. So is there a way to log and monitor the download speed e.g. through apache?

share|improve this question
Upvoted - I honestly don't believe that is trivial to do, but if you get a good response - I'm very interested in knowing about it. – Kvisle Oct 23 '11 at 23:31

nethogs will show you how much bandwidth each client is consuming - assuming you are on linux.

This looks like it might be similar for windows.

share|improve this answer
Thanks. I tried nethogs and tested it, but somehow the clients IP I tested it with didn't appear in the logs. I saw that apache2 is causing a lot of traffic, but that's not enough. I need to see each connection seperately and not grouped by process. – acy Oct 27 '11 at 15:44
I just found iftop through your link. This looks suitable... But I can't find a way to save the results. – acy Oct 27 '11 at 15:54

You best bet is to log this information at your firewall if you can. I know of a few firewalls (PFSense comes to mind) that will provide this information in a real-time graphical display (a breakdown of in/out speed per source/destination). It should be possible to log this information so that it can be parsed at a later date for analysis.

share|improve this answer

continuously downloading media files

...implies streaming

e.g. through apache

...but apache is not a streaming server.

But leaving that aside, what's wrong with the standard apache logging mechanisms? (for preference using %I/%D rather than %b/%T, although in both cases you'll get a better answer using regression).

share|improve this answer
No they are not streaming the media files. "Continuously" was the wrong word. First they get their playlist and then they are downloading (http) the playlist files one by one to save them locally... After this is done (can take up to a few days because some client internet connections are really weak) they stop. – acy Oct 24 '11 at 17:30

Your Answer


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.