@Async with cglib based proxy causes memory leak in heap [SPR-11275] #15899
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Lukasz Rozek opened SPR-11275 and commented
running mvn clean package && mvn exec:exec
against repro project that can be found here
https://github.com/lrozek/spring-leak
or https://github.com/lrozek/spring-leak/archive/master.zip
or git clone https://github.com/lrozek/spring-leak.git
causes java.lang.OutOfMemoryError: GC overhead limit exceeded
Here is sample of stack trace:
Here is another stacktrace:
Stack traces differ from run to run depending where OOME was thrown. Sometimes exception isn't thrown but than in the console there are only logs of garbage collector activity
java:
maven:
Here is the screenshot of the heap when OOME is about to be thrown
!heap leak.png!
Affects: 3.2.6, 4.0 GA
Reference URL: https://github.com/lrozek/spring-leak
Attachments:
Issue Links:
@Async
, CGLIB and DefaultListableBeanFactory@Async
with cglib based proxy causes memory leak in permgenBackported to: 3.2.7
The text was updated successfully, but these errors were encountered: