-
Notifications
You must be signed in to change notification settings - Fork 626
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 AsyncRabbitTemplate #2696
Comments
@tetrade , thank you for the report! I'd be happy to fix the problem, but I don't understand how to read that object tree. Any chances to determine what you are doing in your code with this |
@artembilan |
In short, I just use Rabbit to send a photo to a third-party service for processing and wait for a response via Direct Reply-to. When all the Future (many photos have been analyzed) are completed, I consider the project processed and upload everything to the user. I initially thought that I was mistaken, because I have an internal ConcurrentMap in my code that takes into account the Id of the photo and stores it as the value of RabbitFuture so that when re-requesting it, I understand where to wait for a response. However, given my implementation, there is hardly a leak there. And the profiler shows that there is a leak in scheduled tasks in Java |
As you see the logic there is like this:
So, such a timeout task is scheduled to be executed after that You can set an external Again: this is just an assumption since I don't see how else those |
I also had
Causes of memory leaks
Expect it to be fixed in version 2.4.x,Looking forward to your reply @artembilan |
Thank you for investigation! I will into that code today. However we are not going to back-port the fix into |
I think this was fixed via: #2724 and released as a part of the So, treating this as a |
OK, Thanks |
Version 3.1.4.
I recently wrote about a bug with a memory leak that occurred due to the fact that the internal pending map was not cleaned up after receive message.
Now everything works better, but you can see that for some reason some Messages still remain indefinitely in memory.
The text was updated successfully, but these errors were encountered: