Tuesday 21 March 2023

Performance Monitoring Tool for All Unix/Linux Distrubitions (Oracle,Red Hat,AIX,Centos,Debian,Ubuntu,SLES,openSUSE)

Linux | Nmon

Nmon is a fully interactive performance monitoring command-line utility tool for Linux. It is a benchmark tool that displays performance about the CPU, MEMORY, NETWORK, DISKS, FILE SYSTEM, NFS, TOP PROCESSES, RESOURCES, AND POWER MICRO-PARTITION.

INSTALLATION

On Ubuntu/Debian :
$ sudo apt-get install nmon

On Fedora:
# yum install nmon

CentOS/RHEL:
# yum install epel-release
# yum install nmon

Once the installation of Nmon has been finished and you launch it from the terminal by typing the ‘nmon‘ command you will be presented with the following output.

$ nmon


Check CPU by processor
In order to get the CPU performance, you should hit the ‘c‘ key on the keyboard of the system you are using.

Top Process Details
In order to get the top processes that are running currently, you should hit the ‘t‘ key on the keyboard of the system you are using.

Check Network Statistics
In order to check network statistics, you should hit the ‘n‘ key on the keyboard of the system you are using.

Disk I/O Graphs
In order to get informations of disks, you should hit the ‘d‘ key on the keyboard of the system you are using.

Check Kernel Information
In order to check kernel information, you should hit the ‘k‘ key on the keyboard of the system you are using.

Get System Information
In order to get system information on different resources such as operating system version, Linux Version, Machine architecture, you should hit the ‘r‘ key on the keyboard of the system you are using.

Check File System Statistics
In order to check File System Statistics, you should hit the ‘j‘ key on the keyboard of the system you are using. You can get information on the size of the file system, used space, free space, type of the file system and the mount point.

Virtual Memory Statistics
In order to check Virtual Memory Statistics, you should hit the ‘V‘ key on the keyboard of the system you are using.

CPU Long Term
In order to check CPU Long Term Statistics, you should hit the ‘l‘ key on the keyboard of the system you are using.

Note: If you want use this facility in all operating systems without installation then follow the below steps:

1-Download rpm/tar.gz or etc.

You can download all versions of the tool with command below. Please download from here “http://nmon.sourceforge.net/pmwiki.php?n=Site.Download”
OR
wget https://netcologne.dl.sourceforge.net/project/nmon/nmon16m_helpsystems.tar.gz

2-Untar the file

[root@erptstdb01 nmon]#mkdir nmon

[root@erptstdb01 nmon]#mv nmon16m_helpsystems.tar.gz nmon

[root@erptstdb01 nmon]#cd nmon/

[root@erptstdb01 nmon]#tar -xvf nmon16m_helpsystems.tar.gz

[root@erptstdb01 nmon]# chmod 777 *

3-You can run nmon for your Linux Distrubition here without installation.

Press key you want to monitor.

For example press d for Disk and then . to see only working disks. Same for all other resources.

Example: Press m ( Memory ) + n (Network) + d (Disks ) + . ( dot)

No comments:

Post a Comment