Htop network bandwidth5/15/2023 ![]() Installing on Ubuntu is achieved by a direct apt install iftop is part of the epel-repository and needs to be enabled before you can yum install. Iftop has two dependencies that need to be installed first – libpcap and libncurses. iftop automatically refreshes every few seconds automatically sorting the connections by usage. Iftop is another “ top” equivalent for sysadmins that gives you live statistics about what network connections use the most bandwidth. Nethogs works best to identify processes that are suddenly using a lot of your bandwidth. If you are looking to see an accumulated total of data throughput, press the letter M to cycle between the number of bytes, kilobytes and megabytes sent and received. You can run it as # nethogs NetHogs version 0.8.5-2 PID USER PROGRAM DEV SENT RECEIVED RECEIVED 603 root sshd: enp4s0 0.705 0.350 KB/sec 0.253 KB/sec 17408 root httrack enp4s0 0.431 0.197 KB/sec 0.193 KB/sec ? root unknown TCP 0.000 0.000 KB/sec 0.000 KB/sec TOTAL 1.136 0.547 KB/sec 0.461 KB/secīy default the output shows the incoming & outgoing traffic in KB/sec. Installation is from the default linux package managers ( apt-get/yum) # apt-get install nethogs # Ubuntu/Debian # yum install nethogs # CentOS/RHEL It lists the in & out traffic usage by process. This is a simple “ top” equivalent for network usage. ![]() There are more detailed applications (with front end web interfaces), but we will defer them for a later post as they need more details on installation & activation. All tools referenced here are command line tools. ![]() Let’s talk today about how you can monitor network activity in a similar fashion. You may all be familiar with top or htop that lets you monitor how your server is doing.
0 Comments
Leave a Reply. |