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

Spammy periodic GC log message contains random time stamp with periodic gc disabled

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 12, 13
    • Fix Version/s: 12
    • Component/s: hotspot
    • Subcomponent:
      gc
    • Resolved In Build:
      b28

      Backports

        Description

        The if periodic GC is disabled but periodic gc logging enabled, there are regular debug level log messages (e.g. with gc*=debug) that look like the following:

        [0.204s][debug][gc,periodic] Last GC occurred 9462349824ms before which is below threshold 0ms. Skipping

        The log message frequency is pretty high (every 300ms by default) that contains a random time span since the last_gc_time variable has not been initialized properly in this case.

        Do not print these log messages if periodic gcs are disabled, and add a single log message at startup indicating whether periodic gcs are disabled/enabled at all.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tschatzl Thomas Schatzl
                  Reporter:
                  tschatzl Thomas Schatzl
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: