FerryDocs

Out-of-memory kills

An OOM kill stops a container that uses more memory than its limit.

Edit on GitHub
ferry status api
api: degraded — 1/2 instance(s) running
INSTANCE   DEPLOY     STATE                                    PORT    CPU              MEMORY                  RESTARTS   STARTED
3f2a1c     7d0e52aa   running                                  63012   2.1% / 0.5 CPU   301.4 MiB / 512.0 MiB   0          12m ago
9b4e07     7d0e52aa   restarting (OOM killed, exit code 137)   -       -                -                       3          -
note: instance 9b4e07 was killed for running out of memory (limit 512 MiB). Raise the limit with 'ferry update api --memory <SIZE>', then 'ferry restart api'.

ferry status shows the memory of each instance and its limit. An has the mark OOM killed. The note: line tells you how to repair it.

Repair it

Give the service more memory, then restart it. Or find the memory leak in your app.

Terminal
ferry update api --memory 1G
ferry restart api
ferry db update cache --memory 512M     # a datastore: no restart needed

In the dashboard

Open the Overview of the service. The card of the instance shows an OOM killed badge with the . The Raise the limit link opens Settings → Resources.

On this page