-
Improvement
-
Resolution: Fixed
-
Major
-
None
-
support-core:2.34+
-
-
support-core-2.62
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.
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.