Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JENKINS-58771] Warn if ChannelShutdownListener loaded outside of a test context #194

Merged

Conversation

jglick
Copy link
Member

@jglick jglick commented Jan 17, 2020

Has happened multiple times especially prior to jenkinsci/maven-hpi-plugin#140 that ChannelShutdownListener is found in customer heap dumps, apparently due to mispackaged plugins. This can lead to memory leaks as every Channel ever created (and all of its ExportTables etc.) gets held onto.

This should warn about it, and make it clear where the culprit is, such as /var/lib/jenkins/plugins/xray-for-jira-connector/WEB-INF/lib/jenkins-test-harness-2.13.jar from XRAYJENKINS-55.

@jglick jglick added the bug label Jan 17, 2020
@batmat batmat requested a review from varyvol January 18, 2020 19:32
Copy link
Member

@oleg-nenashev oleg-nenashev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is rather a feature than a bug, but LGTM anyway

@oleg-nenashev oleg-nenashev merged commit 091f119 into jenkinsci:master Jan 20, 2020
@jglick jglick deleted the ChannelShutdownListener-JENKINS-58771 branch January 20, 2020 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants