Jmeter Remote Configuration

1,517 views
Skip to first unread message

madhavi...@gmail.com

unread,
Aug 19, 2013, 1:48:32 PM8/19/13
to maven-jmeter...@googlegroups.com
Hello,

I am trying to set up Jmeter Remote Configuration for my maven project.
I have the Client(master) sending the test to Slave machine but my Master machine does not collect results and finishes even before the slave is done running the tests and my results.jtl file is empty. Since the client already closed the connection the slave is unable to connect and the logs are below.Also, dont have issues running master-slave config from jmeter GUI (so that validates there are not network related issues with proxy or likewise)

Here isthe Jmeter-Server.log -

2013/08/19 12:06:00 INFO - jmeter.samplers.BatchSampleSender: Using batching for this run. Thresholds: num=100, time=60000
2013/08/19 12:06:00 INFO - jmeter.samplers.DataStrippingSampleSender: Using DataStrippingSampleSender for this run
2013/08/19 12:06:00 INFO - jmeter.samplers.BatchSampleSender: Using batching for this run. Thresholds: num=100, time=60000
2013/08/19 12:06:00 INFO - jmeter.samplers.DataStrippingSampleSender: Using DataStrippingSampleSender for this run
2013/08/19 12:06:00 INFO - jmeter.engine.RemoteJMeterEngineImpl: Creating JMeter engine on host 172.28.220.58 base '.'
2013/08/19 12:06:00 INFO - jmeter.services.FileServer: Set new base='.'
2013/08/19 12:06:00 INFO - jmeter.engine.RemoteJMeterEngineImpl: Cleaning previously set properties {}
2013/08/19 12:06:00 INFO - jmeter.engine.StandardJMeterEngine: Applying properties {}
2013/08/19 12:06:00 INFO - jmeter.engine.RemoteJMeterEngineImpl: Running test
2013/08/19 12:06:00 INFO - jmeter.engine.StandardJMeterEngine: Running the test!
2013/08/19 12:06:00 INFO - jmeter.engine.StandardJMeterEngine: Starting ThreadGroup: 1 : ATEServicesPerfTest
2013/08/19 12:06:00 INFO - jmeter.engine.StandardJMeterEngine: Starting 1 threads for group ATEServicesPerfTest.
2013/08/19 12:06:00 INFO - jmeter.engine.StandardJMeterEngine: Thread will continue on error
2013/08/19 12:06:00 INFO - jmeter.threads.ThreadGroup: Starting thread group number 1 threads 1 ramp-up 1 perThread 1000.0 delayedStart=false
2013/08/19 12:06:00 INFO - jmeter.threads.ThreadGroup: Started thread group number 1
2013/08/19 12:06:00 INFO - jmeter.engine.StandardJMeterEngine: All thread groups have been started
2013/08/19 12:06:00 INFO - jmeter.threads.JMeterThread: Thread started: ATEServicesPerfTest 1-1
2013/08/19 12:06:00 WARN - jmeter.protocol.java.sampler.JUnitSampler: ClassNotFoundException:: 1
2013/08/19 12:06:00 ERROR - jmeter.samplers.BatchSampleSender: sampleOccurred java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
java.io.EOFException
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at org.apache.jmeter.samplers.RemoteSampleListenerImpl_Stub.processBatch(Unknown Source)
at org.apache.jmeter.samplers.BatchSampleSender.sampleOccurred(BatchSampleSender.java:172)
at org.apache.jmeter.samplers.DataStrippingSampleSender.sampleOccurred(DataStrippingSampleSender.java:92)
at org.apache.jmeter.samplers.RemoteListenerWrapper.sampleOccurred(RemoteListenerWrapper.java:104)
at org.apache.jmeter.threads.ListenerNotifier.notifyListeners(ListenerNotifier.java:84)
at org.apache.jmeter.threads.JMeterThread.notifyListeners(JMeterThread.java:783)
at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:442)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.EOFException
at java.io.DataInputStream.readByte(Unknown Source)
... 12 more


2013/08/19 12:06:01 ERROR - jmeter.samplers.BatchSampleSender: sampleOccurred java.rmi.ConnectException: Connection refused to host: 172.28.220.63; nested exception is:
java.net.ConnectException: Connection refused: connect
at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.createConnection(Unknown Source)
at sun.rmi.transport.tcp.TCPChannel.newConnection(Unknown Source)
at sun.rmi.server.UnicastRef.invoke(Unknown Source)
at org.apache.jmeter.samplers.RemoteSampleListenerImpl_Stub.processBatch(Unknown Source)
at org.apache.jmeter.samplers.BatchSampleSender.sampleOccurred(BatchSampleSender.java:172)
at org.apache.jmeter.samplers.DataStrippingSampleSender.sampleOccurred(DataStrippingSampleSender.java:92)
at org.apache.jmeter.samplers.RemoteListenerWrapper.sampleOccurred(RemoteListenerWrapper.java:104)
at org.apache.jmeter.threads.ListenerNotifier.notifyListeners(ListenerNotifier.java:84)
at org.apache.jmeter.threads.JMeterThread.notifyListeners(JMeterThread.java:783)
at org.apache.jmeter.threads.JMeterThread.process_sampler(JMeterThread.java:442)
at org.apache.jmeter.threads.JMeterThread.run(JMeterThread.java:256)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(Unknown Source)
at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(Unknown Source)
... 13 more


Mark Collin

unread,
Aug 19, 2013, 2:11:14 PM8/19/13
to maven-jmeter...@googlegroups.com
We have made some changes that should have fixed this in the latest snapshot
(1.8.2-SNAPSHOT), can you give it a try and see if it fixes your issues?

