Nmon is a  resource monitoring tools which can monitor CPU, Memory, Disks, Network and even Filesystem on RHEL / Ubuntu systems. Java Nmon Analyzer is a tool that uses the nmon output as an input. It will graph the nmon output into an informative graph to make it easier to read. This article I will show you how to install and use nmon on linux.

What is nmon and Java Nmon Analyzer

Nmon is short for Nigel’s Performance Monitor. This tool is used to monitor resources on Linux, Power, x86, x86_64, Mainframe and ARM (Raspberry Pi). There is two mode available of nmon.

1. Online Mode, which used to real-time monitoring.
2. Capture Mode, which the output will saved to a CSV file for later processing.

Java Nmon Analyzer will use nmon output as an input data to be processed. So to use it, we will first need to have nmon installed and working on your system. Let’s start.

 

Features

Nmon is specializing to monitor and analyzing performance which includes :

  • CPU utilization
  • CPU Long-term
  • Memory usage
  • Virtual memory
  • Disks
  • Resource
  • Kernel
  • Filesystem
  • Network
  • NFS
  • Top-processes

Installing nmon

Nmon is available in binaries file or source code file for those who want to compile it by yourself. Binaries file is available on nmon download page while nmon source code is available in compiling nmon page. At this article is written, the latest version of nmon is 14g.

Method 1 : Using pre-compiled binaries file

  • Download nmon_linux_14i.tar.gz
  • Extract it
  • Go to the folder you extracted
  • Choose the appropriate binary file which match your system. For example, if you are using 32-bit version of Ubuntu 13, then you will found a binary file with name nmon_x86_ubuntu13
  • To run it, just type ./nmon_x86_ubuntu13

Method 2 : Compile nmon from the source

If you want to compile nmon by yourself, here’s the steps :

  • Download the source code file
  • Download the makefile
  • Rename the source code file to lmon.c . If you download lmon14g.c, then rename it.
  • Look at the makefile content and file the directive that matches your platform and Linux release
  • Make nmon. For example, if you are using Ubuntu 13.04, then you can type

$ make nmon_x86_ubuntu1304

  • Done. Next, you will find a binary file which name nmon_x86_ubuntu1304
  • Type ./nmon_x86_ubuntu1304 to run it

Note :
If you found about no ncurses.h file, then you need to install ncurses-dev package.

On Debian / Ubuntu based, you can install it using:

$ sudo apt-get install libncurses5-dev

How to Java Nmon Analyzer

Actually, we don’t install Java Nmon Analyzer. But we just run it with Java. This tool can be downloaded from Java Nmon Analyzer download page. After you finish download it, here are the steps how to run it.

  • Download and install nmon (make sure you have it)
  • Make a pipe for nmon

# mkfifo /tmp/nmonnamedpipe

  • Run analyzer agent in the target host :

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

The li.xiang.nmonanalyser.agent.Agent is a syntax. Don’t change it.
If it success, you will see a message below :

  • Run nmon, begin performance capture

# nmon -s 20 -c 360 -F /tmp/nmonnamedpipe

20 second per snapshot, capture 360 snapshots, totally 2 hrs. you can put the command in crontab for long time data capture.

If it success, you will see an IP Address connected. See below :

  • Run Java Nmon Analyzer GUI

# java -jar nmonanal_0.1.2.jar

A pop-up window name System Performance Monitor for LINUX & AIX will show. Then you need to load the data.

  • Click Data Loader > From Agent. Then enter target IP Address and its port. By default, it will use 8187 port number

  • Click OK
  • Wait for couple seconds and the GUI start showing you the result

You can also choose to display the output within the specific time range. The available time range are :

  • 1 minutes
  • 5 minutes
  • 10 minutes
  • 30 minutes
  • 1 hours
  • 2 hours
  • 3 hours
  • 6 hours
  • 12 hours
  • 1 day
  • 2 day

With Java Nmon Analyzer, we can graph nmon output to make it easier to read. This application also easy to use because we don’t need to install it and it has simple menus to understand.

 

最新文章

  1. PHP设计模式(四)单例模式(Singleton For PHP)
  2. 《ASP.NET1200例》ASP.Net 之Datalist数据删除(支持批量)
  3. OpenGL基础渲染
  4. Ubuntu上架设PPPoE Server
  5. Java多线程初学者指南(8):从线程返回数据的两种方法
  6. hdu 4742 Pinball Game 3D 分治+树状数组
  7. mysql免安装版使用方法
  8. JavaScript事件处理程序的3种方式
  9. nodejs入门篇之linux版的nodejs简易环境安装部署
  10. Kali Linux2018 上安装open-vm-tools实现虚拟机交互
  11. Django知识点汇总
  12. VS2012打开项目——已停止工作
  13. css3 之border-radius 属性解析
  14. 浏览器解析html全过程详解
  15. 用windows或ubuntu访问apfs或mac分区
  16. cocos2dx 3.3 场景切出时RenderTexture crash
  17. 使用类/结构体时关于ZeroMomery用法错误
  18. [EffectiveC++]item23:Prefer non-member non-friend functions to member functions
  19. gcc 常用命令
  20. P4320 道路相遇

热门文章

  1. 【CF613D】Kingdom and its Cities 虚树+树形DP
  2. git使用——推送本地文件到远程仓库
  3. 接口自动化测试 (三)request.post
  4. python3 中 Event.wait 多线程等待
  5. PHP中通过bypass disable functions执行系统命令的几种方式
  6. 向comboboxEdit中动态添加数据库中保存的用户自定义单位制的名称
  7. jq1.9.0以上版本不兼容live()解决方法
  8. [No0000194]聊聊 Chrome DevTools 中你可能不知道的调试技巧
  9. xcode代码提示没了
  10. C#中的一些基础