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

JEP 158 refer invalid tag "rt"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • None
    • 9
    • hotspot
    • None
    • svc
    • generic
    • generic

      In most of the documentation http://openjdk.java.net/jeps/158 refer "rt" tag, which actually doesn't exist

      9 ea b181 Available log tags:
       add, age, alloc, aot, annotation, arguments, attach, barrier, biasedlocking, blocks, bot, breakpoint, census, class, classhisto, cleanup, compaction, constraints, constantpool, coops, cpu, cset, data, defaultmethods, dump, ergo, exceptions, exit, fingerprint, freelist, gc, hashtables, heap, humongous, ihop, iklass, init, itables, jni, jvmti, liveness, load, loader, logging, mark, marking, methodcomparator, metadata, metaspace, mmu, module, monitorinflation, monitormismatch, nmethod, normalize, objecttagging, obsolete, oopmap, os, pagesize, patch, path, phases, plab, promotion, preorder, protectiondomain, ref, redefine, refine, region, remset, purge, resolve, safepoint, scavenge, scrub, stacktrace, stackwalk, start, startuptime, state, stats, stringdedup, stringtable, stackmap, subclass, survivor, sweep, task, thread, tlab, time, timer, update, unload, verification, verify, vmoperation, vtables, workgang, jfr, system, parser, bytecode, setting, event

      Doumentation of http://openjdk.java.net/jeps/158 refer "rt", check below case
      -Xlog:gc*=info,rt*=off
          - log messages tagged with at least 'gc' using 'info' level but turn
          off logging of messages tagged with 'rt'
          - messages tagged with both 'gc' and 'rt' will not be logged
          - default output of all messages at level 'warning' to 'stderr'
          will still be in effect

      -Xlog:disable -Xlog:rt=trace:rttrace.txt
          - turn off 'all' logging, even warnings and errors, except
          messages tagged with 'rt' using 'trace' level
          - output to a file called 'rttrace.txt'
      Complex examples:
      -Xlog:gc+rt*=debug
          - log messages tagged with at least 'gc' and 'rt' tag using 'debug'
          level to 'stdout'
          - default output of all messages at level 'warning' to 'stderr'
          will still be in effect

      -Xlog:gc+meta*=trace,rt*=off:file=gcmetatrace.txt
          - log messages tagged with at least 'gc' and 'meta' tag using 'trace'
          level to file 'metatrace.txt' but turn off all messages tagged
          with 'rt'
          - again, messages tagged with 'gc', 'meta' and 'rt' will not be logged
          since 'rt' is set to off
          - default output of all messages at level 'warning' to 'stderr'
          will still be in effect


      This will be misleading for novice users

            Unassigned Unassigned
            fmatte Fairoz Matte
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: