I have recently found NetHogs, a Linux tool for monitoring traffic per process in B/s. But I am looking for something that logs traffic per process in total B uploaded and downloaded. (Example, today Firefox downloaded 50 MB, UbuntuOne downloaded 10 MB and uploaded 20 MB...)

Does such an application exist?

Ideally the tool would be FOSS and cross-platform, but feel free to mention OS-specific solutions (e.g. NetLimiter on Windows, which does a bunch of extra stuff too) in case they'll help someone else.

The tool should perform per process logging, if it can't do this it isn't a suitable solution. (e.g. Wireshark does not seem to be process-aware)

link|improve this question

64% accept rate
You can play with this small bash utility. – Tshepang Feb 4 '11 at 20:27
feedback

3 Answers

Sysinternals' TCPView has a per process column for bytes sent/received. It's log can be saved, but may require some workarounds to allow this to be done while it is running.

link|improve this answer
feedback
up vote 0 down vote accepted

"Does such an application exist?"

  • Linux: None found yet
  • Mac: None found yet
  • PC: NetLimiter (commercial)
  • Cross-platform: None found yet

See other answers for adapting existing tools.

link|improve this answer
It would be hard to say if such a thing existed without being aware of every single piece of software ever created. Someone certainly may have come across just the right thing. – Abraxas Jul 31 '11 at 22:19
@Abraxas I've adjusted the wording (to "none found yet") and made it a community wiki so anyone can add any solutions they find - is this more acceptable? (and worth an upvote rather than downvote? :) ) – d3vid Nov 28 '11 at 11:47
feedback

ntop can do this. You could also set up a router with tomato, which also has logging.

link|improve this answer
I've installed ntop, but I can't find a per-process breakdown of traffic. Am I missing something? Also, I can't find anything in polarcloud.com/tomatofaq that talks about per-process analysis (I assume it would be based on deduction that XYZ traffic must come from an XYZ-type application). – d3vid Sep 16 '10 at 13:39
@d3vid: I'm sorry, I missed that part of your question. As far as I know, there aren't tools that do long term logging per-process. You might have to make one if you need it that badly. – Daenyth Sep 16 '10 at 16:09
Indeed. These sorts of Super User answers generate Stack Overflow questions :) – d3vid Sep 17 '10 at 11:08
feedback

Your Answer

 
or
required, but never shown

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