diff --git a/src/java.base/share/man/java.md b/src/java.base/share/man/java.md index fc8cbb23affa4..b8c8011eb47d1 100644 --- a/src/java.base/share/man/java.md +++ b/src/java.base/share/man/java.md @@ -1449,9 +1449,10 @@ These `java` options control the runtime behavior of the Java HotSpot VM. `report-on-exit=`*identifier* : Specifies the name of the view to display when the Java Virtual Machine - (JVM) shuts down. This option is not available if the disk option is set - to false. For a list of available views, see `jfr help view`. By default, - no report is generated. + (JVM) shuts down. To specify more than one view, use the report-on-exit + parameter repeatedly. This option is not available if the disk option + is set to false. For a list of available views, see `jfr help view`. + By default, no report is generated. `settings=`*path* : Specifies the path and name of the event settings file (of type JFC). diff --git a/src/jdk.jfr/share/classes/jdk/jfr/internal/dcmd/DCmdStart.java b/src/jdk.jfr/share/classes/jdk/jfr/internal/dcmd/DCmdStart.java index 9cc3bdaf1015a..ed93710e59a5c 100644 --- a/src/jdk.jfr/share/classes/jdk/jfr/internal/dcmd/DCmdStart.java +++ b/src/jdk.jfr/share/classes/jdk/jfr/internal/dcmd/DCmdStart.java @@ -502,9 +502,11 @@ private static String reportOnExit() { """ report-on-exit Specifies the name of the view to display when the Java Virtual - Machine (JVM) shuts down. This option is not available if the - disk option is set to false. For a list of available views, - see 'jfr help view'. By default, no report is generated. + Machine (JVM) shuts down. To specify more than one view, use + the `report-on-exit` parameter repeatedly, for each view. This + option is not available if the disk option is set to false. + For a list of available views, see `jfr help view`. By default, + no report is generated. """; }