Oct 28, 2026
DuckDB Memory Management
DuckDB defaults to consuming 80% of system RAM for its buffer pool. On a developer laptop with 16 GB, that’s fine. In a 2 GB Kubernetes pod, that’s 1.6 GB — leaving 400 MB for the Go or JVM runtime, the application, and the OS. That’s how you get OOM-killed. This post walks through how DuckDB manages memory in-process, what happens when queries exceed the memory limit, and how to tune settings for container deployments.