当前位置:网站首页>Data collection
Data collection
2022-06-12 14:42:00 【Micro blog】
Performance test data collection :
CPU、memory data :
Use Linux Self contained top Command collection , The detailed usage is as follows
Every time 5 Refresh every second , to update 2 Time :top –d 5 -n 2 –b > toplog.txt
top -b > $(date -d "today" +"%Y%m%d_%H%M%S").txt
View the network card utilization , Use nicstat Tools to collect data ,nicstat Tools are not Linux Bring their own , Independent installation required .
The installation method is as follows: :https://blog.csdn.net/lxw198902165221/article/details/100540005
The commands are as follows
nicstat.sh -i eth0 1
nmon Tools ,nmon Can collect cpu、 disk IO、memory Wait for multiple data ,nmon It also needs to be installed separately
nmon After installation , Directly in Linux perform nmon, You can see nmon Information about , Here's the picture

The commands are as follows , -f Indicates that there is time in the generated data file name ; -s 10 each 10 Data is collected every second ;-c 6 To collect 6 Time ,10*6=60 second ,
That is, a total of one minute of data was collected
nmon -f -s 10 -c 6 collecting data , After collection, a... Is generated in the current directory nmon File format , Here's the picture

The collected data is used nmon analyser v33g.xls Go open it , You can generate the graphic file of each data
![]()
The opened file is shown in the following figure

GC data : adopt JDK Built-in tools jstat collect ,
jstat Detailed usage reference :
http://blog.csdn.net/zhaozheng7758/article/details/8623549
GC For a detailed explanation of the collected data, refer to :
http://www.cnblogs.com/qmfsun/p/5601734.html
Simple usage is as follows : Every time 1S The process number displayed once is 1655 Of GC situation , A total of 5 Time , If the number of times is not specified, continue to collect
jstat -gcutil 1655 1s 5
Analyze memory usage
Generate heap dump Method of file : Use jdk Of jmap command , In operation JVM Generate Dump file , The order is as follows :
jmap -dump:format=b,file=/path/heap.bin process ID
![]()
Use eclipse Plug in for MAT Open the previous binary file ,
MAT The detailed installation and use methods are as follows
http://lxw198902165221.blog.163.com/blog/static/258950022201711623830721
The detailed analysis method of the file content after opening is as follows :
http://www.cnblogs.com/AloneSword/p/3821569.html
Javacore Information collection and analysis
Use kill -3 pid, Can actively generate Javacore Log files
Use IBM Thread and Monitor Dump Analyzer for Java Analyze
Download the corresponding jar file , Directly in jar Execute the following command in the directory where the file is located to start the tool
java -jar jca456.jar
The interface after startup is shown in the following figure

Open with this tool Javacore The analyzed files , The effect is shown below

Right click and select the corresponding file list to view the corresponding details

come from <http://lxw198902165221.blog.163.com/blog/static/2589500222017116103712108/>
边栏推荐
- [lambda operation jcf]
- Producers (send syncask requests) and consumers (with xxxask monitoring and Implementation)
- Player practice 20 audio thread and video thread
- C secret arts script Chapter 5 (paragraph) (Section 3)
- Player practice 26 adding slider and window maximization
- selenium-webdriver之断言
- 程序构造和解释之过程抽象
- Huawei equipment is configured with H virtual private network
- Energy chain smart electronics landed on NASDAQ: Bain is the shareholder to become the first share of charging services in China
- C secret script Chapter 1: data storage (in-depth analysis) supplement
猜你喜欢

junit测试套件方法整理(方法二不太好用)

QT realize picture dragging

Easygui query the company name in the document

Player actual combat 13 create qtopengl project to promote window control and reload qoopenglwedge
![[ROC] aspriseocr C # English, Digital identification (not Chinese)](/img/80/198145df663d2eeec6b8b1d7bc47b6.png)
[ROC] aspriseocr C # English, Digital identification (not Chinese)

Soft test (VI) Chrome browser installation selenium IDE

Getting started alicloud haas510 open board DTU (version 2.0) --510-as

Printing colored messages on the console with printf

你敢信?開發一個管理系統我只用了兩天

JS (III) convert ES6 syntax to Es5 syntax
随机推荐
junit测试套件方法整理(方法二不太好用)
Location (I) error: command erred out with exit status
Machine learning learning notes
Crawler problem set (I) record
Player actual combat 13 create qtopengl project to promote window control and reload qoopenglwedge
PMP agile knowledge points
QT to realize the simple use of SQLite database
Variable parameters
程序构造和解释之过程抽象
华为设备配置BGP AS号替换
[ROC] aspriseocr C # English, Digital identification (not Chinese)
New technology: efficient self-monitoring visual pre training, local occlusion no longer need to worry!
[wechat applet] 3 The first wechat applet
The difference between parameter and argument in C language
And, or, not equal, operator
【SimpleDateFormat】1. Conversion of date type and text type 2 Thread unsafe
Module yaml error: Unexpected key in data: static_context [line 9 col 3]
数据的收集
JMeter (V) pressure test of Excel file upload interface
Two months' experience in C language