1. Start jmeter-server.bat on the agent
2. On the execution machine, go to the bin directory in the JMeter installation directory of the machine. Then go to the jmeter.properties file and open it using Notepad
Look for “remote_host”,
Remote_hosts =127.0.0.1 “127.0.0.1 represents the local host.
Remote_hosts =127.0.0.1, 192.168.1.131:1099, 192.168.254.1:1099 Where 1099 is the default port number and does not need to be changed. 192.168.1.131, 192.168.1.254
The two IP addresses are the IP addresses of the remote payload machines, separated by commas
Set the thread
1. Try starting 127.0.0.1 remotely
View the aggregation report. The report is running properly
Try running 192.168.1.131 again to see that the aggregation report works.
Remote boot all, view aggregation report, 2 samples, success.
ERROR – jmeter.gui.action.RemoteStart: Failed to initialise remote engine java.rmi.ConnectException: Connection refused to host: 127.0.0.1; 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.newCall(Unknown Source)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Unknown Source)
at org.apache.jmeter.engine.ClientJMeterEngine.getEngine(ClientJMeterEngine.java:54)
at org.apache.jmeter.engine.ClientJMeterEngine.<init>(ClientJMeterEngine.java:67)
at org.apache.jmeter.gui.action.RemoteStart.doRemoteInit(RemoteStart.java:180)
at org.apache.jmeter.gui.action.RemoteStart.doAction(RemoteStart.java:80)
at org.apache.jmeter.gui.action.ActionRouter.performAction(ActionRouter.java:81)
This problem was finally solved by me, in fact, the reason is very simple ah. As long as the local server.bat execution can be.
Note: if you write 127.0.0.1 in the configuration, you need to open the local sever. Bat. If you don’t, you don’t have to
4. Check whether port 1099 is occupied
netstat -ano | findstr “1099” tasklist | findstr “1099”