-
Notifications
You must be signed in to change notification settings - Fork 97
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 usage of SharedImagePool keeps growing #285
Comments
One approach for getting to the bottom of this is to use Pipeline Diagnostics. Create your pipeline with |
Thank you. Missing a LatestMessage might be a reason. I will reply with my findings. |
I think I have an idea of what might be going on. I suspect the images are getting queued inside the Now, as to how to change your code to address this increasing memory issue, my suggestion would be to use a dense clock stream. (And this is a more general comment, generally you want to join dense streams). From your comments, it looks like your clock stream is a sparse stream perhaps signaling that a face was detected. Instead, can you construct a dense boolean stream (false when no face, true when face is detected) and do the join, and then filter out on the resulting tuples the ones that do not correspond to a face by using a Another alternative you can use, but this loses the exact match synchronization based on originating times is the Hope this helps, but let us know what you find. |
Hello, I am writing a composite component. The memory usage of the shared memory pool grows when a Join operator does not receive data from its primary stream.
The secondary stream of that Join operator is a video stream. I set delivery policies to
LatestMessage
so nothing should be queued at receivers' queues.The growth of memory usage stops when a new data frame is available on the primary stream. That means, images on the secondary stream are queued, and the shared image pool is requesting more memory from the operating system.
I do not know why this happens, please help. Here is my code:
Thank you
The text was updated successfully, but these errors were encountered: