Skip to content
← Back to activity

Immutable solution version

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

Version 2Sign in to save

Complete solution

Shows how to fix metabase 0.50.x high CPU and OOM crashes after upgrading from 0.49. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

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.

Steps

  1. - Downgrading back to 0.49.12 (made the symptoms go away).
  • MB_SQL_PARSING_ENABLED=false (helped some setups but not the OOMs).
  1. The durable fix is the patched release, not a config flag.

When to use

You are seeing this: 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. Use this skill when you run into "Metabase 0.50.x high CPU and OOM crashes after upgrading from 0.49".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

Versions mentioned in the source: 0.49.12, Metabase 0.50.7. If you are on something much newer or older, the details may have shifted.

Why this happens

This was a real regression in the 0.50 line, not a config problem.

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 2 · 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>