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

Add date stamps to logs by default

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • 22
    • hotspot

      Please add date stamps to GC log entries as default logging behavior.

      Current default logging behavior prints only the uptime.
      Examples:
         [0.035s][info][gc,init] Initializing The Z Garbage Collector
         [0.036s][info][gc,init] Version: 17.0.2+8-LTS-86 (release)

         [0.081s][info][gc] Using Parallel
         [0.090s][info][gc,init] Version: 17.0.2+8-LTS-86 (release)

      We'd like both "time" and "uptime" as default behavior
      ( -Xlog:gc*::time,uptime )

      Example:
      [2022-08-21T23:04:38.331-0400][0.014s] Using G1
      [2022-08-21T23:04:38.333-0400][0.016s] Version: 17.0.2+8-LTS-86 (release)

      In the course of troubleshooting performance issues, we often need to correlate GC log events to system events, application events, or another program's events. Without date stamps in the GC log, it is not possible to determine when GC log events occur in relation to other events. This enhancement will improve our ability to troubleshoot issues at first time failure.

            jsjolen Johan Sjölen
            spayne Sandra Payne
            Votes:
            0 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: