Monitoring Network Bandwidth per process using NetHogs
Install NetHogs on ubuntu
Preparing your system
First you need to install the following packages
sudo apt-get install libncurses5 libpcap0.8
Now install the nethogs using the following command
sudo apt-get install nethogs
nethogs [-d] [-h] [-p] [-t] [-V] [device(s)]
-d delay for refresh rate.
-h display available commands usage.
-p sniff in promiscious mode (not recommended).
sudo nethogs eth1
sudo nethogs -d 2 eth1