Skip to content
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 #1409

Closed
okarlsson opened this issue Apr 5, 2018 · 1 comment
Closed

Freeing up memory from ArrayPools #1409

okarlsson opened this issue Apr 5, 2018 · 1 comment

Comments

@okarlsson
Copy link

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.

image

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?

@Petermarcu
Copy link
Member

Issue moved to dotnet/coreclr #17434 via ZenHub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants