TecMint published a tutorial about using the Nethogs tool.
Nethogs – Monitor Linux Network Traffic Usage Per Process
This article explains how to install and find out real-time per-process network bandwidth usage with nethogs utility under Unix/Linux operating systems.
Nethogs – Monitor Linux Network Traffic Usage Per Process