当前位置:网站首页>How to use nmon
How to use nmon
2022-07-19 02:30:00 【[email protected]】
One 、 brief introduction
1、nmon It's a kind of AIX With all kinds of Linux Monitoring and analysis tools are widely used in operating systems , It can capture the usage of system resources in real time during the operation of the system , The recorded information is relatively comprehensive ,
And can output the results to the file , And then through nmon_analyzer Tools produce data files and graphical results .
2、nmon Types of data that can be monitored
Memory usage
Disk adapter
Free space in file system
CPU Usage rate
Page space and page speed
asynchronous I/O, Only applicable to AIX
Network file system (NFS)
disk I/O Speed and read-write ratio
Server details and resources
Kernel Statistics
Processes that consume the most resources
Run queue information
3、 characteristic
①、 Less system resources ( It's usually less than 2%)
②、 Powerful ( Comprehensive monitoring of data types )
③、 combination grafana Instrument diagrams like this , It can more intuitively display the monitored data in real time
④、 portability 、 Good compatibility
One 、 Check the installation environment
# View operating system information uname -a # see linux Release version lsb_release -a

Two 、nmon Download and install
1、 Official address :nmon for Linux | Site / Download
According to the operating system and linux edition , Select the corresponding supported version , as follows :

Two 、 install
1、 First download to local , And then through mkdir nmon Create a folder ,cd go in nmon Folder , Can pass rz command , perhaps ftp Download the nmon Upload to the server created nmon Folder . And then through tar -zxvf Pressure file .

2、 Select the corresponding version and use mv nmon_x86_64_centos7 nmon Change of name ( You'd better add the path you want to put here ), use chmod 777 nmon to nmon Empowerment .

3、 stay nmon Execute under the path where the execution file is located ./nmon The following figure shows that the installation is successful .

3、 ... and 、 Collect data
# c see CPU Related information # m View memory related information # d View disk information # n View network related information # t View the relevant process information # h View help related information

nmon Through the command ./nmon -ft -s 10 -c 60 -m /root/nmon Start the monitoring , Capture various data of the server
# Parameter description -f The monitoring results are output in the form of files , Default machine name + date .nmon Format (YYYYMMDD_HHMM.nmon) -F Specify the filename of the output , such as test.nmon -s It refers to the sampling frequency , The unit is millisecond -c It refers to the number of samples , That is, how many times to collect with the above sampling frequency -m Specify the generated file directory
PS: Generally speaking, it is not recommended to use nmon monitor , Because of the nmon The document exceeds 10M when , The analysis tool will report an error due to insufficient memory .
If necessary , It is suggested to increase the sampling frequency , Reduce sampling times ( lower than 330 Time )
When the command starts , Will be in nmon Generate monitoring files in the directory , And continue to write resource data , until 360 Collection of monitoring points completed —— I.e. monitoring 1 Hours , These operations are done automatically , No manual intervention ,
The tester can continue to do other things . If you want to stop the monitoring , Need to pass through “#ps –ef|grep nmon” Query process number , Then kill the process to stop monitoring .
ps-ef |grep nmon # Inquire about nmon process kill-9 process ID # Forcibly interrupt the monitoring process
nmon The output file is named : Server name _ Date time .nmon
Such as :localhost_220416_2309.nmon n
By the following command , take .nmon File to .csv file , Generate the corresponding... In the current directory .csv file
sortlocalhost_220416_0138.nmon>localhost_220416_0138.csv
Four 、 Generate reports
Download the file generated by monitoring to the local
adopt nmon analyser Tools (nmon analyser v51_2.xlsm) Turn into excel file .
1) Open after download nmon analyser v51_2.xlsm
3) And then click Analyser nmon data Button , Select the downloaded file , Then it will be transformed into .excel file , Generate graphical files

nmon Command provides the following views interactively :
- System resource view ( Use r key );
- Process view ( Use t and u key );
- AIO Process view ( Use A key );
- Small view of processor usage ( Use c key );
- Big view of processor usage ( Use C key );
- Shared processor logical partition view ( Use p key );
- NFS panel ( Use N key );
- Network interface view ( Use n key );
- WLM View ( Use W key );
- Disk busy graph ( Use o key );
- Disk group ( Use g key );
- ESS Virtual path statistics view ( Use e key );
- JFS View ( Use j key );
- Kernel Statistics ( Use k key );
- Long term processor average utilization view ( Use l key );
- Big page analysis ( Use L key );
- Paging space ( Use P key );
- Volume group statistics ( Use V key );
- Disk Statistics ( Use D key );
- Disk statistics and graphics ( Use d key );
- Memory and paging Statistics ( Use m key );
- Adapter I/O Statistics ( Use a key );
- Share Ethernet adapter Statistics ( Use O key );
- Redundancy check good / Warning / Danger view ( Use v key );
- Details page Statistics ( Use M key );
- Fibre channel adapter Statistics ( Use ^ key );
版权声明
本文为[[email protected]]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/200/202207170009048845.html
边栏推荐
- php伪协议实现命令执行
- [unity Editor Extension] unity publishes resources to the store process unity asset store publish
- Software testing technology interim testing summary | software testing foundation & Executive testing & test design and development
- 3D NFT的破茧重生:Caduceus去中心化边缘渲染技术
- 简单的用例编写规范
- SoloPi APP性能测试用
- 西加加
- 登录功能的测试点大全
- 简单记录一下并查集
- Injection de modèles ssti
猜你喜欢

元宇宙公链Caduceus项目详解(一):Caduceus Metaverse Protocol的项目理念及技术框架

3D NFT的破茧重生:Caduceus去中心化边缘渲染技术

Unity3D 游戏人物跳跃落地时发生弹跳,偏移情况的解决方法

【Unity编辑器扩展】Unity制作自己的专属的编辑器面板

STL--queue容器

postman的json脚本转jmeter的jmx脚本

使用JMeter测试基于WebSocket协议的服务

flask模板注入

【Unity开发小技巧】Unity打包PC端exe,压缩打包为一个exe文件
![[unity development tips] unity packs the EXE on the PC side and compresses and packs it into an EXE file](/img/b1/6ca7164d218c179918bb2497ab5fa3.png)
[unity development tips] unity packs the EXE on the PC side and compresses and packs it into an EXE file
随机推荐
元宇宙公链Caduceus项目详解(一):Caduceus Metaverse Protocol的项目理念及技术框架
服务器知识(详情)
Logical vulnerability - authentication vulnerability
仅以此篇纪念负数取模
Analysis of the paradise of metauniverse developers the ecological value of the metauniverse protocol caduceus
[unity Editor Extension] unity publishes resources to the store process unity asset store publish
MeterSphere基于JMeter分布式性能压测平台
[hdrp HD rendering pipeline] create hdrp project and upgrade the built-in pipeline project to hdrp project
Attack and defense world - easytornado notes
性能之流量回放
"Visual C # from getting started to mastering" personal learning arrangement
STL--string容器
[Ruiji takeout ⑩] rough learning of Linux & rough learning of redis
面试:接口和抽象类的区别-简洁的总结
Bugku---- regular matching, cookies
Jmeter接口测试之响应断言
【Unity编辑器扩展】快速定位资源和脚本的指定文件和路径
全链路压测
最短路/次短路/K短路
find()(名字太多人用我就加字)