Affects: 5.2.0.RC1
In our application I upgraded from spring-framework 5.1.9 to 5.2.0.RC1 and our tests started leaking memory.
Previously it looked like this in VisualVM:

And now it looks like this:

I've made a heapdump to see where the memory is going:

I've seen something similar in our application previously, but that was solved by using @MockBean instead of a lot of @ContextConfiguration with @Configuration classes inside our test classes to override beans with mocked objects 🤔...
Affects: 5.2.0.RC1
In our application I upgraded from spring-framework 5.1.9 to 5.2.0.RC1 and our tests started leaking memory.
Previously it looked like this in VisualVM:
And now it looks like this:
I've made a heapdump to see where the memory is going:
I've seen something similar in our application previously, but that was solved by using
@MockBeaninstead of a lot of@ContextConfigurationwith@Configurationclasses inside our test classes to override beans with mocked objects 🤔...