Installing and Operating nmon for Linux Performance Monitoring
nmon is a performance monitoring tool designed for AIX and Linux systems. While it supports IBM's AIX operating system, this guide focuses on its application in Linux environments for system performance analysis.
Downloading and Installing nmon
1.1 Downloading nmon
Obtain the nmon binary executable file nmon16e_mpginc.tar.gz from the following location:
- Download link: https://pan.baidu.com/s/1RIzUSc9RNdSAMl7vPWfBOg
- Access code: v3vk
1.2 Installing nmon
# Create a directory for nmon
mkdir nmon_directory
# Copy the downloaded archive to this directory and extract it
cp nmon16e_mpginc.tar.gz nmon_directory/
cd nmon_directory
tar zxvf nmon16e_mpginc.tar.gz
# Identify the appropriate binary for your Linux distribution
# For CentOS 7.5, use the following command
mv nmon_x86_64_centos7 nmon_executable
# Make the binary executable
chmod +x nmon_executable
1.3 Using nmon
1.3.1 Monitoring System Performance in Real-Time
Execute the nmon binary to start real-time monitoring:
./nmon_executable
Once launched, press h to display help information. Use c to view CPU utilization statistics, m for memory usage, d for disk I/O, and n for network metrics. The interface provides clear navigation for various system resources.
1.3.2 Generating Performance Data Files for Analysis
To collect performance data for later analysis, use nmon in non-interactive mode:
./nmon_executable -f -N -m /tmp/performance_data/ -s 30 -c 120
Parameter explanation:
-f: Enables file output mode-N: Includes NFS statistics in the collection-m: Specifies the directory for output files-s: Sets the sampling interval in seconds (30 seconds in this example)-c: Defines the total number of samples to collect (120 samples here)
Alternatively, you can specify a custom output filename:
./nmon_executable -s 1 -c 1000 -F custom_performance_data.nmon
Installing and Using nmon analyser
2.1 Downloading nmon analyser
Download the nmon analyser tool package nmon_analyser_v66.zip from:
- Download link: https://pan.baidu.com/s/1jHQFhz9AU8kD_2cmcLoPrQ
- Access code: bbgg
Extract the archive and locate the Excel spreadsheet file within.
2.2 Analyzing nmon Data Files with nmon analyser
Open the nmon analyser Excel file. When prompted, enable macros by selecting "Enable Content" or similar option depending on your Excel version.
Click the "Analyze nmon data" button within the spreadsheet. Select the .nmon file generated earlier. The analyser will process the performance data and create a comprehensive report with multiple worksheets covering different system metrics.
Save the generated analysis file. The report includes detailed performance statistics across various categories accessible through worksheet tabs.
Note on WPS Office Compatibility
Recent versions of WPS Office may encounter issues with macro execution in the nmon analyser spreadsheet.
Workaround:
- Uninstall your current WPS Office installation
- Install WPS Office 2019 version
- Follow the prompts to install the necessary macro plugin
Download WPS Office 2019 from:
- Download link: https://pan.baidu.com/s/1kPccTT6sfsC4P1di6DwEpA
- Access code: y2h6