Linux performance analysis tool nmon 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, transmission and read/write ratio ● file system usage ● network I/O speed, transmission and read/write ratio, error statistics rate and transmission package Size ● processes that consume the most resources ● computer details and resources ● page space and page I/O speed ● custom disk groups ● The Network File System is also on the AIX operating system, nmon can also monitor other information, such as asynchronous I/O. 2. Install nmon as follows: 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 the usage of the system over a period of time and record the results, we can run the following command :#. /nmon-f-t-s 30-c 180 n-f: output file in standard format: