[CentOS] Check network activity per process.

Thu Jun 3 01:44:15 UTC 2021
Kaushal Shriyan <kaushalshriyan at gmail.com>


I am referring to https://www.atoptool.nl/netatop.php and installed
https://www.atoptool.nl/downloadnetatop.php kernel module netatop on CentOS
Linux release 7.9.2009 (Core). How do I check Network activity per
process? For example network activity for the Nginx webserver process.

#systemctl status netatop
● netatop.service - Netatop kernel module
   Loaded: loaded (/usr/lib/systemd/system/netatop.service; enabled; vendor
preset: disabled)
   Active: active (exited) since Thu 2021-06-03 06:58:36 IST; 10min ago
     Docs: man:netatop(4)
 Main PID: 29083 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/netatop.service
           └─29086 /usr/sbin/netatopd

Jun 03 06:58:36 marketplacedisruptionsuitevapt systemd[1]: Starting Netatop
kernel module...
Jun 03 06:58:36 marketplacedisruptionsuitevapt systemd[1]: Started Netatop
kernel module.
Jun 03 06:58:36 marketplacedisruptionsuitevapt netatopd[29086]: version 3.1

Please guide. Thanks in advance.

Best Regards,