Remediation Hub (9)
Cap limit_remote_rooms.complexity to Prevent Synapse OOM
Setting limit_remote_rooms enabled: true with complexity: 1.0 stops a single user from accidentally crashing your entire homeserver by joining Matrix HQ.
OOM Prevention: Blocks complexity > 1.0 joins | Config: limit_remote_rooms
Step 1: Enable limit_remote_rooms in homeserver.yaml
Add limit_remote_rooms: { enabled: true, complexity: 1.0, complexity_error: "Room state too large for this server." }. On 2 GB VPS hosts running Synapse, tighten complexity to 0.6 until you migrate to 4+ GB RAM or Continuwuity Rust.
Step 2: Whitelist Essential Bridged Rooms Safely
If your team relies on one specific large federated room, raise complexity selectively to 1.5 during an off-peak window with swap enabled, or join that room from a dedicated Continuwuity instance.
Measured Thresholds & Configuration
| Server RAM Tier | limit_remote_rooms.complexity | Protected Against |
|---|---|---|
| 2 GB VPS (Emergency Synapse) | 0.6 | Public bridged mega-rooms |
| 4 GB VPS (Tuned Synapse) | 1.0 | 5,000+ member legacy state rooms |
| 8 GB+ VPS / Continuwuity Rust | 2.5 - 3.5 (or uncapped Rust) | Most public Matrix communities |