Is there any way to find out which process using how much internet bandwidth on Mac OS X Lion? I'm on mobile internet now, which is not very fast, so it would be nice if I can tell that for example, Chrome using 10kB/s, and Skype using 2kB/s.

I can see the total amount of traffic in Activity Monitor, but it is not enough for me.

I'd like to use an existing application, not interested to write an app like this. And I'm not interested in the actual traffic, only the number of bytes transferred and received by each processes.

link|improve this question
Finally I've modified iftop's source to produce an output which can be parsed with awk, and can be merged with lsof. Now I can see the bandwidth usage by processes in a hacky way... – psmith Nov 23 '11 at 9:38
feedback

migrated from stackoverflow.com Nov 5 '11 at 12:11

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

2 Answers

Maybe OsTrack could be what you looking for.

link|improve this answer
OsTrack is not what I'm looking for. – psmith Nov 6 '11 at 10:16
feedback

Mac OS X Lion (10.7.x) contains a command called nettop that gets you most of the way there. Be sure to check the man page to learn the navigation keys and note the d key for toggling delta display. Not quite the kB/s display you were looking for, but close perhaps.

I'd be interested in hearing if this works better or worse for you than your iftop/awk/lsof hack.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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