Weaviate Out of Memory (OOM Killed)

Share
Workaround available Docker, Kubernetes, self-hosted Updated November 15, 2026Based on 3 user reportsHow we research

Quick answer

Weaviate gets OOM-killed when memory grows faster than the Go garbage collector frees it, usually during fast imports. Set GOMEMLIMIT or LIMIT_RESOURCES and size memory at roughly 2x your vector footprint.

Most likely fix: Cap the Go runtime

How to fix it

Try these in order — the most common fix is first.

  1. 1. Cap the Go runtime

    1. Set GOMEMLIMIT to roughly 80-90% of the memory available to Weaviate
    2. Or set LIMIT_RESOURCES=true so Weaviate uses about 80% of memory
    3. Restart Weaviate and re-run the import
    Did this fix it?
  2. 2. Reduce the vector footprint

    1. Enable Product Quantization (PQ) and test recall on your data
    2. Use a lower-dimension embedding model
    3. Lower maxConnections and raise efConstruction or ef to compensate
    Did this fix it?
  3. 3. Add resources or slow the import

    1. Increase memory and CPU for the node
    2. Use dynamic batch sizing in the Python client
    3. Spread load across more nodes
    Did this fix it?

Symptoms

The container or pod restarts with OOMKilled, memory climbs to 100%, often during bulk imports.

Why it happens

  • Memory needed is about 2x the footprint of all vectors (vectors x dimensions x 4 bytes)
  • Very fast imports allocate memory faster than garbage collection frees it
  • No memory limit set for the Go runtime
  • Not enough RAM or CPU for the workload

This guide also covers

  • weaviate out of memory
  • weaviate oomkilled
  • weaviate memory usage
  • weaviate high memory

Still not working?

If Weaviate keeps failing, you're not alone. See every Weaviate problem users report or the alternatives people switch to.

Have an app idea? Our small team builds any software: web and mobile apps, games, desktop, AI tools. Price agreed together.

Talk to us
Fixed it? Share this guide

The same problem in other apps

All slow, laggy or resource-hungry guides →

Other Weaviate errors