-XX:StartFlightRecording has a very unfriendly error message when the same option is specified multiple times.
If we run java application with -XX:StartFlightRecording=name=abc,name=abc2 option, currently the error message is
[0.564s][error][jfr,startup] Duplicates in diagnostic command arguments
Error occurred during initialization of VM
Failure when starting JFR on_create_vm_3
Since the production runs with many JVM arguments, this message makes it difficult for the user to know what to change.
I would recommend the following changes to make the issue more clear to the user
filename is conflicted in starting FlightRecording
disk and filename are conflicted in starting FlightRecording
disk, filename and name are conflicted in starting FlightRecording
If we run java application with -XX:StartFlightRecording=name=abc,name=abc2 option, currently the error message is
[0.564s][error][jfr,startup] Duplicates in diagnostic command arguments
Error occurred during initialization of VM
Failure when starting JFR on_create_vm_3
Since the production runs with many JVM arguments, this message makes it difficult for the user to know what to change.
I would recommend the following changes to make the issue more clear to the user
filename is conflicted in starting FlightRecording
disk and filename are conflicted in starting FlightRecording
disk, filename and name are conflicted in starting FlightRecording