D
D
Daniil Muidinov2022-02-11 14:45:24
.NET
Daniil Muidinov, 2022-02-11 14:45:24

How to diagnose OOM dotnet applications in a container?

There is a dotnet service in a container built on the basis
of mcr.microsoft.com/dotnet/aspnet:6.0

The service is launched in k8s and regularly crashes with OOM, and not just crashes, but explodes with 30% of memory usage immediately in OOM, no matter what limits you set for it

What Is there a way to create a dump in such a case?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vadim, 2022-02-11
@Viji

1. Is it possible to run this service first without a container and see what happens on the local machine?
https://docs.microsoft.com/en-us/dotnet/core/diagn...
2. Usually such an explosion is preceded by some logs - run dotnet in diag mode: dotnet run --diagnostics. Containers, even dead ones leave some logs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question