Metabase minimum memory on a 1GB VPS, measured: Metabase v0.65.8 with Postgres on the same 1 GB Vultr box never became ready without swap. The default heap was OOM-killed twice, -Xmx512m restarted at least three times, and -Xmx256m hung the server. With the stock 2.4 GB swapfile and -Xmx512m, it was ready in 242.8 s and answered 20/20 queries.

The no-swap runs peaked at 479.0 to 553.6 MiB of container memory (docker stats) on a box with 955 MiB total, with free available down to 18 to 49 MiB. The swap run peaked at 661.1 MiB on first boot and used up to 1,157 MiB of swap. A 2 GB control with the default heap peaked at 1,050.6 MiB, more than the 1 GB plan has.

Featured image: Metabase v0.65.8 on a 1 GB VPS, three no-swap boots marked never ready next to one swap boot marked ready at 242.8 s, with the 955 MiB box total as a line
Featured image: Metabase v0.65.8 on a 1 GB VPS, three no-swap boots marked never ready next to one swap boot marked ready at 242.8 s, with the 955 MiB box total as a line

Metabase minimum memory on a 1GB VPS: every run

No heap setting got Metabase to /api/health ok on 1 GB without swap; one run with swap did. Each row is one run (n=1) starting with a first boot on an empty Postgres app database, so boot includes Metabase's one-time migrations.

RunBoxHeap (JAVA_OPTS)App DBSwapBoot to readyPeak container MEMKernel OOM kill / restarts
r011 GBnone (JVM max 232.0 MiB)Postgres 16offnot ready after 422.4 s502.1 MiByes: 2 OOM kills, RestartCount=2
r021 GB-Xmx512mPostgres 16offnot ready after 486.0 s553.6 MiBat least 3 JVM restarts (4 java PIDs); kernel log not captured
r051 GB-Xmx256mPostgres 16offnot ready after 636.7 s479.0 MiB (lower bound, 9 samples)unknown: server unreachable ~12 min, rebooted
r08 (run 1)1 GB-Xmx512m (JVM max 494.9 MiB)Postgres 16stock 2.4 GB filenot ready after 301.7 s, still seeding at ~6 min688.8 MiBno OOM line, RestartCount=0
run 21 GB-Xmx512m (JVM max 494.9 MiB)Postgres 16stock 2.4 GB file242.8 s; 195.0 s after a restart661.1 MiB (first boot)no OOM line, RestartCount=0
run 2 control2 GBnone (JVM max 475.6 MiB)Postgres 16off150.8 s; 90.4 s after a restart1,050.6 MiB (first boot)no OOM line, RestartCount=0

Peaks run from container start to the last sample (run 1) or to health ok (run 2), sampled every ~4 s, so real peaks may be higher. r07 (1 GB swap file) is left out: docker run failed, so no Metabase ran. Memory figures are binary units throughout: free -m, docker stats and the JVM's "Maximum memory available" line (which prints "MB") all count in MiB.

Bar chart Peak Metabase container memory (docker stats): r01 default heap, no swap 502.1 MiB (OOM-killed); r02 -Xmx512m, no swap 553.6 MiB; r05 -Xmx256m, no swap 479.0 MiB (lower bound); r08 -Xmx512m + swap 688.8 MiB (not ready at 301.7 s); run 2 1 GB -Xmx512m + swap 661.1 MiB (ready 242.8 s); run 2 2 GB default heap 1,050.6 MiB (ready 150.8 s); line at 955 MiB 1 GB box total
Bar chart Peak Metabase container memory (docker stats): r01 default heap, no swap 502.1 MiB (OOM-killed); r02 -Xmx512m, no swap 553.6 MiB; r05 -Xmx256m, no swap 479.0 MiB (lower bound); r08 -Xmx512m + swap 688.8 MiB (not ready at 301.7 s); run 2 1 GB -Xmx512m + swap 661.1 MiB (ready 242.8 s); run 2 2 GB default heap 1,050.6 MiB (ready 150.8 s); line at 955 MiB 1 GB box total

The box, versions and data behind these numbers

