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

-Xloggc:<filename> should override -verbose:gc

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b14
    • CPU:
      generic
    • OS:
      generic

      Description

      According to java 16 specifications for java command (https://docs.oracle.com/en/java/javase/16/docs/specs/man/java.html), the command line option -Xloggc should override -verbose:gc if both options are given with the same java command. However, gc information still outputs to console even if gc log file is specified.
      ```
      $java -Xloggc:gc.log -verbose:gc -version
      [0.000s][warning][gc] -Xloggc is deprecated. Will use -Xlog:gc:gc.log instead.
      [0.003s][info ][gc] Using G1
      $cat gc.log
      [0.003s][info][gc] Using G1
      ```
      As a result, we propose to put off the log configuration of -verbose:gc option until we are confident that there isn’t -Xloggc option.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              xwlu Xiaowei Lu
              Reporter:
              xwlu Xiaowei Lu
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: