ArchitectureReconciler
The OOM watcher
The OOM watcher writes a warning in the server log each time the kernel kills a container for memory.
A container goes over its memory limit. The kernel kills it.
1 / 4
The OOM watcher follows the oom events of Docker for the containers of this server.
instance a1b2c3 of service 'web' ran out of memory (limit 512 MiB) — raise the service's memory limitWhy it exists
The kernel does the OOM kill. Docker then restarts the container by itself. Then Docker clears the flag that tells about the kill.
Without the watcher, nobody sees a container that crashes again and again at its memory limit.