JDK-8220657 : JFR.dump does not work when filename is set
  • Type: Bug
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 11,12,13
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-03-14
  • Updated: 2020-10-13
  • Resolved: 2019-06-13
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 Other
11.0.5Fixed 13 b25Fixed 14Fixed openjdk8u282Fixed
Description
The user might not get flight record via JFR.dump.


How to reproduce:

* Target process
  Start with -XX:StartFlightRecording=filename=test.jfr

* JFR.dump

  - Run with no argument
      It works correctly.

  - Run with `name=1`
      We can see the message "Dump failed. No data found in the specified interval." on the console, but the dump is completed to `test.jfr`.

  - Run with `name=1 filename=dump.jfr`
      It does not work.
Comments
The proposed patch does not compile: https://mail.openjdk.java.net/pipermail/jdk8u-dev/2020-August/012355.html Returning to the review stage with jdk8u-needs-review. Please replace this with jdk8u-fix-request again only once a working patch is reviewed.
06-08-2020

[~apetushkov] Next time please also mention the reviewer of the patch. In fact, only reviewed patches should get the jdk8u-fix-request label. There are many 8u Reviewers out there, 8u Maintainers less so. Thanks. For reference, the 8u RFR approval is here: http://mail.openjdk.java.net/pipermail/jdk8u-dev/2020-August/012333.html. Approving.
04-08-2020

Fix request for 8u on behalf of Ekaterina Vergizova (katya@azul.com): JFR issue, the patch applies cleanly, but the added test TestJcmdDumpWithFileName.java requires some adjustments to pass under 8u see https://mail.openjdk.java.net/pipermail/jdk8u-dev/2020-July/012312.html tier1 and relevant JFR jtreg's tests passed on Linux and Windows
31-07-2020

Should try to fix for JDK 13 (and backport to JDK 11 later). Work in progress
12-06-2019

Impact: High, loss of data Likelihood: Medium, reported by several users Workaround: Low, specify filename when doing dump ILW: HML -> P3
12-06-2019