Chat

How much RAM does Matrix Synapse need?

Self-hosted Matrix homeserver, the reference implementation, with a Client-Server API and a PostgreSQL database. Official requirements, sourced, plus our own measurements.

Last updated: 2026-11-21
Pinned version: Synapse 1.165.0 (matrixdotorg/synapse:v1.165.0@sha256:673b4223c81a) + PostgreSQL 15.20 (postgres:15.20-alpine@sha256:e18480a22d6e)

Official min RAM
1 GB
Official rec. RAM
not stated
Min CPU
not stated
Rec. CPU
not stated
Measured idle RAM
186 MB
Measured disk
667 MB
Containers
2
Measured peak RAM (sample load)
263 MB

Our measurement

186 MB idle RAM · 667 MB disk (images 596 + data 71) · Synapse 118 MB + PostgreSQL 68 MB

Official compose file from contrib/docker, with both image tags replaced by an exact version and digest (never a floating tag). The generated homeserver.yaml was edited only to use PostgreSQL, as the compose file and the official Postgres guide require (SQLite is the generated default and is not for production). Two local test accounts were created with the official register_new_matrix_user tool before the idle wait. HTTP port 8008 was published on localhost for the Client-Server API; Traefik labels from the example were omitted. Report stats was left off. Data disk (about 71 MB) was measured after setup, before the sample load.

Method: Official compose file from contrib/docker with image tags replaced by exact version+digest (never latest). Idle RAM measured about 10 minutes after the test accounts were created, as docker stats MEM USAGE summed across both containers, 3 samples 20 s apart (median). Disk = pulled image sizes + bind-mounted data folders.
Host: 8 vCPU Intel Xeon VM, 16 GB RAM, Debian 13 (kernel 6.12), Docker 26.1.5 + Compose 2.26.1
Version: Synapse 1.165.0 (matrixdotorg/synapse:v1.165.0@sha256:673b4223c81a) + PostgreSQL 15.20 (postgres:15.20-alpine@sha256:e18480a22d6e) · Compose: source · Date: 2026-11-21

With sample data

186 MB idle RAM · 671 MB disk · Synapse 147 MB + PostgreSQL 116 MB at peak; 263 MB settled, about 3 minutes after the load
Peak RAM during processing: 263 MB

Sample: 200 text messages sent through the Matrix Client-Server API by two local test accounts, then 1,000 API reads (sync and room history), 10 at a time.

All 200 messages and all 1,000 reads returned HTTP 200. Synapse's default message rate limit (0.2 messages per second, burst 10 per user) returned HTTP 429 on 180 first attempts; those sends were retried and then accepted. Peak RAM was 263 MB (Synapse 147 MB + PostgreSQL 116 MB). About 3 minutes after the load, RAM had not dropped and stayed at 263 MB. Disk was about 671 MB (images 596 + data 75).

Method: Same setup and host as the idle measurement. Peak RAM sampled about every 2 seconds (docker stats, both containers summed) from just before the first of the 200 messages until after the last read plus 10 s. Settled RAM = 3 samples 20 s apart, about 3 minutes after the load.
Version: Synapse 1.165.0 + PostgreSQL 15.20 · Date: 2026-11-21

What the official docs say

Fits a 4GB server?

yesMeasured 186 MB idle RAM for Synapse plus its PostgreSQL database after setup, and 263 MB peak while two local users sent 200 messages and served 1,000 reads. Plus 512 MB for the OS that fits 4 GB with lots of room. The docs ask for at least 1 GB of free RAM if you join large public rooms like #matrix:matrix.org; this test was a fresh local server with no federation and no public rooms, so a busy federated server will need more.

Sources