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

.NET Core 2.0 Kestrel Garbage Collection Concern #871

Closed
antonellil opened this issue Aug 20, 2017 · 4 comments
Closed

.NET Core 2.0 Kestrel Garbage Collection Concern #871

antonellil opened this issue Aug 20, 2017 · 4 comments

Comments

@antonellil
Copy link

antonellil commented Aug 20, 2017

All,

I am using .NET Core 2.0 in a Docker container via the microsoft/dotnet:2.0-sdk image on a Digital Ocean droplet running Docker 1.12.3 on Ubuntu 16.04, with 2GB of RAM and 2 CPUs.

Below is the memory timeline I am seeing from the past 6 hours, with around 120 users accessing the site in those 6 hours.
image

Below are the relevant portions of my .csproj and Program.cs files.

.csproj
image

Program.cs
image

I am using standard 2.0 Kestrel as provided in the CreateDefaultBuilder.

Any help would be extremely appreciated so I do not have to manually restart the docker image on server to reset the memory. I am aware that there is a Server Garbage Collection key that can be added to the csproj, but unsure if that could be the solution.

Thank you!

@antonellil
Copy link
Author

Update:
image

Seems to have leveled off and is GC'ing correctly. But still very interesting behavior that would be good to get to the bottom of

@antonellil
Copy link
Author

And.... it seems to have begun rising yet again. Definitely concerning.

image

@halter73
Copy link
Member

@antonellil In case you're not seeing the back references, I want to point out that this might be caused by an issue reading cgroup limits described in dotnet/coreclr#13489

@antonellil
Copy link
Author

@halter73 great find, yes this seems to be related

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