In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
What are the seven commonly used server resource monitoring tools? I believe that many inexperienced people are at a loss about this. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
Take this Kunpeng server as an example, check the distribution version of your operating system first.
(1) nmon: support to collect the usage of CPU, disk, network, memory and other resources of the whole machine over a period of time.
(2) perf:Linux kernel's own system performance optimization tool to obtain the calls within the specified process, the CPU resource consumption of each thread call, and support the generation of flame diagrams.
The process of generating flame diagram is as follows:
First trace the system to obtain the profiling data of the system
Draw with script
# script to get git clone https://github.com/brendangregg/FlameGraph
(3) top: monitor the CPU and memory resource consumption of the process and the whole machine, and check the usage of each CPU core.
1. Load: time, number of logged-in users, average system load
2.cpu: user mode, kernel mentality, NICE, idle, waiting for IO, interrupt, etc.
3. Process: run, sleep, stop, zombie
4. Memory: total, used, idle (system perspective), buffer, cache
5. Swap Partition: total, used, idle
The task area displays by default: process ID, valid user, process priority, nice value, virtual memory used by the process, physical memory and shared memory, process status, CPU utilization, memory occupancy, cumulative CPU time, process command line information.
(4) iostat: monitor the number of reads and writes, data volume and utilization of each disk.
Iostat belongs to the sysstat package and can be installed directly.
Yum-y install sysstat
(5) sar: (System Activity Reporter system activity report) one of the most comprehensive system performance analysis tools on LINUX at present, which monitors the network IO read and write times and data volume of each network card.
Install deltarpm before installing the sar tool (sar is also part of the sysstat package and can be installed directly. )
Yum install deltarpmyum install sysstat
(6) dstat: monitor the overall performance information of the system, including CPU, disk, network, paging and so on. The output is color and readable.
Install dstat
Yum install dstat-0.7.2-12.el7-y
(7) htop:htop is an interactive process viewer in the Linux system, which allows users to operate interactively, support color themes, scroll through the process list horizontally or vertically, and support mouse operation.
Install htop
Yum install-y htop
Advantages of htop:
▪ is faster than top in startup.
▪ can scroll through the list of processes horizontally or vertically to see all the processes and the complete command line.
▪ does not need to enter a process number when killing a process.
▪ htop supports mouse operation.
After reading the above, do you know what the 7 commonly used server resource monitoring tools are? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
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.