If there's a RuntimeException resulting from the "jcmd VM.cds" command, currently, it only prints the filenames of stdout and stderr as follows:
Static dump:java.lang.RuntimeException: Archive file test.jsa.temp is not created, please check stdout file java_pid45800_stdout or stderr file java_pid45800_stderr for more detail
While the output files are located where the target java process was started, it would be hard to find if the java process was started by another process. Adding directory info allows the user to locate the output files easily.
Static dump:java.lang.RuntimeException: Archive file test.jsa.temp is not created, please check stdout file java_pid45800_stdout or stderr file java_pid45800_stderr for more detail
While the output files are located where the target java process was started, it would be hard to find if the java process was started by another process. Adding directory info allows the user to locate the output files easily.