-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Memory leak on connection loss #26
Comments
I pushed 37c9423 to branch issue-26-memory-leak-fix. Can you give it a try? Deallocation happens using netty the same way resources are allocated. |
You can set the log level to |
I will give it a shot. Sadly I don't have a good way to reproduce yet. |
hm. Looks like a feature request :) |
SSL wrapping? That might have actually helped avoid all of these issues. Lettuce would have known the connection is not really up and it's only the SSL tunnel that's up. |
Yep. Created issue #28 |
Another thing that could have helped avoid this is a more thorough handshake that verified Lettuce is talking to Redis on the other side before beginning to dispatch commands. Maybe a ping/pong sequence first. |
No luck reproducing yet. |
Still not able to reproduce the exact issue, but I was able to confirm this fix is good. Instead of bad bytes, I got plain old connection reset by peer. When Redis goes down and Lettuce reconnects |
Setting this one to resolved. The SSL issue is addressed with issue #28 |
3.0.3.Final released |
Thanks! :) |
There seems to be a memory leak on reconnection. This seems to be related to a very specific way of the connection going down because I don't always see it and I only see it together with the state exception.
I'm using Netty 4.0.25 with pooled buffers
-Dio.netty.allocator.type=pooled
To get the stack I use
-Dio.netty.leakDetectionLevel=advanced
Latest lettuce 3.0.2.
I'll share more information when I find it.
The text was updated successfully, but these errors were encountered: