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

Improve specificity of safepoint logging to print safepoint type

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 11
    • 9
    • hotspot
    • None
    • b01

      Currently, to get the description/name of the safepoint that is started, you need to enable -Xlog:safepoint=debug.

      However, this enables thousands of additional log messages that are very detailed, like for every java thread that it hit the safepoint polling page.

      That fills up the log just to get the

      Entering safepoint region: <something>
      Leaving safepoint region

      messages. Log level "info" is too coarse, as it does not print the reason for the safepoint at all, like

      [705.131s][info ][safepoint ] Total time for which application threads were stopped: 0.0559900 seconds, Stopping threads took: 0.0507676 seconds
      [705.388s][info ][safepoint ] Application time: 0.2566720 seconds

      It would be great to either move the very verbose messages to trace level, or add this information about the safepoint kind to the info level.

      Attached a log that is mostly contains these "polling page" messages.

            coleenp Coleen Phillimore
            tschatzl Thomas Schatzl
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: