1. Overview monitoring is an indispensable part in checking system problems or optimizing system performance. The operating system monitoring tool monitors the usage of operating system resources and indirectly reflects the running status of each server program. The analysis based on the running results can help us quickly locate the system... information & nb
1. Overview
Monitoring is an indispensable part in checking system problems or optimizing system performance. The operating system monitoring tool monitors the usage of operating system resources and indirectly reflects the running status of each server program. The analysis based on the running results can help us quickly locate the scope of system problems or performance bottlenecks.
Nmon is a monitoring and analysis tool widely used in AIX and various Linux operating systems. compared with other system resource monitoring tools, nmon records comprehensive information, it can capture the usage of system resources in real time during system operation, and output the results to the file, and then generate data files and graphical results through nmon_analyzer.
The data recorded by nmon includes the following aspects (which is also a resource point we are concerned about when looking for a problem ):
● Cpu usage
● Memory usage
● Disk I/O speed, transfer and read/write ratio
● File system usage
● Network I/O speed, transmission and read/write ratio, error statistical rate and transfer package size
● Processes that consume the most resources
● Computer details and resources
● Page space and page I/O speed
● User-defined disk groups
● Network File System
In addition, on the AIX operating system, nmon can monitor other information, such as asynchronous I/O.
2. download and install nmon
How to obtain nmon? We can download it from the official IBM website for free at http://www.ibm.com/?works/wikis/display/wikiptype/nmon.
To install nmon, follow these steps:
1) log on to the system as the root user;
2) create a directory: # mkdir/test;
3) upload nmon over ftp to/test, or copy it to the/test Directory through other media;
4) execute the authorization command: # chmod + x nmon.
3. nmon data collection
3.1 Data Collection
To monitor system usage in real time and record the results, run the following command:
#./Nmon-f-t-s 30-c 180
N-f: output files in standard format: _ YYYYMMDD_HHMM.nmon;
N-t: The output contains processes with high usage;
N-s 30: data is collected every 30 seconds.
N-c 180: 180 times in total
After you press enter, a hostname_timeSeries.nmon file is automatically generated in the current directory. if hosname is test1, the generated file is test10000090308_1313.nmon.