当前位置:网站首页>Problems and analysis in JMeter performance testing. How many problems have you encountered?
Problems and analysis in JMeter performance testing. How many problems have you encountered?
2022-06-30 12:46:00 【Full stack programmer webmaster】
Common performance test analyse
1、 System resource problems
CPU/ Memory / disk / The Internet ...
2、 Language / Code :
JVM/PHP-fpm ...etc
3、 Frame question :
Sprint Boot / Baidu RPC...
Single point of service performance problems
1、CPU load
2、 Memory leak
3、 disk IO
4、 The Internet IO
5、JAVA Full GC
6、TCP The number of connections
7、 The worker thread is full
.....
Case study 1: A stress test , Server side CPU Soar to full ,CPU Computational
TOP -H -p pid
Pstack pid
Trace -p pid
Code logic problems :
Synchronous resolution interface , Match the returned content in a regular way , But because the returned content is too large , Lead to CPU soaring . Regular , Big data JSON serialize / Deserialization
In addition, the deadlock problem can be tuned in a similar way
CPU Not high , But the service response is time-consuming , Request to pile up ;
Case study 2: A stress test , System CPU And other indicators are normal , However, occasional intermittent time requests are particularly time-consuming
JVM GC problem :
Full GC Stop the world
Reduce Full GC Time , Decrease in the elderly generation
Case study 3: A stress test ,php Program ,php-fpm Memory growth ,OOM Cause the service to hang up
Check the cause , Using a third party so Plug in JSON analysis , But a third party so The plug-in has a memory leak problem .
Max-request,fast-cgi Restart after fixing the number of requests
Case study 4: A pressure measurement ,CPU/ Memory / The Internet And other indicators performed well , But the response takes a long time
Monitor disk view IO abnormal , The trace discovery log level is set to Debug, A lot of log printing is a drag on performance
Synchronous log , May be a potential performance killer
Case study 5: A stress test ,CUP/ Memory / The Internet / disk All indicators performed well , But the response time is very long
see Nginx journal , Find out request_time longer , however upstream_response_time Actually short .
Case study 6: A pressure measurement , The same concurrency TPS, But the early performance is good , Post database CPU soaring
Pressure measurement will generate a large amount of data , Data growth will lead to loss of performance
The pressure measurement data is unreasonable , This causes the unified device to associate multiple users , There are no restrictions on the server in Inquire about
Unreasonable paging , No coconut tree limit, As a result, all the newly added data in the database will be queried
Case study 7: A stability test , Big concurrent TPS, Good early performance , Slice cache , A large number of database penetrations are simulated at a single point of cache failure
Cache unreasonable fragmentation strategy , Use division mode . Cause a large number of cache unified time invalidation .
Unreasonable load balancing algorithms will have similar problems .
The consistency of the HASH Fix this cache problem
Case study 8: A stability test , If HTTP The inlet flow is only 100% QPS, But downstream RPC Service gossip
List of merchants ,for Loop call downstream to solve , Resulting in a request hundreds of times larger .
Use Batch The interface reduces pressure ,Batch Interfaces may bring hidden functional problems
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/100683.html Link to the original text :https://javaforall.cn
边栏推荐
- FlinkSQL自定义UDTF使用的四种方式
- 60 个神级 VS Code 插件!!
- Qt读写Excel--QXlsx工作表显示/隐藏状态设置4
- 【一天学awk】基础中的基础
- JMeter性能测试之相关术语及性能测试通过标准
- 黑马笔记---List系列集合与泛型
- How to select an OLAP database engine?
- SuperMap 3D SDKs_ Unity plug-in development - connect data services for SQL queries
- FFMpeg AVBufferPool 的理解与掌握
- 黑马笔记---集合(Collection的常用方法与遍历方式)
猜你喜欢
【300+精选大厂面试题持续分享】大数据运维尖刀面试题专栏(二)
21. Notes on WPF binding
Today in history: Microsoft acquires PowerPoint developers; SGI and MIPS merge
Redis的配置文件及新数据类型
Shell编程概述
Why should offline stores do new retail?
MySQL composite query
【一天学awk】内置变量的使用
Wechat launched the picture big bang function; Apple's self-developed 5g chip may have failed; Microsoft solves the bug that causes edge to stop responding | geek headlines
QT implementation dynamic navigation bar
随机推荐
【一天学awk】运算符
【惊了】迅雷下载速度竟然比不上虚拟机中的下载速度
SuperMap iclient3d for webgl loading TMS tiles
After the market value evaporated by 65billion yuan, the "mask king" made steady medical treatment and focused on condoms
[one day learning awk] array usage
Solve numpy core._ exceptions. Ufunctypeerror: UFUNC 'Add' did not contain a loop with signature matching
Substrate 源码追新导读: 5月中旬: Uniques NFT模块和Nomination Pool
Qt中的数据库使用
电机控制park变换公式推导
Swagger2 automatically generates API documents
Q-learning notes
[one day learning awk] Fundamentals
7 lightweight and easy-to-use tools to relieve pressure and improve efficiency for developers, and help enterprises' agile cloud launch | wonderful review of techo day
[learn awk in one day] operator
Introduction to the novelty of substrate source code: comprehensive update of Boca system Boca weight calculation, optimization and adjustment of governance version 2.0
QT MSVC installation and commissioning
Flink SQL console, group not recognized_ Concat function?
Four ways for flinksql to customize udtf
90. (cesium chapter) cesium high level listening events
【目标跟踪】|pytracking 配置 win 编译prroi_pool.pyd