所以我的需求是在虚拟macine.so中运行90个并发用户,同时执行多个场景(15个场景) 30分钟,我使用的一些线程包括并发线程组和普通线程组。
现在我的问题是1)在我执行了所有15个场景后,我对每个场景的最大响应显示得非常高(>40秒)。有没有什么建议来降低这种高最大响应?
2)其中一个场景是提交web表单,如果只提交一个表单是没有问题的,但是在90个并发用户执行过程中,一些提交web表单会得到500错误代码。这个错误是因为我使用循环来实现30分钟的持续时间吗?
发布于 2021-11-29 10:51:46
- 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)的见解
https://stackoverflow.com/questions/70152917
复制相似问题