原文:http://www.cnblogs.com/jackei/archive/2006/11/06/551921.html
这是对 JMeter 官方网站上一篇文章的翻译。
点击这里可以访问原文JMeterTroubleShooting。
check the log file. This is normally in the launch (i.e. bin) directory, and is called "JMeter.log".
查看 JMeter 的日志文件,通常这个日志文件在你启动 JMeter 的目录下,例如%JMeter_HOME%\bin 目录,文件名通常是 JMeter.log。(这个日志文件中的内容只是与JMeter 本身运行有关的日志信息,与脚本的执行没有直接关系,脚本执行的情况请查看 JMeter result 文件,扩展名为 .jtl——译者注)
check the JMeter documentation to ensure that the test script has been set up correctly
查看 JMeter 的文档并确认测试脚本的设置是正确的
check the JMeterFAQ.
查看 JMeter 官方网站上的 FAQ(常见问题列表)
check the mailing lists to see if anyone else has had the same or a similar problem
查看 JMeter 的用户邮件列表中是否别人已经遇到过跟你一样或者类似的问题(JMeter 是一个很受欢迎的开源性能测试工具,有很多人在使用它进行性能测试,所以很多问题都可以在邮件列表中找到答案。——译者注)
check Bugzilla - you might have hit a known bug, and there may be a workround documented in Bugzilla
查看 JMeter 官方网站的 Bugzilla(一个著名的缺陷跟踪管理系统——译者注)——你可能遇到了一个已知的bug,并且已经记录在 Bugzilla 中了。
try setting the logging level to DEBUG for some or all of the JMeter packages (details are in the JMeter.properties file)
尝试修改 JMeter 的日志级别为 DEBUG,以获得更多的有关 JMeter 运行的信息,来确认问题的原因。(修改 JMeter 日志级别请在 JMeter.properties 文件中搜索 log_level 并修改相应的选项——译者注)
If all the above fail to provide an answer, please read How To Ask Questions The Smart Way before posting a message on the the JMeter User mailing list.
如果上面这些都无法帮你解决你遇到的问题,请发送一个信息到 JMeter 的用户邮件列表——发送前请先看一下“如何聪明的提问 http://www.catb.org/~esr/faqs/smart-questions.html”。
以上内容主要为意译,同时尽量忠实于原文,如果大家发现译文有与原文原意相驳的地方,请给我留言,我会立即修改 ^_^
其他一些相关的链接:
JMeter Wiki (提供了一些很不错的文章的链接)
http://wiki.apache.org/jakarta-jmeter/
如何使用使用 JMeter 的邮件列表〔英文〕
http://jakarta.apache.org/site/mail.html
JMeter 用户手册〔英文,在线版〕
http://jakarta.apache.org/jmeter/usermanual/index.html
JMeter's BUG LIST
http://issues.apache.org/bugzilla/
理解 JMeter 聚合报告(Aggregate Report)
http://www.cnblogs.com/jackei/archive/2007/01/17/623166.html
使用Jmeter分布式测试:
原文:http://www.cnblogs.com/jackei/archive/2006/09/14/504638.html
作为一个纯 JAVA 的GUI应用,JMeter 对于CPU和内存的消耗还是很惊人的,所以当需要模拟数以千计的并发用户时,使用单台机器模拟所有的并发用户就有些力不从心,甚至还会引起JAVA内存溢出的错误。不过,JMeter 也可以像 LoadRunner 一样通过使用多台机器运行所谓的 Agent 来分担 Load Generator 自身的压力,并借此来获取更大的并发用户数。根据 JMeter官方文档的署名,你需要自己完成这个配置,不过不用担心,这将非常简单 ^_^
1. 在所有期望运行 JMeter 作为 Load Generator 的机器上安装 JMeter,并确定其中一台机器作为 Controller,其他的机器作为 Agent。然后运行所有 Agent 机器上的JMeter-server.bat文件——假定我们使用两台机器 192.168.0.1 和192.168.0.2 作为 Agent;
2. 在Controller 机器的 JMeter 安装目录下找到 bin 目录,再找到 JMeter.properties 这个文件,使用记事本或者其他文字编辑工具打开它;
3. 在打开的文件中查找“remote_hosts=”这个字符串,你可以找到这样一行“remote_hosts=127.0.0.1”。其中的127.0..0.1 表示运行 JMeter Agent 的机器,这里需要修改为“remote_hosts=192.168.0.1:1664,192.168.0.2:1664”——其中的 1664 为 JMeter 的 Controller 和 Agent之间进行通讯的默认 RMI 端口号;
4. 保存文件,并重新启动 Controller 机器上的 JMeter.bat,并进入 Run -> Remote Start 菜单项。看到啥了?^_^
转载于:https://blog.51cto.com/summerflowers/1841161