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

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

XMLWordPrintable

    • gc
    • b28

        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.

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

                Created:
                Updated:
                Resolved: