当前位置:网站首页>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
边栏推荐
- STL -- vector container
- 2022.6.28-数据库-1.数据库的隔离级别
- [hdrp HD rendering pipeline] create hdrp project and upgrade the built-in pipeline project to hdrp project
- 【Unity编辑器扩展】Unity制作自己的专属的编辑器面板
- [Ruiji takeout ⑩] rough learning of Linux & rough learning of redis
- Buaaos-lab0 experimental report
- 元宇宙开发者的乐园 解析元宇宙协议Caduceus生态价值
- 静态路由(详)
- 流量回放工具gor使用经验
- 网络层传输协议(详解)
猜你喜欢

VLAN和TRUNK口配置

网络层传输协议(详解)

【Unity编辑器扩展】Unity资产预处理和后处理图片自动转Sprite2D

Nmon使用方法

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

JS笔记1

Detailed explanation of caduceus project of metauniverse public chain (I): project concept and technical framework of caduceus metaverse protocol

子网划分(详)
![[unity panel attribute literacy] set texture import settings after importing textures](/img/c6/4a50bb848560e1e5c72e714d367109.png)
[unity panel attribute literacy] set texture import settings after importing textures

Unity3D 游戏人物跳跃落地时发生弹跳,偏移情况的解决方法
随机推荐
status 500 reading AftersaleService#getAftersaleList(Long)+com.sun.proxy.$Proxy214.getAftersaleList
uniapp微信小程序登录(先授权微信后授权手机号)-- (1)
STL -- set container
sqlmap的使用
【已解决】参考了本地mysql忘记密码后, [Server] --initialize specified but the data directory has files in it. Aborti
UE4 notes
bugku----正则匹配,cookies
去中心化边缘渲染元宇宙协议Caduceus受邀出席CBAIA 2022峰会,以技术赋能更多Web3应用场景
Gdb+vscode debugging -- how to debug the release version
Attack and defense world - easytornado notes
【Unity开发小技巧】Unity混音器Mixer控制全局音量
性能瓶颈定位XMind
项目性能优化实战:解决首页白屏问题,自定义 loading 动画优化首屏效果
[tools] Application of SQLite local database in unity3d
Software testing technology interim testing summary | software testing foundation & Executive testing & test design and development
静态路由(详)
The solution to the bounce and offset of unity3d game characters when jumping to the ground
30分钟搞懂 HTTP 缓存
网络层协议和IP数据包的格式(详解)
剑指 Offer 53 - I. 在排序数组中查找数字 I