Closed versus-orel closed 2 weeks ago
Did you configure resource limits (notably spec.containers[].resources.limits.memory
) for the container?
If not GC will see your machines entire memory as available and will have little reason to conserve memory.
Thank for your quick response. I think not configured. I will check it out soon.
I limited the resource given and container doesn't exceed that memory. Thank you very much. But I am wondering how much memory I should give to container beforehead? closing the issue
Description
I run local kubernetes cluster and use asp net core 8 docker container. Memory usage of pod increases and decreases time to time. I included pictures from metrics and results of dotnet-counters monitor command.
Reproduction Steps
used libraries are like this:
Expected behavior
not to consume too much memory
Actual behavior
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response