Azure Container App: /proc/meminfo Reports Incorrect Memory Allocation

Dev 0 Reputation points
2025-06-28T09:18:12.8033333+00:00

I've created an Azure Container App container with Consumption-GPU-NC24-A100 workload profile.

This workload profile supports upto 220GiB of memory and 24 CPU cores. However, I have configured it to 2 cores and 24GiB RAM, as seen in this screenshot:

User's image

Despite this, running nproc and free -h inside the container returns the original, maximum values:

User's image

...which is completely incorrect as I have clearly provisioned the container with a fraction of the maximum resources. I am able to view the correct values in cgroup:

User's image

I believe this is a bug in Azure. We expect /proc/meminfo to return the true memory available to my container.

Please look into this issue on priority, as it is causing all my programs to be terminated by the OOM killer because of trying to allocate more memory than is actually available.

Thank you,

Dev

Azure Container Apps
Azure Container Apps
An Azure service that provides a general-purpose, serverless container platform.
686 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.