JFR.check should show all parameters of the recording

Yasumasa Suenaga yasuenag at gmail.com
Wed Oct 24 13:06:13 UTC 2018


Hi all,

JFR.check dcmd shows current configurations of name, duration, maxsize, maxage. However we cannot check other values (fi
lename, dumponexit, and more).
I think it is useful if we can check what parameters we set now. So I want to propose the change as below:

   http://cr.openjdk.java.net/~ysuenaga/jfr-check-parameters/
     * This change has passed jdk/jfr/jcmd and jdk/jfr/startupargs jtreg tests.

This change shows all parameters in the recording via JFR.check dcmd:

--------------
$ jcmd 1234 JFR.check
1234:
Recording 1: name=TestRecord1 settings=[default] delay=10s (2018-10-24T21:16:15.433115+09:00[Asia/Tokyo]) duration=<N/A>
  disk=true filename=/tmp/test.jfr maxage=<N/A> maxsize=250.0MB dumponexit=true path-to-gc-roots=false (delayed)
--------------

What do you think? I will file it to JBS if it is reasonable.
But it changes format of JFR.check, so CSR might be required. Please tell me what should I do.


Thanks,

Yasumasa


More information about the hotspot-jfr-dev mailing list