Linux Nmon Monitoring Tools use

Source: Internet
Author: User
Tags disk usage

Monitoring indicators and indicators under Linux system view

I. Introduction of TOOLS
The Linux system uses the Nmon tool for resource monitoring. It helps to display all of the important performance tuning information on one screen and dynamically updates it without consuming a lot of CPU cycles, typically less than 2%. On the updated computer, its CPU utilization will be less than 1%. The Nmon tool can output a large amount of information at the same time, and can capture the same data into a text file for later analysis and drawing of the report. The output file is in spreadsheet format.

Second, the operation of the command
(1) General Nmon Tools installed in the/home/nmon folder, such as


(2) through the./nmon-f-S 2-C 100 (red values can be replaced according to the actual situation) command to start the Nmon tool for monitoring;
wherein the first value represents the time interval of the monitoring information acquisition, in seconds, the second value represents the number of information acquisition, so the above example gives the monitoring command meaning: From the execution of the command, every 2 seconds to the system to monitor the information collected, a total of 100 times.

Note: The acquisition time interval must not be less than 1 seconds, otherwise there will be information anomalies, such as the CPU will be rendered from 0 to 100 and then decrease the zigzag trend graph, and all the monitoring acquisition time is the same time no change






(3) After the monitoring command is executed, a file with a. nmon suffix is generated in the same level directory, as



The file name is automatically named, as can be seen from the file name, monitoring the server, monitoring the date and monitoring the time and other information.

As shown, the record of this monitoring information is b28-1216 the information of this server, monitoring is starting from August 13 Day 16:10, can be based on individual needs to change the name of the monitoring file, and will not affect the subsequent monitoring results collection.

Third, real-time view
The system can also be monitored in real-time, using commands./nmon, that is, no parameters at the end of the server can be real-time monitoring, server resource usage can be reflected in real-time on the screen, but this real-time monitoring does not download the server resources, it is recommended to use together with the acquisition download command


Initial interface of Nmon


Nmon's features are strong, the home page lists can be monitored and real-time view of the project, in actual projects often monitored resources are mainly c=cpu,m=memory,d=disk,n=network


C=cpu
In the initial interface above Nmon, click on the letter C to see the CPU usage



Memory
Click M to see the memory usage (note that if you click on the letter M screen no response can press C again to show the memory usage)



Disk
Click on the letter D to see the disk usage, also do not display and then press C


Internet
Click on the letter N



Iv. Download and Analysis
Can be downloaded from the server Nmon collected results for analysis









Diskbusy reflects each acquisition moment, the disk usage situation








V. Other
In addition to using the Nmon tool, you can also monitor the server's resources through the top of the Linux system commands, top is a dynamic display process, you can constantly refresh the current state through the user keys, if the command is run in the foreground, it will monopolize the foreground until the user terminates, The advantage is the real-time view of the server's CPU, memory and process status, the disadvantage is not monitoring the disk and network information, and monitoring results can not be recorded download for later analysis reference

Server interface Input top command to monitor server resources in real time








Linux Nmon Monitoring Tools use

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.