question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remote servers not started from configuration

See original GitHub issue

Been trying to get the execution off localhost and distributed to 5 nodes. All machines have matching Java Version 1.7.0.51, using latest JMeter plugin 1.9.0, JMeter version 2.9. Tests are working through normal command line execution on a remote execution box e.g.

jmeter -n -t remoteTest.jmx -r (where it picks up the remote_hosts values). And works by specifying the host with -R.

However using the JMeter plugin I’m failing to get a test started on the same remote host(s):

With the remote config option, and the remote_hosts set with

 <remoteConfig>
     <startServersBeforeTests>true</startServersBeforeTests>
     <stopServersAfterTests>true</stopServersAfterTests>
     <serverList>STOM1111</serverList>
 </remoteConfig>



<remote_hosts>STOM1111</remote_hosts>


I get this error if the jmeter remote server isn't running:

2014/05/12 15:09:21 ERROR - jmeter.JMeter: Error in NonGUIDriver org.apache.jmeter.engine.JMeterEngineException: Error in rconfigure() method java.rmi.UnmarshalException: Error unmarshaling return; nested exception is: 
        java.net.SocketException: Connection reset
        at org.apache.jmeter.engine.ClientJMeterEngine.runTest(ClientJMeterEngine.java:152)
        at org.apache.jmeter.JMeter.runNonGui(JMeter.java:830)
        at org.apache.jmeter.JMeter.startNonGui(JMeter.java:732)
        at org.apache.jmeter.JMeter.start(JMeter.java:390)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.jmeter.NewDriver.main(NewDriver.java:259)
Caused by: java.rmi.UnmarshalException: Error unmarshaling return; nested exception is: 
        java.net.SocketException: Connection reset
        at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:246)
        at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:161)
        at org.apache.jmeter.engine.RemoteJMeterEngineImpl_Stub.rconfigure(Unknown Source)
        at org.apache.jmeter.engine.ClientJMeterEngine.runTest(ClientJMeterEngine.java:129)
        ... 8 more
Caused by: java.net.SocketException: Connection reset
        at java.net.SocketInputStream.read(SocketInputStream.java:196)
        at java.net.SocketInputStream.read(SocketInputStream.java:122)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:334)
        at java.io.ObjectInputStream$PeekInputStream.read(ObjectInputStream.java:2310)
        at java.io.ObjectInputStream$PeekInputStream.readFully(ObjectInputStream.java:2323)
        at java.io.ObjectInputStream$BlockDataInputStream.readUTFBody(ObjectInputStream.java:3063)
        at java.io.ObjectInputStream$BlockDataInputStream.readUTF(ObjectInputStream.java:2864)
        at java.io.ObjectInputStream.readUTF(ObjectInputStream.java:1072)
        at java.io.ObjectStreamClass.readNonProxy(ObjectStreamClass.java:704)
        at java.io.ObjectInputStream.readClassDescriptor(ObjectInputStream.java:830)
        at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1601)
        at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1517)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1771)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
        at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1706)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1344)
        at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1990)
        at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:500)
        at java.lang.Throwable.readObject(Throwable.java:914)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:1017)
        at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1893)
        at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1798)
        at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1350)
        at java.io.ObjectInputStream.readObject(ObjectInputStream.java:370)
        at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:244)
        ... 11 more

I get this error, if the sever running:

2014/05/12 15:00:19 FATAL - jmeter.JMeter: Failure connecting to remote host: STOMV11142 java.rmi.ConnectException: Connection refused to host: STOMV11142; nested exception is: 
        java.net.ConnectException: Connection refused: connect
        at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:619)
        at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:216)
        at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
        at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:341)
        at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
        at java.rmi.Naming.lookup(Naming.java:101)
        at org.apache.jmeter.engine.ClientJMeterEngine.getEngine(ClientJMeterEngine.java:54)
        at org.apache.jmeter.engine.ClientJMeterEngine.<init>(ClientJMeterEngine.java:67)
        at org.apache.jmeter.JMeter.doRemoteInit(JMeter.java:926)
        at org.apache.jmeter.JMeter.runNonGui(JMeter.java:810)
        at org.apache.jmeter.JMeter.startNonGui(JMeter.java:732)
        at org.apache.jmeter.JMeter.start(JMeter.java:390)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.jmeter.NewDriver.main(NewDriver.java:259)
Caused by: java.net.ConnectException: Connection refused: connect
        at java.net.DualStackPlainSocketImpl.connect0(Native Method)
        at java.net.DualStackPlainSocketImpl.socketConnect(DualStackPlainSocketImpl.java:79)
        at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
        at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
        at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:579)
        at java.net.Socket.connect(Socket.java:528)
        at java.net.Socket.<init>(Socket.java:425)
        at java.net.Socket.<init>(Socket.java:208)
        at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:40)
        at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:147)
        at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:613)
        ... 16 more

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
muhammadbeigcommented, Oct 25, 2017

What was wrong about your setup @brownad

0reactions
brownadcommented, Aug 21, 2014

Absolutely nothing wrong with the plugin. My setup was wrong.

Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't establish a Remote Desktop session - Windows Server
On the server, sign in to the server locally (not using Remote Desktop/Terminal Client). Select Start, Run, type tscc.msc /s (without ...
Read more >
How to resolve common problems with Windows Remote ...
This troubleshooting guide aims to help in ruling out some of the most common causes for poor functionality.
Read more >
How to fix 8 common remote desktop connection problems
First, try to establish a session from a client that has been able to successfully connect in the past. The goal is to...
Read more >
Remote Desktop can't connect to the remote computer - 4sysops
Option 1: Select Start > Run, type sysdm. cpl, and select the Remote tab. Option 2: Select Start > Run, type regedit, navigate...
Read more >
How to Fix the "Windows Could Not Start the Remote Desktop ...
How to Fix the "Windows Could Not Start the Remote Desktop Services" Error ; Open the Settings menu on your computer. Select System...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found