Description
Currently, spring-boot allows for the configuration of netty's leak detection strategy. Althought that is very useful, but for debugging purposes in tests, it is not enough.
ResourceLeakDetector
itself also has the targetRecords
property, that basically allows for batching the errors related to leak detection. And that sometimes is very, very useful to configure this property for tests to 1
for instance to ease the debugging the memory leakage problems in applications that use netty.
So I propose to at least add the targetRecords
configuration option, and, probably, the samplingInterval
should also be configurable as well. Althought, I personally did not used to tackle it in tests or in general.
P.S: I can assit with the solution for this issue