You will probably need to add the sonatype repository to get the latest
snapshot version downloading:

<pluginRepositories>
<pluginRepository>
<id>sonatype-snapshots</id>
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
</pluginRepository>
</pluginRepositories>

The current plan is to release a new version of the plugin when JMeter 2.10
goes live (it's supposed to be soon).
--
You received this message because you are subscribed to the Google Groups
"Maven JMeter Plugin Users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to maven-jmeter-plugi...@googlegroups.com.
To post to this group, send an email to
maven-jmeter...@googlegroups.com.
Visit this group at
http://groups.google.com/group/maven-jmeter-plugin-users.
For more options, visit https://groups.google.com/groups/opt_out.

onlyn...@gmail.com

unread,
Aug 19, 2013, 7:49:18 PM8/19/13
to maven-jmeter...@googlegroups.com
Are the groupId and artifactId the same ?
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>

onlyn...@gmail.com

unread,
Aug 19, 2013, 10:43:28 PM8/19/13
to maven-jmeter...@googlegroups.com, onlyn...@gmail.com
Please ignore my comment

madhavi...@gmail.com

unread,
Aug 20, 2013, 6:01:51 PM8/20/13
to maven-jmeter...@googlegroups.com
Thank you for the Update. I have added the snapshot version and was able to get past the issue I was facing.
but now The test doesn't seem to execute on the Slave machine.
Here is my server Log: (It gives ClassNotFoundException ) This same test executes fine on the Client machine.

013/08/20 16:57:07 INFO - jmeter.engine.StandardJMeterEngine: Applying properties {}
2013/08/20 16:57:07 INFO - jmeter.engine.RemoteJMeterEngineImpl: Running test
2013/08/20 16:57:07 INFO - jmeter.engine.StandardJMeterEngine: Running the test!
2013/08/20 16:57:07 INFO - jmeter.engine.StandardJMeterEngine: Starting ThreadGroup: 1 : ATEServicesPerfTest
2013/08/20 16:57:07 INFO - jmeter.engine.StandardJMeterEngine: Starting 1 threads for group ATEServicesPerfTest.
2013/08/20 16:57:07 INFO - jmeter.engine.StandardJMeterEngine: Thread will continue on error
2013/08/20 16:57:07 INFO - jmeter.threads.ThreadGroup: Starting thread group number 1 threads 1 ramp-up 1 perThread 1000.0 delayedStart=false
2013/08/20 16:57:07 INFO - jmeter.threads.ThreadGroup: Started thread group number 1
2013/08/20 16:57:07 INFO - jmeter.engine.StandardJMeterEngine: All thread groups have been started
2013/08/20 16:57:07 INFO - jmeter.threads.JMeterThread: Thread started: ATEServicesPerfTest 1-1
2013/08/20 16:57:07 WARN - jmeter.protocol.java.sampler.JUnitSampler: ClassNotFoundException:: 1
2013/08/20 16:57:07 INFO - jmeter.threads.JMeterThread: Thread finished: ATEServicesPerfTest 1-1
2013/08/20 16:57:07 INFO - jmeter.engine.StandardJMeterEngine: Notifying test listeners of end of test
2013/08/20 16:57:07 INFO - jmeter.samplers.DataStrippingSampleSender: Test Ended on 172.28.220.33
2013/08/20 16:57:07 INFO - jmeter.samplers.BatchSampleSender: Test Ended on 172.28.220.33
2013/08/20 16:57:07 INFO - jmeter.samplers.DataStrippingSampleSender: Test Ended on 172.28.220.33
2013/08/20 16:57:07 INFO - jmeter.samplers.BatchSampleSender: Test Ended on 172.28.220.33
2013/08/20 16:57:07 INFO - jmeter.engine.StandardJMeterEngine: Test has ended on host 172.28.220.33


On Monday, August 19, 2013 1:11:14 PM UTC-5, Ardesco wrote:

Arne Franken

unread,
Aug 20, 2013, 6:06:58 PM8/20/13
to maven-jmeter...@googlegroups.com
Hi,

you're probably using a class in your test configuration/implementation that is not distributed with the JMeter installation.
You'll have to add the library containing that class to the JMeter plugin's dependencies.

Cheers,
Arne

Mark Collin

unread,
Aug 21, 2013, 3:57:16 AM8/21/13
to maven-jmeter...@googlegroups.com
Failing that are you able to supply us with a minimal script that
reproduces this problem and some details on your config so we can try
and reproduce the issue.

onlyn...@gmail.com

unread,
Aug 21, 2013, 7:12:59 PM8/21/13
to maven-jmeter...@googlegroups.com, madhavi...@gmail.com
1) SpringExample is the project and needs to run from the prompt using the command below

mvn verify -X -P performance-tests

2) pom.xml in springExample has the remote machine's IP address. Like wise as you would know the slave machine has master's IP address in jmeter.properties and is launched in server mode.

2) Step 1) creates jmeter related setup under target directory.

3) The other 2 attachments(.jtl and .log) are the ones we had under out target with the results and the logs on the master.

4) jmeter-server.log is the output for the slave machine.

The common theme in both steps 3 and 4 is class not found exception.

The test runs on slave with 1.8.1 but the master would not wait for the results. With the 1.8.2-SNAPSHOT that problem(the server not waiting for results)is fixed but we ran into classnotfound exception. Any help would be greatly appreciated.

Please let me know if anymore clarification with our sample project

SpringExample.zip
20130821-RemoteConfigTest.jtl
RemoteConfigTest.jmx.log
jmeter-server.log
Reply all
Reply to author
Forward
0 new messages