Nmon installation using server monitoring tools

 

 

 

If you want to not finish the acquisition is closed, you can use the kill command

nmon is a tool for monitoring server performance

 

table of Contents

1, the installation nmon

2, data collection

 

1, the installation nmon

nmon is a linux server performance monitoring tools, he also provides a good result graph display function. This part to the installation process described in Example centos6.5 system

1.1 download nmon

Download Link: https://sourceforge.net/projects/nmon/files/

Benpian Download this package into / opt directory

mkdir nmon # nmon to create a folder

cd / opt # enter the directory opt

tar -zxvf nmon_linux_14i.tar.gz -C nmon # nmon extract to the directory, -C meaning specified directory

Complete decompression can see the following files nmon:

the X-nmon_x86_64_centos6 + chmod   # nmon_x86_64_centos6 this document will give executable permissions

nmon_x86_64_centos6 mv / usr / local / bin / nmon   # To make Nmon can run any operating system environment in the current path, the 64-bit CentOS, you need to move files to execute nmon_x86_64_centos6 folder bin directory (environment variable) of next, and was named nmon

 

In Liunx command window nmon, carriage return, you can enter the Nmon monitoring interface

 

2, data collection

2.1 we can see in real time server status command.

In 1 we see that there are many parameters to start nmon under their meaning is as follows:

  • q: Stop and exit Nmon
  • h: View Help
  • c  : View CPU statistics data
  • m: View memory statistics
  • d  : Check the hard drive statistics
  • k: Viewing the kernel statistical data
  • n: View network statistics
  • N: check to see NFS statistics the number of data
  • J  : check see the text piece system statistics
  • t: View high consumption process
  • V: Check the virtual memory system design data
  • v: verbose mode

2.2 can also enter collection instruction, let nmon background monitoring and then monitor the results generated files for viewing

Collection instructions are:

     -f parameter: generation file, the file name = name + host the current time .nmon

     -T parameters: show a higher share of resources process

     -s parameters: -s 10 represents data collected once every 10 seconds

     -c parameters: -s 10 represents a total of ten times the data collection

     -m parameter: specifies the file directory

Such as: the nmon. 5 -C 24 -f -s -m / opt # every 5 seconds acquisition time, collecting a total of 24 times, the data is two minutes, the result file into .nmon directory opt

I see that there is still time to capture the process number, collecting over his own will close

If you want to not finish the acquisition is closed, you can use the kill command

Previously generated .nmon file open to view, download nmon analyser to view

下载地址:https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/Power+Systems/page/nmon_analyser

下载后解压是一个word和excle文件,word文件是说明文档,excle则是用来打开.nmon文件的

 

Guess you like

Origin www.cnblogs.com/weizhideweilai/p/11368192.html