当前位置:网站首页>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
边栏推荐
- Redis configuration files and new data types
- The realization of QT the flipping effect of QQ weather forecast window
- Docker安装Mysql8和sqlyong连接报错2058的解决方法[随笔记录]
- Mysql中 begin..end使用遇到的坑
- 浅谈 JMeter 运行原理
- Redis的配置文件及新数据类型
- 解决numpy.core._exceptions.UFuncTypeError: ufunc ‘add‘ did not contain a loop with signature matchin问题
- [MySQL] MySQL installation and configuration
- Tencent two sides: @bean and @component are used on the same class. What happens?
- 【驚了】迅雷下載速度竟然比不上虛擬機中的下載速度
猜你喜欢

MySQL built-in functions

Browser plays RTSP video based on nodejs

ECDSA signature verification in crypt

Redis installation on Linux system
![[yitianxue awk] regular matching](/img/a6/608ec8d0808dfae04d19dfeea66399.png)
[yitianxue awk] regular matching

机器学习笔记 - 自相关和偏自相关简介

Efficient elliptic curve point addition and multiplication in scrypt
![[one day learning awk] use of built-in variables](/img/5b/bc1b91804e03dcfd3fe7eae8084eb4.png)
[one day learning awk] use of built-in variables

Redis-緩存問題

Instructions for legend use in SuperMap iclient3d 11i for cesium 3D scene
随机推荐
Charles break point modify request data & response data
Redis - problèmes de cache
Substrate 源码追新导读: 修复BEEFY的gossip引擎内存泄漏问题, 智能合约删除队列优化
【OpenGL】OpenGL Examples
Spatiotemporal prediction 2-gcn_ LSTM
Swagger2 automatically generates API documents
论文解读(AGC)《Attributed Graph Clustering via Adaptive Graph Convolution》
[MySQL] MySQL installation and configuration
JMeter之性能测试流程及性能测试关注点
Introduction to new features of ES6
[one day learning awk] array usage
Shell编程概述
MATLAB小技巧(22)矩阵分析--逐步回归
【 surprise】 la vitesse de téléchargement de Thunderbolt n'est pas aussi rapide que celle de la machine virtuelle
Introduction to the novelty of substrate source code: comprehensive update of Boca system Boca weight calculation, optimization and adjustment of governance version 2.0
Commands for redis basic operations
Introduction to the novelty of substrat source code: indexing of call calls and fully completing the materialization of storage layer
Why should offline stores do new retail?
Questionnaire star questionnaire packet capturing analysis
Splitting e-commerce systems into micro services