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

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

问题描述

我使用JMeter的负载测试。我经历和发现并发线程(用户),我们的网络服务器可以通过简单地增加我的分布式JMeter测试案例线程的#,并发射了试验处理的最大数量的锻炼。

然后 - 这让我吃惊,虽然最大数量可能是有用的,对的真正的的,我的网站实际上处理的平均用户数是我需要的测试卓有成效的数<。 / p>

下面是有关我们设置了几件:


  • 这是一个混合的.NET /经典ASP网站。在登录时,浏览器会话(与超时)在这两个为用户创建。

  • 每个会话超时60分钟后。

有没有使用这些信息的方式,IIS日志,性能计数器,和/或一些计算,这将帮助我确定并发用户的平均#我们处理对我们的生产基地?


解决方案

我可以在这里看到一对夫妇的选择。


  1. 使用性能监视器来获得当前的数字或有它记录所有的一天,并得到一个平均值。 ASP.NET有一个请求当前计数器。据此页面经典的ASP还具有目前的请求,但我从来没有用它自己。


  2. 运行通过日志分析器 IIS日志获取请求的总数和多久每个花。我在想,如果你知道有多少请求进来每小时多久每人拿了,你可以得到的有多少人同时运行的平均水平。


另外,请记住,并发用户是不太一样的服务器上的并发线程。原因之一,而像图像内容被下载多个线程将每个用户的活跃。在这之后,用户将在页面上几分钟,而服务器是空闲的。

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.

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:

  • This is a mixed .NET/Classic ASP site. Upon login, a browser session (with timeout) is created in both for the users.
  • Each session times out after 60 minutes.

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. 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.

  2. 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天全站免登陆