是JMeter的负载服务器影响我的结果吗? [英] Is the JMeter Load Server affecting my results?

查看:361
本文介绍了是JMeter的负载服务器影响我的结果吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是Amazon EC2实例(大),如使用1000线程负载服务器上运行一个JMeter测试。负载服务器CPU稳定在90%左右的利用率和内存是在70%左​​右。

I'm running a JMeter test using an amazon EC2 instance (large) as the load server using 1,000 threads. The load server CPU is steady at about 90% utilization and memory is at 70%.

有一个经验法则就在什么时候负载的服务器没有足够的资源(内存或CPU),这导致负载负载服务器本身的撞击测试结果?

Is there a rule of thumb regarding at what point does load server not have enough resources (memory or CPU) which causes the load on the load server itself to impact test results?

对于CPU,你会说90%? 95%99%? 至于内存,你会说90%? 95%99%?

Regarding CPU would you say 90%? 95% 99%? Regarding Memory would you say 90%? 95% 99%?

谢谢 奥弗

更新: 我问JMeter的官方邮件列表上,并得到了一些伟大的答案: <一href="http://jmeter.512774.n5.nabble.com/Is-my-load-server-causing-results-to-be-in-accurate-td5718385.html" rel="nofollow">http://jmeter.512774.n5.nabble.com/Is-my-load-server-causing-results-to-be-in-accurate-td5718385.html

Update: I asked on the official JMeter mailing list and received some great answers: http://jmeter.512774.n5.nabble.com/Is-my-load-server-causing-results-to-be-in-accurate-td5718385.html

推荐答案

这要看情况。

首先,如果你使用的JMeter只产生重负载的服务器上的,因为你用你的目标服务器上,如Tomcat的access.log服务器的日志文件,那么你可以驾驶你的JMeter的服务器给你不使用JMeter的结果80%的CPU利用率。更高的负载降低的过程之间切换线程清楚的能​​力。

First, if you use JMeter only to generate heavy load on a server an you not use the JMeter results because you use the server log files like tomcat access.log on your target server, then you can drive your JMeter server up to 80% CPU utilization. Higher load reduce the ability to switch between process and thread clearly.

第二,如果你需要的JMeter的结果进行分析,在你们768,16降低CPU利用率,40 - 50%,因为CPU使用率过高掺假的JMeter的结果。这种满足也Xceptance,XLT的母亲,像项目的JMeter的建议。高内存使用是没有问题的直接,你必须检查你的GC时间,因为GC掺假你的JMeter的结果。

Second, if you need the JMeter results for analysis, the you shoud reduce the CPU utilization to 40 - 50% because the high CPU usage adulterate your JMeter results. This meet also the recommendation of Xceptance, mother of XLT, a JMeter like project. High memory usage is not the problem directly, you have to check your GC times, because the GC adulterate your JMeter results.

提示:如果你把你的JMeter测试只是短期的HTTP请求,然后选择HTTPClient3.1作为HTTP请求的实现。该客户端是更快的产生较少的负荷小的HTTP请求(参见链接德国博客 Atlassian的博客)。

Hint: if you make only short HTTP request in your JMeter test, then select the HTTPClient3.1 as HTTP Request Implementation. This client is faster an produces less load for small HTTP Requests (see Links german Blog, Atlassian Blog).

这篇关于是JMeter的负载服务器影响我的结果吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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