Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-58980

support-core should only collect the latest GC logs

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: support-core-plugin
    • Labels:
      None
    • Environment:
      support-core:2.34+
    • Similar Issues:
    • Released As:
      support-core-2.62

      Description

      When an instance has gigabytes of GC log files, the support bundle generator can effectively take forever. This not only causes high load for Jenkins, but can prevent from generating a support bundle.

      Steps to reproduce

      1. Add 100's GB of log files to the GC folder (specified in JVM startup flags)
      2. Try to collect a Bundle

      Expected Behavior: The bundle is generated in a reasonable amount of time and just includes the most recent data from the GC logs instead of trying to include all of them.

      Actual Behavior: You will see that the bundle collection times out or runs forever.

        Attachments

          Activity

          Hide
          allan_burdajewicz Allan BURDAJEWICZ added a comment -

          It is usually up to the admin to set up a rotation process (such as logrotate or a cron) although it would be useful to limit this in support-core to avoid performances issues when generating the bundle or producing huge bundles.

          A time limit might of the last 48 hours might be a good start. We could make this configurable via a system property.

          Show
          allan_burdajewicz Allan BURDAJEWICZ added a comment - It is usually up to the admin to set up a rotation process (such as logrotate or a cron ) although it would be useful to limit this in support-core to avoid performances issues when generating the bundle or producing huge bundles. A time limit might of the last 48 hours might be a good start. We could make this configurable via a system property.
          Hide
          mramonleon Ramon Leon added a comment -

          I see this ticket as an Improvement, not a bug. It's logical that it takes a long time to gather the files if GC log is huge. WDYT Evaristo Gutierrez?

          Show
          mramonleon Ramon Leon added a comment - I see this ticket as an Improvement , not a bug. It's logical that it takes a long time to gather the files if GC log is huge. WDYT Evaristo Gutierrez ?
          Hide
          egutierrez Evaristo Gutierrez added a comment -

          I agree

          Show
          egutierrez Evaristo Gutierrez added a comment - I agree
          Hide
          mramonleon Ramon Leon added a comment -

          Changed, if you don't mind Allan BURDAJEWICZ

          Show
          mramonleon Ramon Leon added a comment - Changed, if you don't mind Allan BURDAJEWICZ
          Show
          mramonleon Ramon Leon added a comment - The PR:  https://github.com/jenkinsci/support-core-plugin/pull/185

            People

            • Assignee:
              allan_burdajewicz Allan BURDAJEWICZ
              Reporter:
              allan_burdajewicz Allan BURDAJEWICZ
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: