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
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:
@Configurationbeans@Asyncwith cglib based proxy causes memory leak in permgenBackported to: 3.1.4
8 votes, 6 watchers