FerryDocs

When an app runs out of memory

The kernel stops a container that goes above its memory limit, and Docker starts it again.

Edit on GitHub
stopsstarts againKernelapiabove 512 MiBDockerServer logof ferryd

The container goes above its memory limit.

1 / 4

A run does not start again. It fails.

Find the kills

Terminal
journalctl -u ferryd | grep 'ran out of memory'

ferry status NAME and the dashboard mark a killed instance while it restarts. But Docker forgets the kill when the container runs again. Thus the is the record.

During a deploy

If a new instance runs out of memory, the deploy fails. The old instances continue to answer.

Error of the deploy
instance ab12cd ran out of memory (limit 512 MiB) — raise the service's memory limit

Resource limits lists each message and how to fix it.

On this page