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

Bad -Xlog example in -Xlog:help, online documentation, JEP

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • None
    • tools
    • b15

      Several "examples" in the documentation and help messages for -Xlog use the decorator "pids", which should be "pid".

      Example example:
       "-Xlog:gc=trace:file=gctrace.txt:uptimemillis,pids:filecount=5,filesize=1024

          Logs messages tagged with the gc tag using the trace level to a rotating file set with 5 files with size 1 MB with the base name gctrace.txt and uses decorations uptimemillis and pid."

      Results in "Invalid -Xlog option"...

      See:
      $ java -Xlog:help

      https://docs.oracle.com/en/java/javase/12/tools/java.html#GUID-BE93ABDC-999C-4CB5-A88B-1994AAAC74D5

      https://openjdk.java.net/jeps/158


            jpai Jaikiran Pai
            drwhite Derek White
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: