Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8308751

Create new switch to print error reporting output to both hs_err_pid file and stdout/stderr

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • tbd
    • 21
    • hotspot
    • generic
    • generic

      ErrorFileToStdout and ErrorFileToStderr proposed in JDK-8220786 print the error reports only to stdout or stderr, and hs_err file is not generated even if ErrorFile is specified.
      Without the switch, the error summary is printed to stdout and everything is printed to hs_err.
      I would like to propose new switches which print error reports to both a hs_err file and stdout or stderr, because reports are very important for troubleshooting.
      Reporting to Stdout or stderr is useful for investigating immediately after a problem occurred, but if error occurred several times, they may disappear, so we should also leave them in hs_err files.
      In the current specification, it is necessary to select hs_err, stdout or stderr.
      The switches I propose are ErrorFileWithStdout and ErrorFileWithStderr which print error reporting output to a hs_err file, further redirect it to stdout or stderr respectively.
      The '#' section also needs to be reconsidered.
      Printing the '#' section to both stdout and stderr is redundant and may lead to misunderstanding that it is another error.
      Therefore, when ErrorFileToStderr is specified, error reports should be printed only to stderr.

            myano Masanori Yano
            myano Masanori Yano
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: