JDK-8238357 : Add jstatd option to specify RMI connector port
  • Type: CSR
  • Component: core-svc
  • Sub-Component: tools
  • Priority: P3
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 15
  • Submitted: 2020-01-31
  • Updated: 2020-02-06
  • Resolved: 2020-02-06
Related Reports
CSR :  
Description
Summary
-------

Add new jstatd tool option to specify a RMI connector port.

Problem
-------

When running jstatd on a remote host behind a firewall or inside a container it should be possible to specify what exact ports need to be used. Currently jstatd tool provides command line option `-p` to specify RMI registry port but remote objects still communicate over random ports. An option to specify RMI connector port needs to be added.

Solution
--------

Introduce `-r` option to jstatd to specify RMI connector port number.


Specification
-------------
jstatd can accept `-r` option to specify RMI connector port.

```    
$ jstatd -help  

  usage: jstatd [-nr] [-p port] [-r rmiport] [-n rminame]
       jstatd -?|-h|--help
    
```
Comments
Current command line convention are to have long form aliases, such as "--rmi-port", but I don't think it is necessary to introduce such options to this command as part of this change. Moving to Approved.
06-02-2020