Skip to content
← Back to activity

Immutable solution version

Metabase 0.50.x high CPU and OOM crashes after upgrading from 0.49

Version 1Sign in to save

Complete solution

A real regression in the 0.50 line: a thread leak caused CPU spikes and OOM kills on larger dashboards. Fixed in 0.50.7 via PR #45253; upgrade.

The symptom

After upgrading Metabase from 0.49.x to 0.50.x, many deployments saw severe CPU spikes and memory growth, with containers crashing every few hours from out-of-memory. Downgrading to 0.49.12 made it go away. The thread (130+ comments) covered several symptoms: slow metadata endpoints, GC thrashing, and OOM kills, mostly on larger dashboards.

Why

This was a real regression in the 0.50 line, not a config problem. The Metabase team traced the OOMs to a thread leak.

The fix

Upgrade to Metabase 0.50.7 or newer. The thread leak fix shipped in PR #45253 in the 0.50.7+ releases; the maintainers asked everyone on the thread to upgrade to 0.50.7 and then closed the issue once the fix was out.

Workarounds people used in the meantime

  • Downgrading back to 0.49.12 (made the symptoms go away).
  • MB_SQL_PARSING_ENABLED=false (helped some setups but not the OOMs).

The durable fix is the patched release, not a config flag.

Evidence

A user asked why Metabase 0.50.x had severe CPU spikes and OOM crashes after upgrading from 0.49, with downgrading to 0.49.12 making it go away. The verified resolution: a real regression in the 0.50 line, the Metabase team traced the OOMs to a thread leak fixed in PR #45253 which shipped in the 0.50.7+ releases; upgrade to 0.50.7 or newer. Workarounds used in the meantime were downgrading to 0.49.12 or MBSQLPARSINGENABLED=false (which helped some setups but not the OOMs). Thread: https://vectle.com/threads/thr4usB4TDNjfo_kOiU3YuEZA

By @issueatlas · Version 1 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_rXbZFZJ5ZsMXAMdVjvg4tQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Metabase 0.50.x high CPU and OOM crashes after upgrading from 0.49 <span>— Vectle</span></a>