nmon for Linux – Nigel’s performance Monitor for Linux is a wonderful Swiss Army Knife for Performance Information.You can display multiple screen on the same windows and get information on CPU, Memory, NFS, Network, Disks, Resource, kernel etc
nmon has single binaries for each operating system including Red Hat, SUSE, Ubuntu, OpenSUSE, Fedora etc. Using the binary is as simple as starting the executable like
$ ./nmon_x86_64_rhel54
Using nmon in basic mode. For more information, do read the nmon for Linux Getting Started for more details
- To quit, just hit “q”
- Most of the rest are toggled commands i.e. hit c to see the CPU stats and hit c again to remove CPU stats.
- For disk graphs hit d and you will see a 50 column graph of the read and write busy percentages
- For disk numbers hit D and if you hit D again you see different information eventually hitting D will close this section
Using nmon for Linux in data capture mode
- Capturing a small sample file: nmon -f -s 2 -c 30
- -f means the data will be saved and not displayed on the screen
- -s 2 means data capture every 2 seconds
- -c 30 means 30 data points or snap shots
- Do note that the nmon runs like a daemon process in the background. nmon will continue to run till completion whether you connect or log-off.
- You can check whether the nmon is running by “ps -ef | grep nmon”
- Resulting file is xxx.nmon