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

support-core should only collect the latest GC logs

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • support-core-plugin
    • None
    • support-core:2.34+
    • 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

          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.

          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.
          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 egutierrez?

          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 egutierrez ?

          I agree

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

          Changed, if you don't mind allan_burdajewicz

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

          People

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

            Dates

              Created:
              Updated:
              Resolved: