每个服务器浏览器模拟的负载测试工具和并发连接 [英] Load testing tools and concurrent connections per server browser simulation

查看:343
本文介绍了每个服务器浏览器模拟的负载测试工具和并发连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现代浏览器对每个服务器使用不同数量的连接,如

Modern browsers use different amount of connections per server like described here. It's quite usual that there is well over 100 recources to download in modern web pages. Especially when the servers are located far away from end user, this can cause big performance problems.

我对负载测试工具(LoadRunner和JMeter)有不好的经验,因为这些工具似乎无法正确模拟现代Web浏览器.我知道JMeter中有使用并发池"设置,您可以在LR中模拟不同的浏览器,但是您的经验是什么,它们真的像它们那样工作吗?根据此博客帖子至少JMeter有一些问题.

I've had bad experiences with load testing tools (LoadRunner and JMeter) because those tools doesn't seem to simulate modern web browsers correctly. I know there is "Use concurrent pool" setting in JMeter and you can simulate different browsers in LR, but what is your experience, are those really working like they should? According to this blog post at least JMeter has some problems.

我知道这些负载测试工具(LR,JMeter)的主要目的是测试服务器端,但是我认为这仍然是一个很大的问题.

I know that the main purpose of these load testing tools (LR, JMeter) is to test server side but I think this is still a quite big issue.

推荐答案

我不能说JMeter,但是在LoadRunner中,我们模拟并发连接的数量,使其与所选浏览器尽可能接近.您可以在运行的重播日志中查看使用的并发连接的最大数量,例如:

I cannot say about JMeter but in LoadRunner we simulate the number of concurrent connection as closely as possible to the selected browser. You can see the maximum number of cocurrent connections that were used in the replay log of your run, for example:

Maximum number of concurrent connections per server: 6 [MsgId: MMSG-26000]

我们有一些预设,这些预设会受到您选择的用户代理的影响,但是此并发连接数会在记录过程中更新(即记录会分析您使用的实际并发连接数并更改预设值).

We have some presets which are affected by the user agent you selected but this number of cuncurrent connections is updated during recording (i.e. recording will analyze the number of actual concurrent connection you used and change the preset value).

如果这还不够,您可以通过以下步骤手动更改允许的并发连接数:

If this is not enough for you, you can manually change the number of concurrent allowed connections by using the following steps:

web_set_sockets_option(MAX_CONNECTIONS_PER_HOST,10); web_set_sockets_option(MAX_TOTAL_CONNECTIONS ,60);

web_set_sockets_option("MAX_CONNECTIONS_PER_HOST","10"); web_set_sockets_option("MAX_TOTAL_CONNECTIONS ","60");

希望这会有所帮助.

这篇关于每个服务器浏览器模拟的负载测试工具和并发连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