Runs used Vultr vc2-1c-1gb in Tokyo (1 vCPU, 1 GB, $5/mo per the Vultr API) on 2026-12-04 and 2026-12-05 UTC, Ubuntu 24.04.5 LTS, Docker 29.10.1. The control was vc2-1c-2gb ($10/mo). Metabase was open-source metabase/metabase:v0.65.8, still Latest on the GitHub releases page on 2026-12-05, with OpenJDK 25.0.5.1 (Temurin) inside. The app database was postgres:16, default settings, in a second container on the same box.

docker run -d --name mb --restart unless-stopped --network host \
  -e MB_DB_TYPE=postgres -e MB_DB_DBNAME=metabase -e MB_DB_PORT=5432 \
  -e MB_DB_USER=postgres -e MB_DB_PASS=<pw> -e MB_DB_HOST=127.0.0.1 \
  -e JAVA_OPTS=-Xmx512m metabase/metabase:v0.65.8

The data was a seeded Postgres database shop: 1,000,000 orders and 50,000 customers rows, 99 MB. The 20 queries were native SQL via /api/dataset (counts, group-by month, top-10, joins). The built-in Sample Database was never queried, and results at this size say nothing about a bigger warehouse.

One trap: Vultr's Ubuntu 24.04 image ships a 2.4 GB /swapfile that is already on (2,399 MiB in free -m). The no-swap runs used swapoff -a first.

Without swap, the 1 GB box hung before Metabase was ready

Without swap, Metabase's first boot ran the 1 GB box out of memory at all three heap settings.

  • Default heap (r01). The JVM picked a 232.0 MiB max heap. The kernel killed java twice (anon-rss 562,584 kB and 564,424 kB) and Docker restarted it. docker inspect still said OOMKilled=false, because the host kernel did the killing, not a container limit, so check dmesg.
  • -Xmx512m (r02). Four java PIDs in 31 samples: at least three JVM restarts. Available memory hit 18 MiB.
  • -Xmx256m (r05). Java's high-water mark reached 481,776 kB (470.5 MiB) under a 256 MiB heap cap, and the box stopped answering SSH for about 12 minutes until a reboot through the Vultr API.

On 1 GB with no swap, Metabase can take the whole server offline with it. Our swap vs OOM killer runs look at that trade-off on the same plan.

With the stock swapfile, -Xmx512m booted and answered queries

With the stock 2.4 GB swapfile on and -Xmx512m, Metabase was ready in 242.8 s, came back 195.0 s after a docker restart, and answered all 20 sequential queries with no OOM line. It got there by paging: swap use reached 1,157 MiB on first boot, and available RAM fell to 34 MiB.

Postgres paid part of the bill. In r08 its container fell as low as 4.7 MiB in docker stats while Metabase booted, its pages swapped out. For a lighter app sharing Postgres on this plan, see our Forgejo with Postgres test.

First-boot time is the shakiest number. Run 2 was ready at 242.8 s; r08, same image, heap and swap on another box earlier that night, finished migrations about 5.7 minutes after container start and was still seeding notifications, not ready, at about 6 minutes, where observation ended. Call it 4 minutes to a little over 6.

Phase (run 2)1 GB, -Xmx512m, swap on2 GB, default heap, no swap
First boot to ready242.8 s150.8 s
Restart to ready195.0 s90.4 s
20 queries one at a time: p50 / max / wall628 ms / 2851 ms / 16.1 s547 ms / 1908 ms / 12.5 s
Grouped bar chart Run 2: 1 GB with swap vs 2 GB without, seconds, three groups: first boot to ready 242.8 s (1 GB) vs 150.8 s (2 GB); restart to ready 195.0 s vs 90.4 s; 20 sequential queries wall 16.1 s vs 12.5 s
Grouped bar chart Run 2: 1 GB with swap vs 2 GB without, seconds, three groups: first boot to ready 242.8 s (1 GB) vs 150.8 s (2 GB); restart to ready 195.0 s vs 90.4 s; 20 sequential queries wall 16.1 s vs 12.5 s

Once booted, the 1 GB box answered every query in under 2.9 s on this small dataset.

Why the tested heap sizes don't fit in 1 GB without swap

