当前位置:网站首页>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 )
边栏推荐
- How to generate provincial data from county-level data in ArcGIS?
- Normalized vegetation index (NDVI) data, NPP data, GPP data, evapotranspiration data, vegetation type data, ecosystem type distribution data
- Quickly get PCA (principal component analysis) (principle code case)
- Computer network connected but unable to access the Internet
- Stm32f4 ll library multi-channel ADC
- Acquisition of Lai data, NPP data, GPP data and vegetation coverage data
- Overview of common classes
- Force/release learning and sorting in IC Verification (6) research on the influence of wire type signals
- Rv1109 lvgl UI development
- Minigui3 runs on Hisilicon hi3520d/hi3531 platform
猜你喜欢

The combined application of TOPSIS and fuzzy borde (taking the second Dawan District cup and the national championship as examples, it may cause misunderstanding, and the Dawan District cup will be up

Quickly get PCA (principal component analysis) (principle code case)
![[backtracking based on bit operation] queen n problem 2](/img/d3/25b2ba7c49ce0a9c1de26bc5c9497b.jpg)
[backtracking based on bit operation] queen n problem 2
![[cjson] precautions for root node](/img/6c/4462bc8126935f00a5c64f18de13ea.png)
[cjson] precautions for root node
![[getting to the bottom] five minutes to understand the combination evaluation model - fuzzy borde (taking the C question of the 2021 college students' numerical simulation national competition as an e](/img/2e/97310ec36aeb1fc1e9c82361141a36.jpg)
[getting to the bottom] five minutes to understand the combination evaluation model - fuzzy borde (taking the C question of the 2021 college students' numerical simulation national competition as an e

Yolov5 realizes road crack detection

1008 color classification

Surface net radiation flux data, solar radiation data, rainfall data, air temperature data, sunshine duration, water vapor pressure distribution, wind speed and direction data, surface temperature

It costs less than 30 yuan, but we still don't build it quickly - check the small knowledge of software application

Token based authentication
随机推荐
38. arrangement of strings
Calculation method notes for personal use
JS disable mobile sharing
Qinglong wool - Kaka
It costs less than 30 yuan, but we still don't build it quickly - check the small knowledge of software application
Layer sublayer assigns values to the page elements of the parent layer to achieve the effect of transferring values to the page of the parent layer
【cjson】根节点注意事项
Can‘t find a suitable configuration file in this directory or any parent. Error reporting and resolution
59 - II. Maximum value of the queue
[C language] realize string interception function
@Configurationproperties value cannot be injected
Save the object in redis, save the bean in redis hash, and attach the bean map interoperation tool class
Kwai opens a milestone activity for fans to record every achievement moment for creators
Nbiot module me3616 at command mqtt connecting thingsboard
Sword finger offer30 days re brush
File contains (regardless of suffix) Apache log remote file contains PHP encapsulated pseudo protocol:
Microsoft announces that it will discontinue support for older versions of visual studio
[GIS tutorial] ArcGIS for sunshine analysis (with exercise data download)
59 - I. maximum value of sliding window
加速訓練之並行化 tf.data.Dataset 生成器