On 28/03/06, Mark McWhinney <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to