`jhsdb debugd` supports server name prefix with `sun.jvm.hotspot.rmi.serverNamePrefix` system property. It will be used as remote name for SA RMI object. It is "SARemoteDebugger" by default.
As a result, remote name will be constructed as following:
```
//host[:port]/<serverNamePrefix>['_'<id>]
```
However we have no way to set it excepting system property. jhsdb should provide the way to set it as a command line option.
serverNamePrefix is used for RMI object name, so "server name" is more suitable for it. Thus I will add `--servername` to `jhsdb debugd` for this purpose.
And also we should add the way to specify it when we connect to debug server. I will add it like `--connect id@server:1234/servername`.
As a result, remote name will be constructed as following:
```
//host[:port]/<serverNamePrefix>['_'<id>]
```
However we have no way to set it excepting system property. jhsdb should provide the way to set it as a command line option.
serverNamePrefix is used for RMI object name, so "server name" is more suitable for it. Thus I will add `--servername` to `jhsdb debugd` for this purpose.
And also we should add the way to specify it when we connect to debug server. I will add it like `--connect id@server:1234/servername`.
- csr for
-
JDK-8265897 Add --servername option to jhsdb debugd
-
- Closed
-