[JIRA] (JENKINS-58980) support-core should only collect the latest GC logs

22 views
Skip to first unread message

aburdajewicz@cloudbees.com (JIRA)

unread,
Aug 18, 2019, 9:18:03 PM8/18/19
to jenkinsc...@googlegroups.com
Allan BURDAJEWICZ assigned an issue to Allan BURDAJEWICZ
 
Jenkins / Bug JENKINS-58980
support-core should only collect the latest GC logs
Change By: Allan BURDAJEWICZ
Assignee: Emilio  Escobar Allan BURDAJEWICZ
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

aburdajewicz@cloudbees.com (JIRA)

unread,
Aug 18, 2019, 9:18:03 PM8/18/19
to jenkinsc...@googlegroups.com
Allan BURDAJEWICZ created an issue
Issue Type: Bug Bug
Assignee: Emilio Escobar
Components: support-core-plugin
Created: 2019-08-19 01:17
Environment: support-core:2.34+
Priority: Major Major
Reporter: Allan BURDAJEWICZ

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.

aburdajewicz@cloudbees.com (JIRA)

unread,
Aug 18, 2019, 9:22:02 PM8/18/19
to jenkinsc...@googlegroups.com
Allan BURDAJEWICZ commented on Bug JENKINS-58980
 
Re: support-core should only collect the latest GC logs

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.

aburdajewicz@cloudbees.com (JIRA)

unread,
Aug 18, 2019, 9:43:02 PM8/18/19
to jenkinsc...@googlegroups.com
Allan BURDAJEWICZ started work on Bug JENKINS-58980
 
Change By: Allan BURDAJEWICZ
Status: Open In Progress

aburdajewicz@cloudbees.com (JIRA)

unread,
Aug 18, 2019, 11:36:02 PM8/18/19
to jenkinsc...@googlegroups.com

manuelramonleonjimenez@gmail.com (JIRA)

unread,
Aug 21, 2019, 10:30:02 AM8/21/19
to jenkinsc...@googlegroups.com
Ramon Leon commented on Bug JENKINS-58980
 
Re: support-core should only collect the latest GC logs

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?

egutierrez@cloudbees.com (JIRA)

unread,
Aug 21, 2019, 10:35:02 AM8/21/19
to jenkinsc...@googlegroups.com

manuelramonleonjimenez@gmail.com (JIRA)

unread,
Aug 21, 2019, 10:36:02 AM8/21/19
to jenkinsc...@googlegroups.com
Ramon Leon updated an issue
 
Jenkins / Improvement JENKINS-58980
Change By: Ramon Leon
Issue Type: Bug Improvement

manuelramonleonjimenez@gmail.com (JIRA)

unread,
Aug 21, 2019, 10:37:02 AM8/21/19
to jenkinsc...@googlegroups.com

manuelramonleonjimenez@gmail.com (JIRA)

unread,
Aug 21, 2019, 11:27:02 AM8/21/19
to jenkinsc...@googlegroups.com

aburdajewicz@cloudbees.com (JIRA)

unread,
Oct 2, 2019, 7:33:12 AM10/2/19
to jenkinsc...@googlegroups.com
Change By: Allan BURDAJEWICZ
Status: In Review Fixed but Unreleased
Resolution: Fixed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

egutierrez@cloudbees.com (JIRA)

unread,
Oct 4, 2019, 5:44:05 AM10/4/19
to jenkinsc...@googlegroups.com
Change By: Evaristo Gutierrez
Status: Fixed but Unreleased Resolved
Released As: support-core-2.62
Reply all
Reply to author
Forward
0 new messages