In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces the use of linux nethogs command real-time statistics of network bandwidth utilization tool, has a certain reference value, friends in need can refer to. Let's take a look at it with me.
Nethogs is a small net top tool that groups bandwidth by process rather than slowing down each protocol or subnet as most tools do. NetHogs does not need to rely on loading a particular kernel module. If there is a network congestion, you can start NetHogs and immediately see which PID caused the situation. This makes it easy to find out which program ran away and suddenly took up your bandwidth.
Syntax format: nethogs [parameters] [device]
Common parameters:
Device (s) the device to be monitored, the default "eth0"-d interface refresh rate in seconds. Used to control the update speed of the interface. The default is one second-v to select view mode. The value of the parameter mode is "0" = KB/s; "1" = total KB, "2" = total B, "3" = total MB. Sniffer in "0"-p promiscuous mode by default-t tracking mode-c limits the number of refreshes and is usually used with the-t option-s to sort according to the SENT column in the output
Reference example
Set to refresh every 5 seconds:
[root@linuxcool ~] # nethogs-d 5
Network bandwidth of the monitoring device (eth0):
[root@linuxcool ~] # nethogs eth0
Use tracking mode:
[root@linuxcool ~] # nethogs-t is the details of the real-time network bandwidth utilization tool using linux's nethogs command. Have you learned anything after reading it? If you want to know more about it, welcome to the industry information!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.