Linux System Monitoring with sar
UseiftoptolocatetheTCPportonyourmachinethatisreceivingthemosttraffic.Thenusesudonetstat-tuptolocatetheprocessowningthatport.,Averysimpleapproachthenistoperiodicallylookin/proc//net/devandstoreitwithatimestamp.Hereyoucangettotalpackets/bytes ...,n...。參考影片的文章的如下:


