对 asp.net 网站进行基准测试,我可以使用 jmeter 吗?

发布于 2024-08-14 06:43:42 字数 100 浏览 2 评论 0原文

看看 jmeter,据我所知,它是一个桌面应用程序,所以可以肯定地说我可以用它来对运行 asp.net 的 Windows 服务器进行基准测试吗?

还有其他推荐的工具吗?

just looking at jmeter, from what I can I see it is a desktop application, so is it safe to say I can use it to benchmark a windows server running asp.net?

any other recommended tools?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

回心转意 2024-08-21 06:43:42

是的,我成功地将 JMeter 与我的 ASP.NET(不是 MVC)网站结合使用。

这两个教程是天赐之物:

夜灵血窟げ 2024-08-21 06:43:42

我使用 JMeter 对我们的 ASP.NET MVC 网站进行压力测试。一旦您尝试过一次并知道如何使用该应用程序,这就像馅饼一样简单。

例如,我有一个 CSV 文件,用作动态搜索数据。然后我在 Jmeter 中创建了一个 HttpRequest 并传入我的 csv 数据。 (这是模拟我点击该 url 来获取我告诉使用的数据)。

我有一个 Jmeter 高斯计时器来模拟潮起潮落(随机化)对 url 的点击。

然后我最后说..

C:\Temp\jakarta-jmeter-2.3.4\bin\jmeter -n -t "C:\Users\Administrator\Desktop\JMeter Test Files\my_jmeter_config_file.jmx" -Dthreads=50 -Dloops=10 -Drampup=5

这意味着...循环10次。每个循环将包含 50 个线程……并且它会在 5 秒内构建多达 50 个线程。

所以是的,我用它。很好!

I use JMeter to stress test our ASP.NET MVC website. It's easy as pie, once u've tried it once and know how to use the application.

For example, i have a CSV file which I use as dynamic search data. I then created an HttpRequest thingy in Jmeter and pass in my csv data. (this is simulating me hitting that url for the data i tell to use).

I have a Jmeter Gaussian Timer to similate ebbs and flows (randomises) the hits to the url.

i then finally say ..

C:\Temp\jakarta-jmeter-2.3.4\bin\jmeter -n -t "C:\Users\Administrator\Desktop\JMeter Test Files\my_jmeter_config_file.jmx" -Dthreads=50 -Dloops=10 -Drampup=5

which means ... loop 10 time. each single loop will contain 50 threads ... and it builds up to 50 threads in 5 secs.

So yeah, i use it. it's good!

七分※倦醒 2024-08-21 06:43:42

我推荐 HP 的 httperf。因为它只是发送 http 请求,所以无论您正在测试的服务器如何,它都可以工作。不过你需要一台 Linux 机器来运行它。另一个流行的工具是Apache Benchmark (AB)。我不推荐它作为可用的最佳工具,但已经使用该工具执行了许多基准测试,因此更容易比较结果并得出结论。

Microsoft 提供各种其他工具用于测试,但使用并不广泛。

I recommend httperf from HP. As it just sends http requests it works regardless of the server you are testing on. You will need a linux machine to run it though. Another popular tool is Apache Benchmark (AB). I don't recommend it as the best tool available, but lots of benchmarks have been performed using this tool so it is easier to compare results and draw conclusions.

Microsoft offers various other tools for testing, but are not as widely used.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文