Hi,

I'm trying to start a distibuted test, using 4 remote clients to put load on a
Tomcat server. The test script works brilliantly when run on a single machine,
however it will not start whenever I try to run the test remotely.

I added the remote hosts to the jmeter.properties on the controlling client, as
follows:
remote_hosts=127.0.0.1,192.168.2.144,192.168.2.145,192.168.2.146

I then start jmeter-server on each of those machines (including localhost), and
then run jmeter. BTW does it matter if you start jmeter before a jmeter-server?
I then try to start a test on a single remote machine (e.g. Run -> Remote Start
-> 192.168.2.144), however nothing happens. After looking in the jmeter.log
file for the GUI I see the following output / stacktrace:

2006/02/16 12:26:02 INFO  - jmeter.util.JMeterUtils: Setting Locale to en_GB
2006/02/16 12:26:02 INFO  - jmeter.JMeter: Version 2.1.1
2006/02/16 12:26:02 INFO  - jmeter.JMeter: java.version=1.4.2_05
2006/02/16 12:26:02 INFO  - jmeter.JMeter: Locale=English (United Kingdom)
2006/02/16 12:26:02 INFO  - jmeter.JMeter: Copyright (c) 1998-2005 The Apache
Software Foundation
2006/02/16 12:26:02 INFO  - jmeter.JMeter: Loaded icon properties from
org/apache/jmeter/images/icon.properties
2006/02/16 12:26:11 INFO  -
jmeter.protocol.http.sampler.AccessLogSamplerBeanInfo: Entered access log
sampler bean info
2006/02/16 12:26:11 INFO  -
jmeter.protocol.http.sampler.AccessLogSamplerBeanInfo: found parsers:
[org.apache.jmeter.protocol.http.util.accesslog.OrderPreservingLogParser,
org.apache.jmeter.protocol.http.util.accesslog.SharedTCLogParser,
org.apache.jmeter.protocol.http.util.accesslog.TCLogParser]
2006/02/16 12:26:12 INFO  -
jmeter.protocol.http.sampler.AccessLogSamplerBeanInfo: Got to end of access log
samper bean info init
2006/02/16 12:26:14 WARN  - jmeter.gui.util.MenuFactory: Missing jar? Could not
create org.apache.jmeter.visualizers.MailerVisualizer.
java.lang.NoClassDefFoundError: javax/mail/MessagingException
2006/02/16 12:26:15 INFO  - jmeter.samplers.SampleResult: Note: Sample
TimeStamps are END times
2006/02/16 12:26:15 INFO  - jmeter.samplers.SampleResult:
sampleresult.default.encoding is set to ISO-8859-1
2006/02/16 12:26:56 INFO  - jmeter.gui.action.Load: Loading file:
/home/tester/loadtest/jakarta-jmeter-2.1.1/myTest.jmx
2006/02/16 12:26:56 INFO  - jmeter.protocol.http.sampler.HTTPSampler2:
httpsampler2.basicauth=false
2006/02/16 12:26:56 INFO  - jmeter.save.SaveService: Using SaveService
properties file 1.7
2006/02/16 12:26:56 WARN  - jmeter.save.SaveService: Could not set up alias
WebServiceSampler java.lang.NoClassDefFoundError: javax/mail/MessagingException
2006/02/16 12:26:56 INFO  - jmeter.save.SaveService: All converter versions
present and correct
2006/02/16 12:30:14 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:567)
        at 
sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
        at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:101)
        at org.apache.jmeter.engine.RemoteJMeterEngineImpl_Stub.reset(Unknown 
Source)
        at
org.apache.jmeter.engine.ClientJMeterEngine.reset(ClientJMeterEngine.java:96)
        at 
org.apache.jmeter.gui.action.RemoteStart.doRemoteStart(RemoteStart.java:153)
        at 
org.apache.jmeter.gui.action.RemoteStart.doAction(RemoteStart.java:73)
        at
org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:76)
        at 
org.apache.jmeter.gui.action.ActionRouter.access$000(ActionRouter.java:44)
        at org.apache.jmeter.gui.action.ActionRouter$1.run(ActionRouter.java:61)
        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Caused by: java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
        at java.net.Socket.connect(Socket.java:452)
        at java.net.Socket.connect(Socket.java:402)
        at java.net.Socket.<init>(Socket.java:309)
        at java.net.Socket.<init>(Socket.java:124)
        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:562)
        ... 17 more

Why is it trying to connect to 127.0.0.1 when I tried to start a remote test on
a different machine (192.168.2.144)? Am I doing something wrong?

Thanks for any and all help!

~Gareth

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to