Fading Coder

One Final Commit for the Last Sprint

Home > Tech > Content

Installing and Operating nmon for Linux Performance Monitoring

Tech 1

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:

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:

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:

  1. Uninstall your current WPS Office installation
  2. Install WPS Office 2019 version
  3. Follow the prompts to install the necessary macro plugin

Download WPS Office 2019 from:

Related Articles

Understanding Strong and Weak References in Java

Strong References Strong reference are the most prevalent type of object referencing in Java. When an object has a strong reference pointing to it, the garbage collector will not reclaim its memory. F...

Comprehensive Guide to SSTI Explained with Payload Bypass Techniques

Introduction Server-Side Template Injection (SSTI) is a vulnerability in web applications where user input is improper handled within the template engine and executed on the server. This exploit can r...

Implement Image Upload Functionality for Django Integrated TinyMCE Editor

Django’s Admin panel is highly user-friendly, and pairing it with TinyMCE, an effective rich text editor, simplifies content management significantly. Combining the two is particular useful for bloggi...

Leave a Comment

Anonymous

◎Feel free to join the discussion and share your thoughts.