当前位置:网站首页>Test work summary - performance test related issues
Test work summary - performance test related issues
2022-06-12 05:22:00 【Government officials】
1. HTTP Communication principle
- Browser based on url The domain name resolves url Address
- be based on IP Address and server
- Client construction HTTP request , Contains header information and communication data
- be based on HTTP The network protocol transmits the request to the corresponding interface of the server
- Interface generates response structure
- Response results are based on HTTP Please Return by the Way You Came
- Front end based rendering , Display the generated results
2. Performance test requirements
To develop , Provided by operation and maintenance team
- Capacity planning capability
- System risk identification
- System bottleneck identification
- Performance tuning guidance
3. Performance testing and analysis optimization ( Technology tree )
- Code tuning
- operating system os
- database
- Storage
- application server 、 middleware
- The Internet
- Pressure measurement
- Monitoring analysis tools
- cache
- queue
- web The server
- Containerization 、 layout 、 The Internet
- Big data technology
4. System performance problems
- Storage problems Mysql、redis、Memcache
- Middleware issues Tomcat、httpd
- Message queuing problems kafka、ActiveMQ
- Call link problem Internal dependence 、 Third party reliance
- Details of the problem
1. Redis The number of memory connections is full
2. Nginx Connection refused
3. Core dependency service exception
4. Non core dependent service exception
5. soft / Hardware degradation scheme failed
6. Message queue backlog
99. Problem cases
1. A pressure measurement ,CPU Fill it up directly
- Solution steps
1. top Check that pid Occupy CPU Higher
2. top -H -p pid Look at this. pid Information
3. Pstack pid View stack information
4. Trace -p pid View the corresponding stack information code , Specifically analyze which codes occupy CPU - Location problem
1. Code logic problems
Synchronous resolution interface , Match the returned content in a regular way , Because the returned content is too large , Lead to CPU soaring
2. A pressure measurement , System CPU And other indicators are normal , Occasionally, the request is very high
- Log data :
[Full GC(Ergonomics)[PS Young Gen: 944K -> 890K(2048K)][ParOldGen: 7129K->7129K(7168K)] 8074K->8019K(9216K), [Metaspace: 3357K->3357K(1056768K)] 0.1213761secs][Times: user = 2sces, sys = 0.00, real = 2secs] - Location problem :
1. JVM GC problem : Full GC Stop the world - resolvent
1. Reduce FullGC Time , Decrease in the elderly generation
3. A pressure measurement , CPU/ Memory / The network is good , But the response takes a long time , Monitor disk view IO abnormal , The trace discovery log level is Debug
- Location problem :
A lot of log printing is a drag on performance - resolvent :
Set the log as Info Level
4. A pressure measurement , CPU/ Memory / The Internet / Disk index is good , But the response takes a long time , see Nginx journal , Find out request_time( Full interaction time ) A long , but upstream_response_time(Nginx Create a request to the back end ) The actual time is short
- Possible problems :
1. The load of the generator is high , Unable to process connection to backend ;
2. The network environment of the generating machine is quite different from that of the pressed machine ; - terms of settlement :
1. Shut down other services you don't need , Reduce the pressure generating machine load ;
2. Keep the network environment of the generating machine consistent with that of the pressed machine ;
5. A pressure measurement , The same number of concurrent paths , Good early performance , Post database CPU soaring
- Possible problems :
1. Generate large amounts of level data , Data growth leads to performance loss ;
2. The pressure measurement data is unreasonable , This causes the same device to be associated with multiple users , There are no restrictions on the service in Inquire about ;
3. Unreasonable paging , Number of pages not done limit, This leads to full query of new data in the database ;
6. A certain stability , A lot of concurrency , Good early performance , Shard caching simulates a large number of database penetrations after a single point of cache failure
- Possible problems
1. Cache unreasonable fragmentation strategy , Use the mode of division , Cause a large number of caches to expire at the same time
2. Unreasonable load balancing algorithm - resolvent :
1. Uniformity Hash Solve the cache problem
7. A certain stability , If HTTP The inlet flow is only 100% QPS, But downstream RPC Hang up
- Problem location
Medical list data , for Loop call downstream to solve , Resulting in a request hundreds of times larger - Solution :
Use batch The interface reduces pressure ( It may bring hidden functional problems )
边栏推荐
- Acquisition of Lai data, NPP data, GPP data and vegetation coverage data
- Soil type, soil texture, soil nutrient and change data, soil organic matter, soil pH, soil nitrogen, phosphorus and potassium
- How to deploy dolphin scheduler 1.3.1 on cdh5
- Static keyword and inheritance, polymorphic and special classes
- Introduction to MMS memory optimization of Hisilicon MPP service
- Platform of ASoC framework driven by alsa
- Parallélisation de l'entraînement accéléré TF. Données. Générateur de données
- Difference between thread and task
- Serial port oscilloscope_ port_ Setup of plotter secondary development environment (including QT setup)
- ESP8266 Arduino OLED
猜你喜欢

Detailed explanation of data envelopment analysis (DEA) (taking the 8th Ningxia provincial competition as an example)

Computer network connected but unable to access the Internet

Chrome is amazingly fast, fixing 40 vulnerabilities in less than 30 days

4.3 simulate browser operation and page waiting (display waiting and implicit waiting, handle)

Matlab: halftone and dither conversion

How to count the total length of roads in the region and draw data histogram

Some problems of Qinglong panel

Acquisition of Lai data, NPP data, GPP data and vegetation coverage data

How to quickly reference uview UL in uniapp, and introduce and use uviewui in uni app

Detailed analysis of the 2021 central China Cup Title A (color selection of mosaic tiles)
随机推荐
When the build When gradle does not load the dependencies, and you need to add a download path in libraries, the path in gradle is not a direct downloadable path
How to clear floating, and how does it work?
[cjson] precautions for root node
60. points of N dice
Set common methods
Can‘t find a suitable configuration file in this directory or any parent. Error reporting and resolution
JS to determine whether the tags of multiple classes are empty
Platform of ASoC framework driven by alsa
org. apache. ibatis. binding. BindingException: Invalid bound statement (not found)
[backtracking] backtracking method to solve combinatorial problems
Calculation method notes for personal use
WiFi smartconfig implementation
Sv806 QT UI development
The server time zone value ‘Ö Ð¹ ú±ê ×¼ ʱ ¼ ä‘ is unrecognized or represents more than one time zone. You
[backtracking method] backtracking method to solve the problem of Full Permutation
[GIS tutorial] land use transfer matrix
44. a digit in a sequence of digits
38. arrangement of strings
加速訓練之並行化 tf.data.Dataset 生成器
ShanMeng and Beijing Adoption Day start NFT digital collection public offering