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

ClassLoader leak with @Async, CGLIB and DefaultListableBeanFactory [SPR-11776] #16398

Closed
spring-projects-issues opened this issue May 12, 2014 · 6 comments
Assignees

Comments

@spring-projects-issues
Copy link
Collaborator

spring-projects-issues commented May 12, 2014

Colin McQueen opened SPR-11776 and commented

When redeploying a Spring application, Perm gen keeps increasing along with the classes loaded. I looked at the heap dump file using Eclipse MAT and it suspected that DefaultListableBeanFactory class was a leak.


Affects: 3.2.8

Attachments:

Issue Links:

1 votes, 5 watchers

@spring-projects-issues
Copy link
Collaborator Author

Colin McQueen commented

I excluded weak/soft/phantom refs and it looks like it has to do with the @Async annotation.

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented May 12, 2014

Juergen Hoeller commented

This looks suspiciously like #15899, which got fixed in 3.2.7. Can you please double-check which Spring Framework 3.2.x version you have tested this against? If the problem actually remains against 3.2.8, I wonder whether the fix for #15899 was somehow lacking...

Juergen

@spring-projects-issues
Copy link
Collaborator Author

Colin McQueen commented

I checked again and I am using version 3.2.8.

@spring-projects-issues
Copy link
Collaborator Author

Kohei Tamura commented

Does anyone know a workaround?

@spring-projects-issues
Copy link
Collaborator Author

spring-projects-issues commented Jul 7, 2014

Stéphane Nicoll commented

There was a repro project provided on #15899 which shows that the original issue has been fixed. I am trying to understand what could differ in your particular scenario.

I tried to update this sample app to boot but I was unable to find any issue with it.

Would you be able to submit a minimal project that reproduce this issue with 3.2.8 or later? Thanks!

@spring-projects-issues
Copy link
Collaborator Author

Stéphane Nicoll commented

I could not find any way to reproduce the issue. Could you please provide a sample project.? If not, I am afraid there's not much we could do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants