System.OutOfMemoryException .net core docker in k8s
Not sure how to go about troubleshooting this issue and thought maybe someone could point me in the right direction.
I’m running a .net 5 ( tried with 3.1 as well) on k8s with a docker running the 5.0-buster-slim.
When performing continuous request operations on large datasets I get a System.OutOfMemoryException.
The node I have has 4gb ram with 2.5 usable.
The deployment allows for 2gb ram for my pod.
I tried setting
to work in a workstation GC mode.
as well as setting the System.GC.HeapHardLimit
Appreciate any reply.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×