Skip to content

Memory sometimes leaks in ASP.Net Core 2.1 #7232

@pgrm

Description

@pgrm

Describe the bug

image

This is the memory consumption of our application over the last month. Each line is a docker container. We enforced a memory limit of 2GB and increased that to 3GB few days ago. A line stops when the container is shut down either due to a newer version being deployed or due to reaching the memory limit.

What's interesting is, that sometimes the application can maintain a stable memory consumption, while other times it's just completely out of control. The amount of requests and types of requests are fairly stable over time. We have ~6-10 requests / second split across 3 containers, so ~2-3 requests / second / container, where ~95% of the requests are the same 10 requests being polled all the time.

Here is another snapshot of the memory consumption over a longer period of time:

image

We tried to analyze the application using perfcollect and creating a core dump with lldb, but it didn't really help us understand the problem. Maybe we were unlucky in that we did it exactly, when the problem didn't occur.

The CPU usage of the host nodes is well below 10% and we aren't limiting it for the containers

Any idea where we could look next, or what we could try?

Thank You!

Expected behavior

To have a stable memory consumption all the time

Additional context

Our containers are based on microsoft/dotnet:2.1-aspnetcore-runtime

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions