MaxonT opened a new pull request, #6876: URL: https://github.com/apache/jmeter/pull/6876
The comment in jmeter.properties left me unsure what I was supposed to change, so this PR rewrites that instruction to say it more directly (issue #6226). Fixes #6226. ## Description The three places that describe `client.rmi.localport` disagree with each other, and none matches the code. Thank you to the reporter for measuring it: with `client.rmi.localport=20012` the ports in use were 20013 and 20014. In the code, `RemoteThreadsListenerImpl` exports on `addOffset(base, 1)` and `RemoteSampleListenerImpl` on `addOffset(base, 2)`, and `addOffset` returns 0 when the base is 0. So a non-zero base gives base+1 and base+2, and the base port itself is not used. `bin/jmeter.properties` said "the ports that start one after the given base", while `remote-test.xml` and `properties_reference.xml` said "up to three ports beginning with the port defined in" the property. This changes the sentence in all three files to say two ports, base+1 and base+2, and that the base is not used. Only text changes; no code, property name or default is touched. ## Motivation and Context Someone opening firewall ports from the old wording (base, or base up to base+2) would open the wrong set. This is the question in #6226. The issue also asks why JMeter reserves these ports. I did not try to answer that here, since the code does not say. ## How Has This Been Tested? - `xmllint --noout` on `xdocs/usermanual/remote-test.xml` and `xdocs/usermanual/properties_reference.xml`: both well-formed. - Read `RemoteSampleListenerImpl.java` and `RemoteThreadsListenerImpl.java` in a text-complete checkout to confirm the offsets. - Not run: the Gradle documentation build, and no distributed test against a real remote server, so the port numbers come from the code and from the reporter's measurement, not from my own run. ## Types of changes - Documentation fix, no behaviour change. ## Checklist - [x] I have updated the documentation accordingly. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
