jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manish Chakravarty" <manishch...@gmail.com>
Subject Re: JMeter remote/distributed testing not working; No error message in log
Date Wed, 25 Jun 2008 05:18:47 GMT
On Wed, Jun 25, 2008 at 1:30 AM, sebb <sebbaz@gmail.com> wrote:

> On 24/06/2008, Manish Chakravarty <manishchaks@gmail.com> wrote:
> > Hello All,
> >
> >  I am trying to do remote testing ; with two machines (as a learning
> > experience )
> >
> >  The machines are on the same subnet and are as follows:
> >  sh6 => jmeter server
> >  sh7 => jmeter client
> >
> >  On sh6 I start the jmeter server from the command line
> >  On sh7 i start the jmeter client as follows:
> >
> >  root@sh7:~# jakarta-jmeter-2.3.1/bin/jmeter -n -r -t TestFile.jmx -l
> > logremote.jtl
> >  (I have already configured sh7's jmeter.properties and pointed it to the
> IP
> > address of sh6 )
> >
>
> Current version is 2.3.2
>
> >  I see the following output in the console:
> >  Created the tree successfully
> >  Configuring remote engine for 67.207.142.28
> >  Starting remote engines
> >  Starting the test @ Tue Jun 24 19:24:53 UTC 2008 (1214335493204)
> >  Remote engines have been started
> >
> >
> >  on sh6 (the server) , I see the following output:
> >
> >  root@sh6:~# tail jmeter-server.log
> >  2008/06/24 19:14:30 INFO  - jmeter.JMeter: JMeter  Locale=English
> (United
> > States)
> >  2008/06/24 19:14:30 INFO  - jmeter.JMeter:
> > JMeterHome=/root/jakarta-jmeter-2.3.1
> >  2008/06/24 19:14:30 INFO  - jmeter.JMeter: user.dir  =/root
> >  2008/06/24 19:14:30 INFO  - jmeter.JMeter: PWD       =/root
> >  2008/06/24 19:14:30 INFO  -
> > jmeter.engine.RemoteJMeterEngineImpl: Starting backing
> > engine on 1099
> >  2008/06/24 19:14:30 INFO  -
> > jmeter.engine.RemoteJMeterEngineImpl: Creating RMI registry
> > (server.rmi.create=true)
> >  2008/06/24 19:14:30 INFO  -
> > jmeter.engine.RemoteJMeterEngineImpl: Creating JMeter
> > engine on host sh6
> >  2008/06/24 19:14:30 INFO  -
> > jmeter.engine.StandardJMeterEngine: Listeners will be
> > started after enabling running version
> >  2008/06/24 19:14:30 INFO  -
> > jmeter.engine.StandardJMeterEngine: To revert to the
> > earlier behaviour, define
> > jmeterengine.startlistenerslater=false
> >  2008/06/24 19:14:30 INFO  -
> > jmeter.engine.RemoteJMeterEngineImpl: Bound to registry on
> > port 1099
> >
> >
> >  After this /nothing/ seems to happen. I see Java utilizing any CPU.
> >  To ensure that something is running on sh6 I do the following:
> >  root@sh6:~# ps -ef | grep java
> >  root     27653 27651  0 18:45 pts/0    00:00:00 java -server -Xms256m
> > -Xmx256m -XX:NewSize=128m -XX:MaxNewSize=128m -XX:MaxTenuringThreshold=2
> > -Dsun.rmi.dgc.client.gcInterval=600000
> > -Dsun.rmi.dgc.server.gcInterval=600000 -XX:PermSize=64m
> > -XX:MaxPermSize=64m -jar
> > jakarta-jmeter-2.3.1/bin/ApacheJMeter.jar
> > -Dserver_port=1099 -s -j jmeter-server.log
> >
> >  This clearly shows that the server is listening on port 1099.
> >
> >  A telnet to port 1099 on sh6 confirms that it is indeed open.
> >
> >  I wait for a long time and nothing happens.
> >  Am I doing something wrong? Why is the test not running?
> >
> >  Any help on this topic would be very useful!
>
> What does the client jmeter log show?



The client JMeter log shows this:
2008/06/24 19:24:52 INFO  - jmeter.util.JMeterUtils: Setting Locale to
en_US
2008/06/24 19:24:52 INFO  - jmeter.JMeter: Loading user properties from:
/root/jakarta-jmeter-2.3.1/bin/user.properties
2008/06/24 19:24:52 INFO  - jmeter.JMeter: Loading system properties from:
/root/jakarta-jmeter-2.3.1/bin/system.properties
2008/06/24 19:24:52 INFO  - jmeter.JMeter: Copyright (c) 1998-2007 The
Apache Software Foundation
2008/06/24 19:24:52 INFO  - jmeter.JMeter: Version 2.3.1
2008/06/24 19:24:52 INFO  - jmeter.JMeter: java.version=1.6.0_06
2008/06/24 19:24:52 INFO  - jmeter.JMeter: os.name=Linux
2008/06/24 19:24:52 INFO  - jmeter.JMeter: os.arch=amd64
2008/06/24 19:24:52 INFO  - jmeter.JMeter: os.version=2.6.18-xen
2008/06/24 19:24:52 INFO  - jmeter.JMeter: file.encoding=ANSI_X3.4-1968
2008/06/24 19:24:52 INFO  - jmeter.JMeter: Default Locale=English (United
States)
2008/06/24 19:24:52 INFO  - jmeter.JMeter: JMeter  Locale=English (United
States)
2008/06/24 19:24:52 INFO  - jmeter.JMeter:
JMeterHome=/root/jakarta-jmeter-2.3.1
2008/06/24 19:24:52 INFO  - jmeter.JMeter: user.dir  =/root
2008/06/24 19:24:52 INFO  - jmeter.JMeter: PWD       =/root
2008/06/24 19:24:52 INFO  - jmeter.services.FileServer: Default base=/root
2008/06/24 19:24:52 INFO  - jmeter.services.FileServer: Set new base=/root
2008/06/24 19:24:52 INFO  - jmeter.JMeter: Loading file:
joyent-testing-onlyHtml.jmx
2008/06/24 19:24:52 INFO  - jmeter.save.SaveService: Testplan (JMX) version:
2.2. Testlog (JTL) version: 2.2
2008/06/24 19:24:52 INFO  - jmeter.save.SaveService: Using SaveService
properties file encoding UTF-8
2008/06/24 19:24:52 INFO  - jmeter.save.SaveService: Using SaveService
properties file version 594567
2008/06/24 19:24:52 INFO  - jmeter.samplers.SampleResult: Note: Sample
TimeStamps are START times
2008/06/24 19:24:52 INFO  - jmeter.samplers.SampleResult:
sampleresult.default.encoding is set to ISO-8859-1
2008/06/24 19:24:52 INFO  - jmeter.save.SaveService: Using SaveService
properties version 2.0
2008/06/24 19:24:52 INFO  - jmeter.save.SaveService: All converter versions
present and correct
2008/06/24 19:24:52 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase:
Cannot find .className property for htmlParser, using default
2008/06/24 19:24:52 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase:
Parser for text/html is
2008/06/24 19:24:52 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase:
Parser for application/xhtml+xml is
2008/06/24 19:24:52 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase:
Parser for application/xml is
2008/06/24 19:24:52 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase:
Parser for text/xml is
2008/06/24 19:24:52 INFO  - jmeter.protocol.http.sampler.HTTPSamplerBase:
Parser for text/vnd.wap.wml is
org.apache.jmeter.protocol.http.parser.RegexpHTMLParser
2008/06/24 19:24:52 INFO  - jmeter.protocol.http.sampler.HTTPSampler:
Maximum connection retries = 10
2008/06/24 19:24:53 INFO  - jmeter.engine.ClientJMeterEngine: Sending
properties {}
2008/06/24 19:24:53 WARN  - jmeter.engine.ClientJMeterEngine: Could not set
properties: java.rmi.ConnectException: Connection refused to host: 127.0.0.1;
nested exception is:
java.net.ConnectException: Connection refused
2008/06/24 19:24:53 INFO  - jmeter.engine.ClientJMeterEngine: about to run
remote test
2008/06/24 19:24:53 INFO  - jmeter.engine.ClientJMeterEngine: done
initiating run command
2008/06/24 19:24:53 INFO  - jmeter.engine.ClientJMeterEngine: running
clientengine run method
2008/06/24 19:24:53 INFO  - jmeter.engine.ConvertListeners: num threads =
10
2008/06/24 19:24:53 INFO  - jmeter.samplers.StandardSampleSender: Using
Standard Remote Sampler for this test run
2008/06/24 19:24:53 INFO  - jmeter.samplers.StandardSampleSender: Using
Standard Remote Sampler for this test run
2008/06/24 19:24:53 INFO  - jmeter.samplers.StandardSampleSender: Using
Standard Remote Sampler for this test run
2008/06/24 19:24:53 INFO  - jmeter.samplers.StandardSampleSender: Using
Standard Remote Sampler for this test run
2008/06/24 19:24:53 ERROR - jmeter.engine.ClientJMeterEngine:
 java.rmi.ConnectException: Connection refused to host: 127.0.0.1; nested
exception is:
java.net.ConnectException: Connection refused
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:601)
at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:110)
at org.apache.jmeter.engine.RemoteJMeterEngineImpl_Stub.setHost(Unknown
Source)
at
org.apache.jmeter.engine.ClientJMeterEngine.run(ClientJMeterEngine.java:124)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
at java.net.Socket.connect(Socket.java:519)
at java.net.Socket.connect(Socket.java:469)
at java.net.Socket.<init>(Socket.java:366)
at java.net.Socket.<init>(Socket.java:180)
at
sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
at
sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:595)
... 6 more


I am baffled because I have set the jmeter.properties to point to the other
host. Why is it picking up 127.0.0.1 ?

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message