Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I see how much network traffic each thread is doing in Linux?

Any information would be useful. (bytes transferred, # of accepts, etc)

share|improve this question
    
Have a look at this related question: superuser.com/questions/34782/… –  sleske Aug 19 '10 at 23:59

2 Answers 2

up vote 3 down vote accepted

You could try ntop.

After installing it, based on what distribution you're using, you will have to start the ntop service. Most probably it will look something like this (check your distro's documentation for proper ntop service starting):

service ntop start

After you successfully started the ntop service, you will be able to access ntop's web interface through your web browser:

http://localhost:3000/

Keep in mind that 3000 is the default port for ntop. If you changed it, you will have to change it in your browser as well. If you installed ntop on a remote machine, instead of "localhost", you will have to enter the proper IP/hostname.

After that, ntop usage is pretty straightforward. Go through its web interface and find the information you need. The web interface itself looks like this:

enter image description here
Source

enter image description here Source

share|improve this answer
    
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. Also you link is dead. –  KronoS Jul 28 '12 at 23:42
    
What I was trying to do was prevent link only answers. Your edit only makes this worse. Please take a look at this meta question and answer on how to recommend software without it being link only. –  KronoS Jul 29 '12 at 16:33

There are several applications that can show you a "top"-like list of network traffic for a particular process or thread.

These are the two I've found most useful:

  1. nethogs

    enter image description here

  2. iftop

    enter image description here

share|improve this answer
    
Please explain further how this is useful to the question at hand. You should beware, that linking only answers are typically deleted. –  KronoS Jul 28 '12 at 18:30
    
And how would you improve this after 2 years? Seriously. The guy asked for network monitor software, I answered, someone else answered the same way 'ntop' ... I still don't see what's wrong here. All 3 programs (2 linked by me, the 3rd from the accepted answer) can do what the question asks for. –  Patkos Csaba Jul 28 '12 at 19:02
    
I recommend looking at this answer on meta. What we're trying to do is improve answer, from being link only to super awesome ones. If you have any more questions, feel free to contact me in the Ask a Mod or Root Access chat rooms. –  KronoS Jul 28 '12 at 23:42
    
I hope this version is good enough. If not, feel free to delete it. –  Patkos Csaba Jul 29 '12 at 10:41
    
@PatkosCsaba: Screenshots often go a long way :) –  Oliver Salzburg Jul 29 '12 at 16:29

Your Answer

 
discard

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.