2013-01-18

Configuring JMeter Part 3 - How to configure Hosts&RMI?


In this article we are going to see how can we change property of JMeter.
Jmeter has a very big number of properties. In this section we will see the RMI settings mention in jmeter.propertie.

 In the jmeter installed bin directory(in my case C:\apache-jmeter-2.8\bin), we get a file named jmeter.properties. Open this with note pad. We can find RMI properties which are activated and some are not yet activated.

- To define remote host[we have to use IP for remote]
remote_hosts=127.0.0.1
Example For Multiple Hosts
remote_hosts=localhost:1099,localhost:2010
[With Port, multiple assign]
remote_hosts=192.168.1.28:1099,192.168.1.54:1099
[Different workstations ]

-To define RMI port to be used by the server (must start rmi registry with same port)
server_port=1099
-To Change the port to 5555
- set server_port=5555
- start rmiregistry with port 5555
For windows
SET SERVER_PORT=5555
JMETER-SERVER
For Unix:
SERVER_PORT=5555 jmeter-server
On the client:
- set remote_hosts=server:5555

-To set RMI port used by the RemoteSampleListenerImpl[Default 0 means randomly assigned]
client.rmi.localport=0

-To use a specific port for the JMeter server engine(before starting the server)
server.rmi.localport=5555

-To change the default port (1099) used to access the server:
server.rmi.port=1234

-To stop the server creating the RMI registry:
server.rmi.create=false

-To exit after the first test
server.exitaftertest=true

-To start mirror server on the port
mirror.server.port=8081

Thanks..:)

No comments:

Post a Comment