OOM error despite graphs indicating enough RAM left

Hey there,

I have a machine running pocketbase on shared-cpu-1x@1024MB — every now and then when a burst of requests comes in it’ll exit due to OOM.

[   13.197318] Out of memory: Killed process 326 (pocketbase) total-vm:2162880kB, anon-rss:879132kB, file-rss:0kB, shmem-rss:0kB, UID:0 pgtables:1996kB oom_score_adj:0

At the same time the Grafana charts don’t show the memory approaching a critical level:

I tried setting GOMEMLIMIT="800MiB" but the machine still OOMs on request bursts.

Are there any other recommendations for running Go containers?

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.