-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Freeing up memory from ArrayPools #10099
Comments
Assuming Future. |
@okarlsson I mentioned this to @JimBobSquarePants and he mentioned there is a article about memory use for ImageSharp; it also has fine grained control over its pooling with the HTH |
Awesome, thanks for the tip @benaadams |
@okarlsson also make sure to use the latest (beta-3) version of ImageSharp! Based on your stack trace, you are using an earlier version, where the memory management is immature and sub-optimal! |
Will do @antonfirsov , thanks! |
Due to lack of recent activity, this issue has been marked as a candidate for backlog cleanup. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will undo this process. This process is part of our issue cleanup automation. |
This issue will now be closed since it had been marked |
@okarlsson commented on Thu Apr 05 2018
Hey Guys!
I'm running a .NET Core application in a docker container that runs in a EC2 instance on AWS.
I have a function for resizing profile images before they get uploaded and I'm using a third party library called ImageSharp for this. The library uses ArrayPools when handling the images and my memory usage shoots up to about 1GB after handling a image.
But after the request has completed the memory usage never goes back, but is allocated to these memory pools.
Since I only have 1GB memory in my EC2 instance the entire instance crashes if I try to for example deploy a new version of my app when there is only 70MB memory available.
Is there any way to free up the memory allocated to the ArrayPools after I have finished a request so my containers don't run out of memory?
The text was updated successfully, but these errors were encountered: