Skip to content

MemoryLeak in Cglib2AopProxy.ProxyCallbackFilter [SPR-8008] #12663

Closed
@spring-projects-issues

Description

@spring-projects-issues

Tommy Becker opened SPR-8008 and commented

We are having issues with OOM errors during unit test runs. The runs setup and subsequently tear down a lot of Spring contexts, and we're noticing the BeanFactory instances are not getting cleaned up. Analysis of heap dumps shows that the Cglib2AopProxy.ProxyCallbackFilter, which is cached by cglib, maintains a chain of strong references back to the BeanFactory. Did some searching and it looks like the same type of problem as described in this older issue:

https://jira.springsource.org/browse/SPR-3620

Attached is a graphic showing the reference chain.


Affects: 3.0.3

Reference URL: http://forum.springsource.org/showthread.php?t=104193

Attachments:

Issue Links:

Backported to: 3.1.4

8 votes, 6 watchers

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions