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

Fix QuarkusClassLoader leak in QuarkusProdModeTest #17956

Merged
merged 1 commit into from
Jun 16, 2021

Conversation

geoand
Copy link
Contributor

@geoand geoand commented Jun 16, 2021

This could result in the tests either hanging or the
process dying because of insufficient metaspace.

The changes were made after figuring out what was holding onto the QuarkusClassLoader via analysis of the memory dump

This could result in the tests either hanging or the
process dying because of insufficient metaspace
@@ -638,6 +625,7 @@ public void afterAll(ExtensionContext extensionContext) throws Exception {
try {
if (curatedApplication != null) {
curatedApplication.close();
curatedApplication = null;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change was probably enough to fix the issue, but when analyzing I found the timer one first and then this

@Sanne Sanne merged commit 7e3fea5 into quarkusio:main Jun 16, 2021
@quarkus-bot quarkus-bot bot added this to the 2.1 - main milestone Jun 16, 2021
@geoand geoand deleted the prod-mode-test-leak branch June 17, 2021 06:01
@gsmet gsmet modified the milestones: 2.1 - main, 2.0.0.Final Jun 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants