The documentation says:
These ports can be controlled by jmeter property called client.rmi.localport in jmeter.properties.
If this is non-zero, it will be used as the base for local port numbers for the client engine. At the moment JMeter will open up to three ports beginning with the port defined in client.rmi.localport.
And instruction in jmeter.properties file says:
If you specify a base port, JMeter will (at the moment) use the ports that start one after the given base.
You may need to open Firewall port on the Controller machine
client.rmi.localport=0
Let's say I set the client.rmi.localport to 20012, then according to the instruction the port that should be correct is 20013. Unfortunately, it is not. After running the tests and checking the ports in Resource Monitor, it turned out that Java uses ports 20013 and 20014. So it seems to me that it is rather as written in the documentation.
I also have questions:
is there any reason why JMeter reserves three ports?
why were there two ports in my case (without port 20012)?
The documentation URL
https://jmeter.apache.org/usermanual/remote-test.html#tips
Feedback
The documentation says: These ports can be controlled by jmeter property called client.rmi.localport in jmeter.properties. If this is non-zero, it will be used as the base for local port numbers for the client engine. At the moment JMeter will open up to three ports beginning with the port defined in client.rmi.localport.
And instruction in jmeter.properties file says: If you specify a base port, JMeter will (at the moment) use the ports that start one after the given base. You may need to open Firewall port on the Controller machine client.rmi.localport=0
Let's say I set the client.rmi.localport to 20012, then according to the instruction the port that should be correct is 20013. Unfortunately, it is not. After running the tests and checking the ports in Resource Monitor, it turned out that Java uses ports 20013 and 20014. So it seems to me that it is rather as written in the documentation.
I also have questions: