JDK-8212825 : jfr.dcmd log is not shown
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 11,12
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2018-10-23
  • Updated: 2019-05-28
  • Resolved: 2018-11-07
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 12
12Resolved
Related Reports
Duplicate :  
Description
Arguments which are passed to -XX:StartFlightRecording are not shown in spite of -Xlog:jfr+dcmd=debug is passed.

jfr.dcmd log will be shown from DCmdStart::execute, but I think it has two problems:

  1. Log level will be not set before showing log.
     LogTag::tagSetLevel is used to decide to show the log. But it will be set
     in JNI code which is called by JVM::<clinit>. JVM class is not loaded
     when DCmdStart::execute tries to show log.

  2. `settings` might be null, so NPE will occur when DCmdStart::execute
      tries to show log.