rsocket/rsocket-java

Potential memory leak with DefaultRSocketClient not READY

a701440 opened this issue · 5 comments

RSocket version 1.1.0

I am still investigating the issue, but it appears that there may be a memory leak with DefaultRSocketClient subscribers array
(ResolvingOperator.subscribers). When rsocket operations like "fireAndForget" or "requestResponse" are issued they are added to the array of subscribers (I assume waiting for the READY state). If these operations also use a timeout and are cancelled they don't seem to be removed from the subscribers array. If the client does not reach the READY state quickly (networking issues, etc) it's possible to have a pile-ip of these subscribers in the array.

heapdump

Hey, @a701440!

Can you check that issue with 1.1.1 please?

Thanks

So far I could not reproduce in a test on both 1.1.0 and 1.1.1.

we had a bug in 1.1.0 related to the DefaultRSocketClient impl but it was fixed in 1.1.1, thus, I can only recommend migrating to 1.1.1 and let us know if this issue is still happening at your prod runtime

closing since seems to be fixed