Java's non-heap memory takes most of the RAM Ubuntu and an idle Postgres leave over, leaving a heap budget between about 3 and 202 MiB, below all three settings we ran (232.0, 256 and 512 MiB). -Xmx doesn't cap non-heap. The working:

  1. RAM left for Java. Before the run 2 container started, free -m showed 516 MiB available (519 before r01). That already excludes the OS and idle Postgres (74.83 MiB), so nothing more is subtracted.
  2. Java's non-heap need. On the 2 GB control, java's first-boot high-water mark was 1,012,224 kB (988.5 MiB) with the JVM reporting 475.6 MiB of max heap. 988.5 − 475.6 = 512.9 MiB, so about 500 MiB was non-heap (the reported max sits slightly under the real cap). That box wasn't squeezed, so the figure may not carry over to 1 GB. Forum users report 600 MB to 1 GB of non-heap on older versions.
  3. Heap budget with that figure. 516 − 512.9 ≈ 3 MiB (about 16 with 500).

The 1 GB box gives the other end. When r01 was killed, java held 562,584 kB (549.4 MiB) under a 232.0 MiB max heap, so at least 549.4 − 232.0 = 317.4 MiB was non-heap while it was still booting. That caps the budget at 519 − 317.4 ≈ 202 MiB, still below the 232.0 MiB default that got killed.

The "80% of RAM" figure fails by more. 80% of 955 MiB is 764 MiB of heap. Add the 2 GB box's 512.9 MiB of non-heap and Java alone wants about 1,277 MiB, 1.34 times the whole box, before Postgres; with the 317.4 MiB bound, about 1,081 MiB. Neither -Xmx768m nor -Xmx800m was run; this is arithmetic, not a test.

So without swap, none of the three heap settings we ran survived 1 GB. Heaps under 232 MiB weren't tried, and the ~202 MiB bound doesn't rule them out. Swap or 2 GB changed the outcome.

What Metabase's docs say about minimum memory, and where the runs land

The production guide says Metabase "needs at least 1 core and 1GB of RAM as the baseline". Read as "a 1 GB VPS is enough," our runs contradict it once Postgres shares the box, though the same guide wants the app database on its own 2 GB server. Metabase alone on 1 GB wasn't tested.

The troubleshooting page says to leave "1 to 2 GB of RAM for other processes" with -Xmx1g on 2 GB as its example. The runs agree: on the 2 GB box a 475.6 MiB heap still drove the container to 1,050.6 MiB.

The 80% rule appears in the production guide only in the load-test setup (-Xmx<80% of total RAM>m), not as a general sizing rule; a December 2025 staff forum reply suggests 80 to 85% on a dedicated host. On 1 GB the arithmetic above puts it over the box.

Who should skip Metabase on a 1 GB VPS

Go straight to 2 GB if any of these apply:

  • More than one person at a time. Untested on 1 GB, where single-user queries already ran at 55 MiB available with 1,052 MiB in swap.
  • Dashboard subscriptions or email. 2025 forum users tie the GraalVM notification renderer to extra memory. Not tested.
  • Bigger data than 1M rows. Our source was 99 MB with a warm Postgres cache.
  • Short restarts. A restart took 195.0 s on 1 GB, 90.4 s on 2 GB.
  • H2 instead of Postgres to save RAM. Not measured; the Docker docs say removing the container loses H2 app data.

The 2 GB plan (vc2-1c-2gb, $10/mo per the Vultr API, checked 2026-12-05) booted in 150.8 s without swap and kept at least 374 MiB available during queries. Metabase's scaling post calls single-core 2 GB "more than enough" for small teams.

If you must stay on 1 GB, run what worked here: keep the swapfile on (don't swapoff), set JAVA_OPTS=-Xmx512m, expect a first boot of 4 minutes to a little over 6, and watch dmesg for OOM kills rather than docker inspect. No swapfile? Size one with our free Linux swap calculator; our Next.js build test used 2 GB of swap on this plan. On Metabase minimum memory, these runs draw the line at 1 GB with swap for one patient user, 2 GB for anything else.

Honest scope

  • Every row is n=1, one region, boxes up about 51 minutes (run 1) and 16 (run 2).
  • Not measured: heaps under 232 MiB, -Xmx768m, -Xmx800m (the 80% case), H2 as the app database, a 1 GB swap file (r07 failed to start), concurrency on 1 GB, the Sample Database, dashboards, subscriptions and sync on anything but shop.
  • r02 and r05 lack end-of-run dmesg; the 2 GB control changed RAM and heap at once. Only -Xmx was varied, no non-heap caps.