Skip to content

MemoryOOMKilled

Severity critical
Fires when The container of the service was stopped because it reached its memory limit (an OOM kill) in the last 15 minutes, for 5 minutes

What it means

The service used all memory of its limit. The operating system stopped the container to free the memory (OOM kill: out of memory kill). The platform then started the container again. The memory limit comes from the compute plan of the instance.

The alert resolves by itself when no new OOM kill happens for 15 minutes.

MemoryCritical warns about high memory usage only after 2 hours. A fast increase of the memory usage can cause an OOM kill before MemoryCritical fires. This alert tells you about the OOM kill itself.

What happens if you do nothing

The service was not available while the container restarted. If the cause stays, the next OOM kill comes soon, and the service restarts again and again.

What to do

  1. Check the state and the memory usage. Open the Technical details tab on the instance detail page. In the Pods table, the Phase and Ready columns show if the service runs again. The Memory column shows the usage against the limit. See Monitor an Instance.
  2. Check the logs from the time before the restart. See View Logs.
  3. Find out what used the memory. Common reasons:
    • A short peak of traffic, or a large job (for example an import, a batch job, or a large query).
    • A new version of your application that uses the service in a different way.
    • A recent change to the instance configuration. The audit log lists all changes.
  4. Reduce the load, if the high usage is not expected. The steps in the MemoryCritical runbook for your service also apply here.
  5. If the load is expected, move the instance to a larger compute plan. See Scaling. A compute plan change can cause a short restart.