如何在负载/性能测试期间找到 IIS 模拟的平均并发用户数? [英] How can I find the average number of concurrent users for IIS to simulate during a load/performance test?

查看:24
本文介绍了如何在负载/性能测试期间找到 IIS 模拟的平均并发用户数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 JMeter 进行负载测试.我正在通过简单地增加分布式 JMeter 测试用例中的线程数量并启动测试来寻找我们的网络服务器可以处理的最大并发线程(用户)数.

I'm using JMeter for load testing. I'm going through and exercise of finding the max number of concurrent threads (users) that our webserver can handle by simply increasing the # of threads in my distributed JMeter test case, and firing off the test.

然后——让我震惊的是,虽然 MAX 数量可能有用,但我的网站实际平均处理的真实用户数量是我需要使测试富有成效的数量.

Then -- it struck me, that while the MAX number may be useful, the REAL number of users that my website actually handles on average is the number I need to make the test fruitful.

以下是有关我们设置的一些信息:

Here are a few pieces of information about our setup:

  • 这是一个混合的 .NET/Classic ASP 站点.登录后,会为用户创建浏览器会话(超时).
  • 每个会话在 60 分钟后超时.

有没有办法使用这些信息、IIS 日志、性能计数器和/或一些计算来帮助我确定我们在生产站点上处理的平均并发用户数?

Is there a way using this information, IIS logs, performance counters, and/or some calculation that will help me determine the average # of concurrent users we handle on our production site?

推荐答案

我可以在这里看到几个选项.

I can see a couple options here.

  1. 使用性能监视器获取当前数字或记录一整天并获取平均值.ASP.NET 有一个 Requests Current 计数器.根据此页面,经典 ASP 也有请求当前,但我自己从未使用过.

  1. Use Performance Monitor to get the current numbers or have it log all day and get an average. ASP.NET has a Requests Current counter. According to this page Classic ASP also has a Requests current, but I've never used it myself.

通过日志解析器运行 IIS 日志获取请求总数以及每个请求花费的时间.我在想,如果您知道每小时有多少请求以及每个请求花费了多长时间,您就可以获得并发运行的平均请求数.

Run the IIS logs through Log Parser to get the total number of requests and how long each took. I'm thinking that if you know how many requests come in each hour and how long each took, you can get an average of how many were running concurrently.

另外,请记住并发用户与服务器上的并发线程并不完全相同.一方面,在下载图像等内容时,每个用户将有多个线程处于活动状态.之后,当服务器空闲时,用户将在页面上停留几分钟.

Also, keep in mind that concurrent users isn't quite the same as concurrent threads on the server. For one, multiple threads will be active per user while content like images is being downloaded. And after that the user will be on the page for a few minutes while the server is idle.

这篇关于如何在负载/性能测试期间找到 IIS 模拟的平均并发用户数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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