Jmeter在其他环境中不起作用,尽管它在本地工作

时间:2010-09-09 15:35:06

标签: logging jmeter

您好我已经配置了.jmx来处理执行简单http请求的线程组。

它在本地完美运行,但是当我将.jmx上传到亚马逊的另一台服务器时,它无效。

本地计算机和ec2服务器之间的差异: 本地

当安装jmeter时,

是ubuntu    作为sudo apt-get安装jmeter。和    版本 2.3.4

jmeter.log就像这样:

2010/09/09 11:17:05 INFO  - jmeter.util.JMeterUtils: Setting Locale to es_AR 
2010/09/09 11:17:05 WARN  - jmeter.util.JMeterUtils: Could not find resources for 'es_AR', using 'es' 
2010/09/09 11:17:05 INFO  - jmeter.JMeter: Copyright (c) 1998-2009 The Apache Software Foundation 
2010/09/09 11:17:05 INFO  - jmeter.JMeter: Version 2.3.4 
2010/09/09 11:17:05 INFO  - jmeter.JMeter: java.version=1.6.0_18 
2010/09/09 11:17:05 INFO  - jmeter.JMeter: java.vm.name=OpenJDK Server VM 
2010/09/09 11:17:05 INFO  - jmeter.JMeter: os.name=Linux 
2010/09/09 11:17:05 INFO  - jmeter.JMeter: os.arch=i386 
2010/09/09 11:17:05 INFO  - jmeter.JMeter: os.version=2.6.32-24-generic 
2010/09/09 11:17:05 INFO  - jmeter.JMeter: file.encoding=UTF-8 
2010/09/09 11:17:05 INFO  - jmeter.JMeter: Default Locale=español (Argentina) 
2010/09/09 11:17:05 INFO  - jmeter.JMeter: JMeter  Locale=español (Argentina) 
2010/09/09 11:17:05 INFO  - jmeter.JMeter: JMeterHome=/usr/share/jmeter 
2010/09/09 11:17:05 INFO  - jmeter.JMeter: user.dir  =/home/dnoseda/Dropbox/jmeter 
2010/09/09 11:17:05 INFO  - jmeter.JMeter: PWD       =/home/dnoseda/Dropbox/jmeter 
2010/09/09 11:17:05 INFO  - jmeter.JMeter: IP: 127.0.1.1 Name: ml FullName: ml 
2010/09/09 11:17:06 ERROR - jmeter.protocol.http.sampler.HTTPSampler: readRespo

继续前进。

服务器

jmeter被下载并解压缩。版本为版本2.3.4

日志是这样的:

2010/09/09 11:31:47 INFO  - jmeter.threads.JMeterThread: jmeterthread.startearlier=true (see jmeter.properties) 
2010/09/09 11:31:47 INFO  - jmeter.threads.JMeterThread: Running PostProcessors in forward order 
2010/09/09 11:31:47 INFO  - jmeter.threads.JMeterThread: Thread started: Usuarios 1-1 
2010/09/09 11:31:47 INFO  - jmeter.engine.StandardJMeterEngine: All threads have been started 
2010/09/09 11:31:47 INFO  - jmeter.threads.JMeterThread: Thread started: Usuarios 1-2 
2010/09/09 11:31:47 INFO  - jmeter.threads.JMeterThread: Thread started: Usuarios 1-3 
2010/09/09 11:31:47 INFO  - jmeter.threads.JMeterThread: Thread started: Usuarios 1-4 
2010/09/09 11:31:47 INFO  - jmeter.protocol.http.parser.HtmlParserHTMLParser: Using htmlparser version: 2.0 (Release Build Sep 17, 2006) 
2010/09/09 11:31:47 INFO  - jmeter.protocol.http.parser.HTMLParser: Created org.apache.jmeter.protocol.http.parser.HtmlParserHTMLParser 
2010/09/09 11:31:47 INFO  - jmeter.threads.JMeterThread: Thread started: Usuarios 1-5 

然后停在那里。

你能给出任何指针吗?也许某种方式调试ec2服务器中的jmeter?

提前致谢

1 个答案:

答案 0 :(得分:0)

您是否在服务器上运行了正确的java sdk版本?

我之前没有设置Jmeter从服务器运行,但下面的文章是如何在新的Ubuntu 6.06服务器(Dapper Drake)上安装和运行Jakarta JMeter:

http://www.das-werkstatt.com/forum/werkstatt/viewtopic.php?f=24&t=396