Please note it's not duplicate of other questions where answer with nethogs is accepted, since nethogs isn't what I need.

I want to know how much each of my applications have eaten network traffic, on which interface, and when. nethogs displays realtime traffic only. But I want to have the statistics: how much traffic each application used, hourly/daily/monthly/etc.

On Windows there are many such utilities, and they work literally out-of-the-box, but on Linux I can't find any.

Is there some utility like that?

  • Perhaps expanding on the situation would help. Why do you need to monitor bandwidth per application ? Why do you need history ? – Lawrence Feb 26 '14 at 14:58
  • I would look into Cacti for this. You will need to build your own scripts to track which port is using how much data with a program like nethogs, and then store it with Cacti which will then allow you to generate graphs etc with the stored data – Lawrence Feb 26 '14 at 15:04
  • @Lawrence, when I'm on the limited traffic plan, it would be really useful to know which application eats much traffic. History is even more useful, but if there is some utility that could store at least total bandwidth per application, I'd try it too, of course. – Dmitry Frank Feb 28 '14 at 11:22
  • If you left nethogs open for the duration of the period you're online, you could probably get an idea...otherwise I can't think of anything that will do what you want out of the box. – Lawrence Feb 28 '14 at 13:13

You can use nethog with total bandwidth monitored per MB since it started with:

sudo nethogs -v 3

enter image description here

you can use iftop as an alternative too.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.