How can I see how much network traffic each thread is doing in Linux?
Any information would be useful. (bytes transferred, # of accepts, etc)
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):
After you successfully started the ntop service, you will be able to access ntop's web interface through your web browser:
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:
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: