RFR: 8338894: Deprecate jhsdb debugd for removal

Kevin Walls kevinw at openjdk.org
Tue Sep 3 14:50:19 UTC 2024


On Tue, 3 Sep 2024 08:06:14 GMT, Kevin Walls <kevinw at openjdk.org> wrote:

> Deprecation annotations and warnings on starting the tool(s).
> Handle man page in a separate issue.

OK one other addition, as jhsdb debugd and the --connect option are two sides of the same feature:

We generally expect attaches between the same JDK version (see the SA version mismatch warning),
so a later JDK with the ability to connect to a previous JDK which still has debugd makes no sense.

We can warn at the tool running with --connect, e.g.

bash-4.2$ build/linux-x64/images/jdk/bin/jhsdb jstack --connect serverid at debugserver:1234/servername
WARNING: debugd (and therefore --connect) are deprecated and will be removed in a future release.
Attaching to remote server serverid at debugserver:1234/servername, please wait...

In our own tests, the debugd warning message causes no problems, but the warning on using --connect causes some test disruption, will update.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/20830#issuecomment-2326724091


More information about the serviceability-dev mailing list