You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Mark McWhinney <ms...@portata.com> on 2006/03/28 20:56:25 UTC

Remote server connection problem

Hi,

I am not able to run JMeter scripts on a remote server.

I added the remote hosts to the local jmeter.properties file.  They show up
in the Run => Remote Start menu just fine.

I started the jmeter-server on the remote hosts.  Their jmeter.log files
(shown at the bottom of this email) look OK.

When I select Remote Start or Remote Start All, JMeter thinks about it for a
few seconds then returns to normal as if nothing happened.  The little green
light does not come on.

I am guessing that the problem is due to a blocked port on the remote server
and/or a firewall.  Are there other common causes?

Is there an easy way to select another port e.g. 80 instead of 1099?

Thanks,

Mark



2006/03/27 18:27:30 INFO  - jmeter.util.JMeterUtils: Setting Locale to en_US
2006/03/27 18:27:30 INFO  - jmeter.JMeter: Version 2.1.1
2006/03/27 18:27:30 INFO  - jmeter.JMeter: java.version=1.5.0_05
2006/03/27 18:27:30 INFO  - jmeter.JMeter: Locale=English (United States)
2006/03/27 18:27:30 INFO  - jmeter.JMeter: Copyright (c) 1998-2005 The
Apache Software Foundation
2006/03/27 18:27:30 INFO  - jmeter.engine.RemoteJMeterEngineImpl: Starting
backing engine on 1099
2006/03/27 18:27:30 INFO  - jmeter.engine.RemoteJMeterEngineImpl: Bound to
registry on port 1099





---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Remote server connection problem

Posted by sebb <se...@gmail.com>.
On 28/03/06, Mark McWhinney <ms...@portata.com> wrote:
> >  edit jmeter.properties and change
> >  #server_port=1099
>
>
> Hi,
>
> Thank you for the fast response.
>
> I uncommented and changed the server_port setting to another port in the
> jmeter.properties file on the host servers (Linux) and on the local PC
> (Windows XP).
>
> Does the change need to be made on both the hosts and the local PC?

No, just the server nodes.

> Does the server.rmi.port setting also need to be changed?

No, that has the same effect.
[Not sure now why I added it...]

> Now when start jmeter-server on the host, it fails with the error shown
> below.  I am not that familiar with RMI, so I am probably just doing
> something silly.  Any pointers?

Sorry, I forgot - you need to edit the jmeter-server script to tell
rmiregistry to use the new port.

E.g. in jmeter-server.bat, change:

START rmiregistry

to

START rmiregistry 12345

(or the equivalent for Unix).

And of course you also need to add the appropriate remote_host entry
for the client, e.g.

remote_hosts=hostname:12345

==

To recap:

The client needs to know how to contact the server; this is done by
changing remote_hosts.

The RMI registry needs to be told to use the port; this is by
providing the port on the command line.

The server needs to be told how to bind to the registry; this is done
by changing server_port.

But if the default port is used, of course none of this is necessary
as they all know to use 1099.

> Thanks again,

I'm in the process of updating the documentation, so it's useful to be
reminded that these bits are missing ... [and it needs to be easier to
change the rmiregistry port...]

There's just one other thing - although the initial connection will be
made using port 1099 or port 80, the return messages will, I think,
use a different port.

Also, check the logs both ends.

If there are any firewalls etc in the way, they need to be able to
detect the incoming connection, and allow the responses. I think this
is what is meant by a stateful firewall.

Let me know if these instructions work (or not).

S.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


RE: Remote server connection problem

Posted by Mark McWhinney <ms...@portata.com>.
>  edit jmeter.properties and change
>  #server_port=1099


Hi,

Thank you for the fast response.

I uncommented and changed the server_port setting to another port in the
jmeter.properties file on the host servers (Linux) and on the local PC
(Windows XP).

Does the change need to be made on both the hosts and the local PC?

Does the server.rmi.port setting also need to be changed?

Now when start jmeter-server on the host, it fails with the error shown
below.  I am not that familiar with RMI, so I am probably just doing
something silly.  Any pointers?

Thanks again,

Mark



2006/03/28 11:59:52 INFO  - jmeter.util.JMeterUtils: Setting Locale to en_US
2006/03/28 11:59:52 INFO  - jmeter.JMeter: Version 2.1.1
2006/03/28 11:59:52 INFO  - jmeter.JMeter: java.version=1.5.0_05
2006/03/28 11:59:52 INFO  - jmeter.JMeter: Locale=English (United States)
2006/03/28 11:59:52 INFO  - jmeter.JMeter: Copyright (c) 1998-2005 The
Apache Software Foundation
2006/03/28 11:59:52 INFO  - jmeter.engine.RemoteJMeterEngineImpl: Starting
backing engine on 8080
2006/03/28 11:59:53 ERROR - jmeter.engine.RemoteJMeterEngineImpl:
rmiregistry needs to be running to start JMeter in server mode
        java.rmi.ConnectException: Connection refused to host: 127.0.0.1;
nested exception is:
        java.net.ConnectException: Connection refused
2006/03/28 11:59:53 ERROR - jmeter.JMeter: Giving up, as server failed with:
java.rmi.RemoteException: Cannot start. See server log file.
        at
org.apache.jmeter.engine.RemoteJMeterEngineImpl.init(RemoteJMeterEngineImpl.
java:60)
        at
org.apache.jmeter.engine.RemoteJMeterEngineImpl.<init>(RemoteJMeterEngineImp
l.java:46)
        at org.apache.jmeter.JMeter.startServer(JMeter.java:407)
        at org.apache.jmeter.JMeter.start(JMeter.java:244)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.jmeter.NewDriver.main(NewDriver.java:151)




---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Remote server connection problem

Posted by sebb <se...@gmail.com>.
edit jmeter.properties and change

#server_port=1099


S.
On 28/03/06, Mark McWhinney <ms...@portata.com> wrote:
> Hi,
>
> I am not able to run JMeter scripts on a remote server.
>
> I added the remote hosts to the local jmeter.properties file.  They show up
> in the Run => Remote Start menu just fine.
>
> I started the jmeter-server on the remote hosts.  Their jmeter.log files
> (shown at the bottom of this email) look OK.
>
> When I select Remote Start or Remote Start All, JMeter thinks about it for a
> few seconds then returns to normal as if nothing happened.  The little green
> light does not come on.
>
> I am guessing that the problem is due to a blocked port on the remote server
> and/or a firewall.  Are there other common causes?
>
> Is there an easy way to select another port e.g. 80 instead of 1099?
>
> Thanks,
>
> Mark
>
>
>
> 2006/03/27 18:27:30 INFO  - jmeter.util.JMeterUtils: Setting Locale to en_US
> 2006/03/27 18:27:30 INFO  - jmeter.JMeter: Version 2.1.1
> 2006/03/27 18:27:30 INFO  - jmeter.JMeter: java.version=1.5.0_05
> 2006/03/27 18:27:30 INFO  - jmeter.JMeter: Locale=English (United States)
> 2006/03/27 18:27:30 INFO  - jmeter.JMeter: Copyright (c) 1998-2005 The
> Apache Software Foundation
> 2006/03/27 18:27:30 INFO  - jmeter.engine.RemoteJMeterEngineImpl: Starting
> backing engine on 1099
> 2006/03/27 18:27:30 INFO  - jmeter.engine.RemoteJMeterEngineImpl: Bound to
> registry on port 1099
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org