-
Notifications
You must be signed in to change notification settings - Fork 599
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
AutorecoveringConnection Memory Leak #1808
Comments
@NathanielAB - it would be greatly appreciated if you took the time to do the following:
|
@NathanielAB I can't make progress without more information. Related issues / comments:
So, it seems that #1784 didn't really fix the issue around timer leaks. Pinging people who worked on this issue before to see if they can contribute: |
Hi sorry for the late reply, I will try and produce a small POC console application. The tool I used was visual studio I got a memory dump (.gcdump) and analyzed it there. It shows the root (multiple references nested within each other of TimerQueue) and the referenced types, the types generating the TimerQueues, mostly RabbitMq. It seems to be happening when there is a recovery of a connection, because the specific method causing these instances is |
Thank you @NathanielAB. It would also be great to know if you're using .NET core or a |
.NET Core |
@NathanielAB if you aren't able to provide code to reproduce the issue, could you log all first-chance-exceptions when this problem presents itself? I think what may be happening is that an exception is being thrown here: ...and this prevents this cancellation token source from being disposed: I'm making some code changes and can have a 7.1.3 alpha release available soon, as well. |
@NathanielAB - you can get https://www.myget.org/feed/rabbitmq-dotnet-client/package/nuget/RabbitMQ.Client It includes code from PR #1814. |
@NathanielAB any updates from you? I'd like to wrap this issue up this week, thanks. |
Hi @lukebakken we have ran the alpha package and seems to have helped with the leak, thank you! |
OK, by "helped" you mean it's fixed, correct? Could you please log first-chance exceptions? I would like to know which exception is causing the existing code to skip |
Yes seems like it has been fixed. Will try to investigate regarding first chance exceptions |
Im only seeing the following, nothing in the
and
|
Thank you! I will release version 7.1.3 today. |
Describe the bug
Hi we have noticed a large amount of TimerQueues when using RabbitMq latest version 7.1.1, leading to an increase in memory usage
Reproduction steps
Start multiple consumers in parallel threads and by time the memory usage increases
Expected behavior
No memory leaks when connecting to multiple consumers
Additional context
No response
The text was updated successfully, but these errors were encountered: