The diagnostic commands should provide a validation step that correct arguments have been provided before using them blindly. e.g. the jcmd GC.heap_dump is known to support a single positional filename argument, but when a user provides "filename=xxx" the operation blindly creates a file named "filename".
This issue will be used to track a comprehensive review of the diagnostic command arguments and the introduction of a consistent validation step prior to command execution.
This issue will be used to track a comprehensive review of the diagnostic command arguments and the introduction of a consistent validation step prior to command execution.
- relates to
-
JDK-8177064 jcmd help command should not require the process identification
-
- Closed
-
-
JDK-8177763 Getting an hprof dump via jcmd could benefit from stronger option checking
-
- Closed
-