[JIRA] (JENKINS-58165) support-core doesn't take into account %t on GC logs

0 views
Skip to first unread message

manuelramonleonjimenez@gmail.com (JIRA)

unread,
Jun 24, 2019, 9:52:02 AM6/24/19
to jenkinsc...@googlegroups.com
Ramon Leon created an issue
 
Jenkins / Bug JENKINS-58165
support-core doesn't take into account %t on GC logs
Issue Type: Bug Bug
Assignee: Emilio Escobar
Components: support-core-plugin
Created: 2019-06-24 13:51
Priority: Minor Minor
Reporter: Ramon Leon

When you specify %t in the log file for garbage collection:
Xloggc:$path/gc%t.log: specifies where the verbose GC data is written to. The %t in the gc log file path will cause the JVM to generate a new file with each JVM restart with a timestamp.
From: https://go.cloudbees.com/docs/solutions/jvm-troubleshooting/

The support-core plugin cannot find the log file used for that, so it doesn't include the file in the bundle. It throws the warning:

Jun 24, 2019 3:42:25 PM com.cloudbees.jenkins.support.impl.GCLogs addContents
WARNING: [Support Bundle] GC Logging apparently configured, but file '/JENKINS HOME PATH/gc-%t.log' not found

The reason is that the code looks for the exact file name, but it should be a pattern:
https://github.com/jenkinsci/support-core-plugin/blob/5fb61461e578fa82190c8a1f1dd5efd95235702f/src/main/java/com/cloudbees/jenkins/support/impl/GCLogs.java#L80

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

ddigtiar@cloudbees.com (JIRA)

unread,
Jul 4, 2019, 7:47:03 PM7/4/19
to jenkinsc...@googlegroups.com
Denys Digtiar commented on Bug JENKINS-58165
 
Re: support-core doesn't take into account %t on GC logs

If you read closer the %p and %t are supported but the logic method is only called when the -XX:+UseGCLogFileRotation is present.

ddigtiar@cloudbees.com (JIRA)

unread,
Jul 4, 2019, 7:47:03 PM7/4/19
to jenkinsc...@googlegroups.com
Denys Digtiar edited a comment on Bug JENKINS-58165

aburdajewicz@cloudbees.com (JIRA)

unread,
Aug 18, 2019, 7:39:03 PM8/18/19
to jenkinsc...@googlegroups.com
Allan BURDAJEWICZ assigned an issue to Allan BURDAJEWICZ
 
Change By: Allan BURDAJEWICZ
Assignee: Emilio  Escobar Allan BURDAJEWICZ

aburdajewicz@cloudbees.com (JIRA)

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

aburdajewicz@cloudbees.com (JIRA)

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

aburdajewicz@cloudbees.com (JIRA)

unread,
Oct 2, 2019, 7:33:10 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:03 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