nmon is a system performance monitoring tool for Linux and AIX operating systems. It is a comprehensive tool for system administrators, tuners, and benchmarkers that provides real-time data on various aspects of a system’s performance, including CPU utilization, memory usage, disk and network activity, and more.
With nmon, you can monitor the performance of your system in real-time, capture performance data over a period of time, and save it for later analysis. This makes it an ideal tool for system administrators who want to keep track of system performance, identify performance bottlenecks, and troubleshoot issues.
nmon has several modes, including interactive and capture modes, which allow you to view performance data in real-time or capture it over a specified period of time. The tool displays data in a clear and concise format, making it easy to understand and interpret the results. You can also export performance data in various formats, such as CSV and graph, for further analysis.
If you encounter the below error while running the command nmon:
nmon: command not found
you may try installing the below package as per your choice of distribution:
Distribution | Command |
---|---|
Debian | apt-get install nmon |
Ubuntu | apt-get install nmon |
Arch Linux | pacman -S nmon |
Kali Linux | apt-get install nmon |
Fedora | dnf install nmon |
Raspbian | apt-get install nmon |
nmon Command Examples
1. Start nmon:
# nmon
2. Save records to file (“-s 300 -c 288” by default):
# nmon -f
3. Save records to file with a total of 240 measurements, by taking 30 seconds between each measurement:
# nmon -f -s 30 -c 240
Summary
In summary, nmon is a versatile and powerful tool for system administrators, tuners, and benchmarkers that provides a wealth of real-time performance data to help you optimize your system’s performance and identify performance bottlenecks.