Reputation: 287
We are looking for an utility that allows us to understand which Linux thread (tid/lwp - thread id / light weight process) generates network traffic.
There are such utilities for disk I/O: iotop pidstat They can produce I/O reports detailed by PID and TID.
What utility may produce similar output for network I/O? We tried nethogs but it gives only PID not TID.
Upvotes: 1
Views: 2387
Reputation: 7967
Atop tool gives full solution:
http://www.atoptool.nl/downloadatop.php
Download and build both atop and netatop module. You'll need to install the following libs:
sudo apt-get install zlib1g-dev libncurses5-dev
When running
sudo atop -n
you'll get the screen as attached.
Note that atop collects historical data.
Enjoy!
Upvotes: 2
Reputation: 136525
Have a look at ntopng:
ntopng is the next generation version of the original ntop, a network traffic probe that shows the network usage, similar to what the popular top Unix command does.
Upvotes: 1