In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-21 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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.