首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >提交循环表单提交时出现极高的最大响应和错误

提交循环表单提交时出现极高的最大响应和错误
EN

Stack Overflow用户
提问于 2021-11-29 10:14:08
回答 1查看 12关注 0票数 0

所以我的需求是在虚拟macine.so中运行90个并发用户,同时执行多个场景(15个场景) 30分钟,我使用的一些线程包括并发线程组和普通线程组。

现在我的问题是1)在我执行了所有15个场景后,我对每个场景的最大响应显示得非常高(>40秒)。有没有什么建议来降低这种高最大响应?

2)其中一个场景是提交web表单,如果只提交一个表单是没有问题的,但是在90个并发用户执行过程中,一些提交web表单会得到500错误代码。这个错误是因为我使用循环来实现30分钟的持续时间吗?

EN

回答 1

Stack Overflow用户

发布于 2021-11-29 10:51:46

  1. 为了缩短响应时间,您需要找到响应时间如此之长的原因,原因可能在:

代码语言:javascript
复制
- lack of resources like CPU, RAM, etc. - make sure to monitor resources consumption using i.e. [JMeter PerfMon Plugin](https://www.blazemeter.com/blog/how-monitor-your-server-health-performance-during-jmeter-load-test/)
- incorrect configuration of the middleware (application server, database, etc.), all these components need to be properly tuned for high loads, for example if you set maximum number of connections on the application server to 10 and you have 90 threads - the 80 threads will be queuing up waiting for the next available executor, the same applies to the database [connection pool](https://en.wikipedia.org/wiki/Connection_pool)
- use a [profiler tool](https://en.wikipedia.org/wiki/List_of_performance_analysis_tools) to inspect what's going on under the hood and why the slowest functions are that slow, it might be the case your application algorithms are not [efficient enough](https://en.wikipedia.org/wiki/Big_O_notation)

  1. 如果您的测试在单线程下成功,但在负载下失败-这肯定表明bottleneck,请尝试逐渐增加负载,看看应用程序可以支持多少用户而不会出现性能下降和/或抛出错误。HTTP Status codes 5xx指示服务器端错误,因此也值得查看您的应用程序日志以获得更多关于

的见解

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

https://stackoverflow.com/questions/70152917

复制
相关文章

相似问题

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