JDK-8209790 : SA tools not providing option to connect to debug server
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: svc-agent
  • Affected Version: 10,11,12
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-08-21
  • Updated: 2020-06-19
  • Resolved: 2019-07-10
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 13 JDK 14
11.0.6Fixed 13.0.2Fixed 14 b06Fixed
Related Reports
CSR :  
Relates :  
Relates :  
Description
Umbrella bug for SA tools which do not provide an option to connect to a  debug server.

Examples:
jhsdb jstack
jhsdb jmap
jhsdb jinfo
jhsdb jsnap

Some of these tools allowed connecting to debug server in JDK 8.

Comments
Backport CSRs have been approved. Approving patch for 11u.
01-09-2019

Fix Request for 11u and 13u: In JDK 8 or earlier, some tools (jstack, jmap, jinfo, jsnap) can connect to debug server (jsadebugd). However it has not done so since JDK 9 because jhsdb cannot accept the attach request to debug server. This function should be provided in JDK 11. This change can apply straightly. I've proposed CSR for this in JDK-8230230 (for 11u) and in JDK-8230296 (for 13u).
28-08-2019

Discussed with Yasumasa to go through CSR process. If that will be approved we can probably allow this for JDK11 updates. Removing jdk11u-fix-no label now and will wait for CSR.
28-08-2019

As Mark said, this issue is not critical, so it to merge to 13 is rejected by project lead. However I think it is regression as I said in fix request. So I want to fix it in the latest LTS release at least.
10-08-2019

Hi Yasu, I wouldn't say this is not suitable per se for jdk11u. However, can you please try to get it backported to jdk13u first, too see if it would be accepted there? Furthermore, in case you want to have this in jdk11u (or jdk13u as well) you'll need to file CSR requests for both of these codelines first. Best regards Christoph
07-08-2019

Given that the enhancement to 13 was declined, is there any reason that it should be bapckported to 11? It would be very odd for it to be suitable for 11 but not 13. Perhaps I'm missing some important information.
07-08-2019

Fix Request for 11u: In JDK 8 or earlier, some tools (jstack, jmap, jinfo, jsnap) can connect to debug server (jsadebugd). However it has not done so since JDK 9 because jhsdb cannot accept the attach request to debug server. This function should be provided in JDK 11. This change can apply straightly after JDK-8223814 (I'm also requesting backport it to JDK 11). In addition, this change is known that it is failed if sadebugd test is run in concurrently. So I'm requesting backport JDK-8227594 to avoid it.
23-07-2019

URL: https://hg.openjdk.java.net/jdk/jdk/rev/56e8c0a3fe9a User: ysuenaga Date: 2019-07-10 23:20:41 +0000
10-07-2019

I changed fix version to 14. I continue to work for 14. (I'm waiting for CSR approval for 14 in JDK-8224979)
24-06-2019

Enhancement request declined by Project Lead. This enhancement is not critical to the success of the release. Please retarget to JDK 14.
21-06-2019

Late Enhancement Request: In JDK 8 or earlier, some tools (jstack, jmap, jinfo, jsnap) can connect to debug server (jsadebugd). However it has not done so since JDK 9 because jhsdb cannot accept the attach request to debug server. This ticket introduces new command line option for jhsdb to connect to debug server. It does not affect to other modes in jhsdb. Thus compatibility risk is none. See CSR (JDK-8224979) for further details.
17-06-2019

debug server support is available in tools which extends sun.jvm.hotspot.tools.Tool . AFAICS they are jstack, jmap, jinfo, jsnap.
09-05-2019