首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >JMeter TPS不一致,如TPS图所示

JMeter TPS不一致,如TPS图所示
EN

Stack Overflow用户
提问于 2019-12-30 22:27:22
回答 1查看 315关注 0票数 0

对50个并发用户运行测试。目标TPS : 10,但是TPS图以Z字形的方式显示结果,它不一致,而测试运行良好,没有任何错误。在整个测试过程中实现的TPS为8.1/秒

情况01)使用定时器常量定时器运行测试:5秒

情况02)仅使用终极线程组运行测试

EN

回答 1

Stack Overflow用户

发布于 2019-12-30 23:35:46

实际吞吐量取决于许多因素,主要有:

为了达到/保持目标吞吐量,

  1. JMeter应具有足够的操作余量。如果JMeter不能足够快地发送请求,即使应用程序没有过载,您也无法获得所需的TPS数量。确保遵循JMeter Best Practices,如果单个JMeter引擎无法处理您需要的负载,您将不得不考虑使用Distributed Testing
  2. 应用程序响应时间较长。给定50个并发用户和每秒10个请求的目标吞吐量,只有当应用程序响应时间小于或等于5秒时,才能实现这一点。如果应用程序响应时间更长-吞吐量将按比例降低。接下来的步骤是:

代码语言:javascript
运行
复制
- try increasing the number of threads (virtual users). It's better to switch to the [Concurrency Thread Group](https://jmeter-plugins.org/wiki/ConcurrencyThreadGroup/) and [Throughput Shaping Timer](https://jmeter-plugins.org/wiki/ThroughputShapingTimer/) combination as they can be [connected](https://jmeter-plugins.org/wiki/ConcurrencyThreadGroup/#Use-With-Throughput-Shaping-Timer-Feedback-Function) so Concurrency Thread Group would be able to add more threads if current amount is not enough in order to reach/maintain the desired throughput
- set up monitoring of your application using [JMeter PerfMon Plugin](https://jmeter-plugins.org/wiki/PerfMon/) and [profiling tools](https://en.wikipedia.org/wiki/List_of_performance_analysis_tools) to identify the bottleneck and determine the root cause of the application response time being above 5 seconds

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/59532412

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档