当前位置:网站首页>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
边栏推荐
- Solve the problem that the server cannot be connected via SSH during reinstallation
- MySQL composite query
- Three ways for flinksql to customize udaf
- Spatiotemporal prediction 2-gcn_ LSTM
- Qt读写Excel--QXlsx工作表显示/隐藏状态设置4
- How to use AI technology to optimize the independent station customer service system? Listen to the experts!
- Q-learning notes
- Double dqn notes
- c# 怎样能写个sql的解析器
- Shell编程概述
猜你喜欢

Google refutes rumors and gives up tensorflow. It's still alive!

Visual Studio配置Qt并通过NSIS实现项目打包

Browser plays RTSP video based on nodejs

QT implementation dynamic navigation bar

Lichuang EDA learning notes 10 common connector component identification and passive buzzer driving circuit

“\“id\“ contains an invalid value“
![[one day learning awk] Fundamentals](/img/09/a3eb03066eb063bd8594065cdce0aa.png)
[one day learning awk] Fundamentals

Redis - problèmes de cache

SuperMap 3D SDKs_ Unity plug-in development - connect data services for SQL queries

黑马笔记---包装类,正则表达式,Arrays类
随机推荐
Docker installation of mysql8 and sqlyong connection error 2058 solution [jottings]
Solve the problem that the server cannot be connected via SSH during reinstallation
Today in history: Microsoft acquires PowerPoint developers; SGI and MIPS merge
【 surprise】 la vitesse de téléchargement de Thunderbolt n'est pas aussi rapide que celle de la machine virtuelle
黑马笔记---List系列集合与泛型
【一天学awk】内置变量的使用
Tronapi-波场接口-PHP版本--附接口文档-基于ThinkPHP5封装-源码无加密-可二开-作者详细指导-2022年6月28日11:49:56
FlinkSQL自定义UDAF使用的三种方式
Docker安装Mysql8和sqlyong连接报错2058的解决方法[随笔记录]
NoSQL - redis configuration and optimization
Shell编程概述
How to solve cross domain problems
Flink sql控制台,不识别group_concat函数吗?
Mysql中 begin..end使用遇到的坑
力扣之螺旋矩阵,一起旋转起来(都能看懂)
Tencent two sides: @bean and @component are used on the same class. What happens?
Q-learning notes
Qt中的事件处理
Flink SQL console, group not recognized_ Concat function?
【惊了】迅雷下载速度竟然比不上虚拟机中的下载速度