In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article focuses on "how to monitor the system performance of Linux", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to monitor the system performance of Linux.
Nmon (named after Nigel monitor) is a computer performance system monitoring tool developed by Nigel Griffiths, an employee of IBM, for AIX and Linux systems. Nmon can display operating system statistics on the screen or store them in a data file to help understand the use of computer resources, orientation and system bottlenecks. This system benchmark tool can get a large amount of important performance data with only one command. Using Nmon, you can easily monitor the system's CPU, memory, network, hard disk, file system, NFS, expensive processes, resources, and micro-partition information of the IBM Power system.
Nmon installation
Nmon exists by default in Ubuntu's repository. You can install Nmon with the following command:
Sudo apt-get install nmon
How to use Nmon to monitor the performance of Linux
After the installation is complete, start Nmon by entering the nmon command at the terminal
Nmon
You will see the following output:
Nmon-output
From the screenshot above, you can see that the nmon command line tool runs completely interactively, and you can use keyboard shortcuts to easily view the corresponding statistics. You can use the following nmon shortcuts to display different system statistics:
Q: stop and exit Nmon
H: view help
C: view CPU statistics
M: view memory statistics
D: view hard disk statistics
K: view kernel statistics
N: view network statistics
N: view NFS statistics
J: view file system statistics
T: view the high consumption process
V: view virtual memory statistics
V: detailed mode
Audit CPU processor
If you want to collect statistics about CPU performance, you should press the c key on the keyboard, and then you will see the following output:
Nmon_cpu_output
Verification of high-consumption process statistics
If you want to collect statistics on the high-consumption processes that the system is running, press the t key on the keyboard, and then you will see the following output:
Nmon_process_output
Check network statistics
If you want to collect network statistics for the Linux system, press the n key and you will see the following output:
N_network_output
Hard disk IPUBO chart
Use the d key to get information about the hard drive, and you will see the following output:
Nmon_disk_output
Check kernel information
One of the most important shortcuts for Nmon is the k key, which is used to display summary information about the kernel of the system. After pressing the k key, you will see the following output:
Nmon_kernel_output
Get system information
A very useful shortcut key for every system administrator is the r key, which can be used to display information about different resources such as the computer's system structure, operating system version number, and CPU. After pressing the r key, you will see the following output:
Nmon_system_output
Summary
There are many other tools that do the same work as Nmon, but Nmon is friendly to a novice to Linux.
At this point, I believe you have a deeper understanding of "how to monitor the system performance of Linux". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.