Open In App

How use Nmon and “Java Nmon Analyzer” for Monitor Linux Performance

Last Updated : 01 Dec, 2022
Like Article

Nmon or Nigel’s Performance Monitor is a tool that is used for the purpose of monitoring resources on Linux,  x86_64, Mainframe, etc. With the help of Nmon, you can monitor CPUs, disks, memory, and a couple of other things. There are two modes of Nmon:

  • Online mode: This is used for the purpose of real-time monitoring. 
  • Capture mode: In this, the output is saved in a CSV file and is processed later.

Java Nmon analyzer uses the output from the nmon as its input, for running Java Nmon analyzer, having Nmon installed is a prerequisite.

Features of Nmon:

  1. Nmon helps in monitoring CPU utilization.
  2. Monitors Memory usage.
  3. Monitors Virtual memory.
  4. Monitors disks.
  5. Monitors filesystem.
  6. Monitors resources.
  7. Monitors kernel.
  8. Monitors network.
  9. Monitors Top-processes.

Getting started with Nmon and Java Nmon Analyzer

Step 1: Installing NMON

You can install nmon from the official nmon site. The link to the site is:


After installing the appropriate tar file according to your system and version, install the downloaded package from the below command:

yum install nmon


 Step 2: Start the NMON service

After installing nmon start it by typing the below command:



A window like this will appear after writing the above command. There are various commands to see various statistics:


Let us look at the analysis that NMON provides, there are a lot of options available but we will see some of them for demonstration purposes:

Example 1: CPU statistics

To see the CPU statistics type ‘c’.


Example 2: Memory statistics:

To see the memory statistics type ‘m’.


Example 3: Network statistics

To see the network statistics type ‘n’.


Likewise, you can try the other options also to see the required statistics.

Step 3. Working with java nmon analyzer

Java is required for running the nmon analyzer, so make sure that your system has JDK installed. Use the below commands to install JDK.

sudo yum install java-<version>-openjdk

Confirm the installation by typing:

java -version


Working with Analyser

Step 1: Before performing this step make sure to download and install Java Nmon Analyser from the site given : 


  Step 2: Make a pipe for nmon

mkfifo /tmp/nmonnamedpipe


  Step 3: Running the analyzer in the target host:

java -cp nmonanal_0.1.2.jar li.xiang.nmonanalyser.agent.Agent


 Step 4. Running nmon to capture performance:

nmon -s 18 -c 360 -F /tmp/nmonnamedpipe


Step 5: Running Nmon GUI to analyze:

After running the above command use the below command to run the java nmon analyzer GUI, a pop-up window of System performance monitor will appear:

java -jar nmonanal_0.1.2.jar


Click on the top left corner of the newly appeared screen and click on data loader and select From an agent in the drop-down menu.


After selecting the above option a box will appear in which you have to enter the IP address of the agent and the default port on which the agent is listening. The default port is 8187.


Click on connect and wait for some time till the process is finished.

So this was the explanation about Nmon and Java Nmon Analyzer in a clear, step-wise manner. 

Similar Reads

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:
3 min read
Guider a System Wide Linux Performance Analyzer
Guider is an open-source integrated performance analyzer tool written mostly in Python for Linux operating systems. Most of the functions required for measuring, analyzing, testing, and verifying Linux system performance are provided in Guider. Guider provides most of the features like Monitoring, Profiling, Visualization, control, Logging, Test. I
3 min read
SAR command in Linux to monitor system performance
sar (System Activity Report) It can be used to monitor Linux system's resources like CPU usage, Memory utilization, I/O devices consumption, Network monitoring, Disk usage, process and thread allocation, battery performance, Plug and play devices, Processor performance, file system and more. Linux system Monitoring and analyzing aids in understandi
4 min read
How to Monitor Processor, Memory, Network Performance using dstat in Linux?
Do you want to run a quick performance test on your Linux machine? You may want to check the dstat command. Dstat is a versatile and efficient command that combines the features of several older tools such as vmstat, netstat, iostat, and ifstat to provide useful insights into Linux system performance. You can analyze virtual memory, network connect
2 min read
Gdu – Faster Disk Usage Analyzer for Linux
GDU is a disk usage analyzer written in Go language for the Linux Operating systems. Gdu was actually made for SSD disks where it can totally utilize parallel processing. Although it works for HDDs too, but the performance gain is not so good.GDU can run in two modes one is interactive and another is non-interactive. It is a good tool to analyze di
3 min read
social-analyzer - Profile Finder on social media in Kali Linux
Social Analyzer is a free and open-source tool available on GitHub. This tool is an API &amp; CLI tool used to find Potential Profiles of a Person on 800+different sites such as Facebook Instagram telegram etc. This tool is based upon SINT Technology means Open Source Intelligence technology. This tool allows its users to find potential profiles of
3 min read
Ngrep - Network Packet Analyzer for Linux
Ngrep a network packet analyzer that is similar to the grep command, but ngrep grep the package on the network layer. This tool grep the traffic going to coming on the network interface.ngrep allow us to specify an extended regular or hexadecimal expression to match against data payloads of packets.ngrep can work on protocols like IPv4/6, TCP, UDP,
3 min read
How to Install and Use Scout_Realtime to Monitor Server and Process Metrics in Linux?
There are numerous free tools on Linux that are used to monitor the Linux system including hardware and software. We all may have already come across some command-line Linux performance monitoring tools such as top, htop, atop, etc. Alike that we come across another tool called Scout Realtime tool which is used for server monitoring, that you can s
2 min read
How to Install and Use bmon Real Time Bandwidth Monitor in Linux?
Bmon Stands is an open source tool for the bandwidth monitoring tool. bmon is a powerful CLI based network bandwidth monitoring and debugging tool for Unix / Linux systems to capture networking related statistics &amp; present them visually on the command line in a human-friendly way. It captures the traffic usage over all the network interfaces on
4 min read
How to Use Glances to Monitor Remote Linux in Web Server Mode?
Glances is a system monitoring tool for Linux machines, it is used to monitor system resources in web server mode or through the web browser. It is an alternative to top and htop monitoring tools. This tool has various features and also provides bits of information on a single screen. Glances is a cross-platform, free and open-source tool for monit
4 min read