Why slow Matrix rooms cause problems for the whole Synapse server
When one room becomes slow on a Synapse homeserver, the damage rarely stays inside that room. Users in unrelated rooms notice delayed sync responses and slow message sends, because the homeserver process that handles their requests is also doing the expensive work for the troubled room. The most likely cause to check first is an excessive number of forward extremities, which are the latest events a room's history branches from. Each new event must reference them, so a room that has accumulated many of them makes every new send and every state calculation more costly. This page covers how to recognize that pattern, how to inspect the room with the rooms admin API, and why deleting anything should remain a deliberate manual decision.
A team needs this diagnosis when a room shows unusual event history, such as a burst of events from many servers that were offline for a while, or when federation backfill has pulled in a large amount of remote history. It also applies when logs or metrics repeatedly show slow state work tied to one room ID, while the rest of the server looks healthy. A single slow client on a healthy server, or a problem that starts at the network edge, usually points elsewhere and does not need this investigation first. Teams without an operator who can read Synapse logs and query the admin API safely should confirm internally, or with a partner, who will run the checks and own the changes before work starts.
How the diagnosis path moves from symptom to decision
The path starts with a report of slow sends or syncs and a database load that seems tied to one room. The operator first checks server-wide load to confirm the problem is not general, then identifies the candidate room and inspects its forward extremities through the rooms admin API. The final hand-off is a choice: keep monitoring, apply a documented fix, or treat deletion as a manual decision that needs a verified backup and named approval. No step should jump straight to deletion.
Diagnosis moves from symptom through inspection to a manual decision.
How forward extremities build up and slow a room
A forward extremity is an event at the tip of a room's event graph that no later event in the room has yet referenced. Every new event a server sends points back at the events it knows about, so the room's history forms a graph, and the events nothing has built on yet are the current leaves. In a healthy room there is usually one leaf, or a small number that resolve quickly. A room can accumulate several when servers send events concurrently and those events do not reference one another, or when a homeserver has long gaps in its view of the room because federation was broken or a remote server was slow to deliver history. Each unresolved leaf becomes a parent that the next event must reference, so the set of extremities tends to stay large until something merges the branches.
The cost lands on your homeserver because every new event in the room must carry references to the current extremities and must be checked against the room state those branches imply. Synapse then has to resolve state across the branches, which means more reads and writes against PostgreSQL and more work building state groups. That work is performed by the same database connections, caches and worker processes that serve your other rooms, so a single room with many extremities can slow sync, sending and federation for the whole server. Treat this as a likely mechanism rather than a proven one. Confirm the exact behavior against the Synapse documentation and the room version the room uses, because state resolution rules differ between room versions. Do not attribute every slow room to extremities. Large state, heavy bridge traffic and slow federation peers produce similar symptoms, and the diagnosis in the next section exists to separate them.
Which signals point to forward extremities and which checks confirm them
This table pairs each symptom an operator might notice with what it may indicate and the next check that confirms or rules it out. Read it top to bottom: a single symptom rarely proves forward extremities, so confirm with the database and state resolution checks before acting. The main takeaway is that forward extremity growth is a hypothesis to test, not a diagnosis to act on.
| Signal | What it may indicate | Next check |
|---|---|---|
| Slow sends or joins in one room | Events in that room take longer to persist because its forward extremities make each new event heavier to create and validate | Time sends in that room and in a quiet control room on the same server, then compare the results |
| Database load concentrated on one room | Queries touching one room's events and state dominate the PostgreSQL workload, which can point to a room with many extremities | Review slow query logs and active queries on PostgreSQL, and note the room IDs that recur |
| Slow state resolution in logs | State resolution for the room runs long or repeats, a common effect when many extremities must be merged | Search the Synapse logs for the room ID alongside state resolution warnings or long-running event processing entries |
| Users report that one room loads slowly | Clients wait on the room's timeline or state, which may reflect the same extremity buildup seen on the server | Ask whether other rooms are also slow, and check whether the complaint matches the room in the logs |
| Rooms admin API shows many forward extremities | The room has an unusually high count of forward extremities, which supports the diagnosis when other signals agree | Inspect the room with the rooms admin API and record the count before any change, then repeat the check later |
| Server-wide resource pressure | Slowness affects every room, which points to CPU, memory, disk or worker limits rather than one room | Check host metrics and worker health, and confirm whether the slowdown appears in unrelated rooms |
| Large state compression backlog | Growth in state_groups_state makes state queries slow across many rooms, so the cause is not limited to one room | Review state table growth and the compressor schedule, as covered in the sibling page on shrinking the Synapse database with state compression |
| Media load | Heavy media upload or download traffic slows the server and can be mistaken for room-level problems | Check media store growth and request volume, then compare with the sibling page on purging old media with Synapse media retention |
How to inspect a suspect room with the rooms admin API
This sequence confirms that a slow room is the cause of a server-wide slowdown, then records the room's forward extremity count and related state against a healthy room before anyone changes anything.
Confirm the server-wide symptom
The on-call engineer checks whether the slowdown affects the whole homeserver or a single user, client or federation peer. Compare response times for ordinary requests, sync latency and event send times across several accounts on different rooms. Record the start time, the affected endpoints and the users who report the problem. The step is done when you can state that the slowdown is server-wide rather than local to one device or network path.
Record a baseline of database and process load
Before querying any room, capture a snapshot of PostgreSQL activity, such as long-running queries and lock waits, along with CPU, memory and event-persistence latency on the Synapse process or workers. Save the values with timestamps so you can compare them later. If you have Prometheus metrics enabled, export the same panels to a file. The step is done when you have a dated record of load that you can show to others without relying on memory.
Identify the candidate room from logs and reports
Search the Synapse logs for slow event persistence, long state resolution or repeated warnings that name a room ID, and ask users which rooms feel slow. Build a short list of room IDs and sort them by how often they appear. Keep in mind that a busy room with many members can look suspicious without being the cause. The step is done when you have one or two candidate room IDs with the log lines or reports that point to them.
Query the room details through the rooms admin API
Using an admin access token, call the rooms admin API in the Synapse documentation for each candidate room ID. Confirm the exact endpoint names, query parameters and response fields in the Synapse version you run, because the supplied facts do not list them. Save the raw JSON response to a file with the Synapse version and date noted. The step is done when you have a complete response for each candidate room and you can identify the field that reports forward extremities or related state.
Record the forward extremity count and related state
From the saved response, note the forward extremity count, the state size, the number of members and any other room state fields the API returns in your version. Also check whether the room has recent events that show gaps or backfill activity in the logs. The step is done when these values appear in a table next to the baseline load figures, with the candidate room and its server version clearly labeled.
Compare against a healthy room
Repeat the same queries for a room of similar size that does not show symptoms, and place its values beside the candidate room. A large difference in forward extremities or state size, combined with the database load from step two, supports the diagnosis. If the numbers are similar, look elsewhere before drawing conclusions. The step is done when you have a written comparison that either supports or rules out the room as the cause.
Document the findings before any change
Write a short report that lists the symptom, the baseline, the candidate rooms, the API output and the comparison, along with the open questions. Store it with your runbook and share it with the people who approve changes. Do not delete events, purge history or alter room state at this stage. The step is done when a second engineer can read the report and reach the same reading of the data without asking you.
What to do next, depending on what the inspection shows
A room can be busy, with many messages and many members, while still having a small number of forward extremities. In that case the count is not the cause of the slowness, and the next step is to look at load rather than at the DAG. Check whether the slowness comes from large state resolution, heavy sync traffic from many clients, or a bot or bridge posting at volume. Leave the room's data alone and record the evidence first so the diagnosis can be checked later.
- Record the baseline: note the room ID, the current extremity count, the member count and the time of the complaint before changing anything.
- Check state size: look at the room's state group growth and whether a state compressor run is already planned for the database.
- Check senders: identify whether a bridge, bot or integration accounts for most of the events.
- Approver: the Synapse operator on call can make this decision alone, since no data changes.
- Action: tune client or bridge behavior, or schedule the compressor, and re-measure after a normal working day.
Confirm that the extremity count stayed low during the slow period before closing the ticket, because a count that looks normal between spikes can still hide a problem.
A high count while remote servers are actively sending events usually means the room is receiving events from several homeservers at once, each building on a different point in history. The fix is about federation health rather than cleanup. Look at which remote servers are contributing and whether they are sending events that reference stale points. Do not delete extremities during active federation, because the next incoming events will recreate them and the cleanup can confuse other servers' views of the room.
- Record the sending servers: list the remote homeservers that have recent events in the room and the time range of the spike.
- Check federation traffic: confirm the outbound federation workers and the federation listener are healthy, using the federation troubleshooting steps.
- Check for backfill: a backfill or join by a large remote server can add many events in a short window.
- Approver: the platform lead should agree on any change to federation settings, and the security owner should review any blocking decision.
- Action: wait for federation activity to settle, then re-inspect the count before deciding anything else.
Confirm whether the count falls on its own once traffic settles, because a count that stays high under no federation load points to a different cause.
A room with a high count and no recent human activity is the situation where cleanup is most tempting and most risky. Low activity means the extremities will not be refreshed by new messages, so the count stays high, but the room's slowness may matter little to users. Before any action, establish who owns the room, whether it is still needed, and whether anything depends on it, such as a bridge or a retention policy. This is a governance question as much as a technical one.
- Record the owner: identify the room creator and the local admins, and note whether the owner can still be reached.
- Record the dependencies: check for bridges, bots, scheduled jobs or integrations that post to or read from the room.
- Record the retention position: note the data retention policy that applies to the room's content.
- Approver: the room owner and the data protection or records owner should approve in writing before any deletion step is considered.
- Action: if the room is still needed, leave it alone and note the decision. If it is not, archive or plan a documented deletion as a separate step.
Confirm that no integration reads the room before anyone treats it as abandoned, since an unused room can still be the target of a scheduled job.
When users report data loss or missing history in a room, treat the report as a possible integrity or federation problem before treating the extremity count as the cause. Extremities relate to how events are linked, and a room with many of them can show gaps in what some servers display. Do not run any deletion, purge or cleanup on that room. Preserving the current state is the first priority, because a cleanup can remove the evidence needed to understand the gap.
- Freeze changes: stop any scheduled purge, retention job or manual cleanup that touches the room.
- Record the reports: capture which users, which servers and which time ranges show missing events, with timestamps.
- Take a backup: back up the database and relevant configuration before further investigation, following your restore procedure.
- Approver: the incident owner and the data protection contact should approve any step that changes data.
- Action: compare what your server and a remote server show for the same events, and escalate to a database or federation specialist if the gap is confirmed.
Confirm that a backup exists and that a restore has been tested before any further change, since the evidence and the data both depend on it.
Security and operational controls around room inspection and cleanup
Inspecting forward extremities and deleting them both touch room state that every federated server relies on. The controls below limit who can act, record what they did, protect a restore point, and confirm the server recovered afterward. Match each one to your own admin access, audit and change management policies.
Limit who holds admin API access
Rooms admin endpoints act with server admin rights, so only a small named group should hold an admin account that can call them. Use a dedicated admin user for this work rather than a daily account, and confirm which accounts can reach the admin API through your reverse proxy. Review that list on a fixed schedule and remove access when a responsibility changes hands. Check how your identity provider maps admin roles before relying on it.
Synapse configuration manualLog every inspection action
Record who ran each read and each write, when, against which room ID, and with which request. Keep the request and response for any action that changes state, and store those logs outside the Synapse host so an administrator cannot quietly edit them. Confirm that your reverse proxy and Synapse access logs both capture admin calls, and that they are retained for the period your audit policy requires.
Back up the database before any change
Take a logical PostgreSQL dump, and confirm it restores, before deleting or altering extremities. The backup protects the whole event graph, not just the room you are working on. Record the Synapse version and config alongside it so the restore matches the schema. Follow your existing backup procedure rather than inventing a one-off process for this task.
Weigh the effect on federated history
Deleting extremities changes the event graph that remote servers hold for the same room. Users on other homeservers may see gaps, missing messages or repeated state resolution, and those servers cannot be fixed from your side. Decide in advance whether the room is local only or federated, who will be affected, and whether a manual cleanup is better than deleting. Keep deletion a deliberate, documented decision.
Schedule a change window and notify users
Pick a low-traffic window, state the room and the expected effect in advance, and tell the room members and your support team what to expect. Agree who can stop the work and roll back. Avoid running this during a federation incident or a major Synapse upgrade. Write the outcome into your change record so the decision can be reviewed later.
Monitor the server after the change
Watch event persistence time, federation send queues and the affected room's state size for at least one full daily cycle after the change. Compare the figures with the baseline you captured before starting. If latency returns or federation errors appear, stop further changes and follow your rollback plan. Confirm which dashboards and alerts you will check and who is on call.
Synapse documentationQuestions teams ask before diagnosing slow rooms
Can our in-house team diagnose forward extremity problems without outside help?
Yes, if an engineer who already runs Synapse has admin access to the server, can read its logs and can query the PostgreSQL database. The inspection itself is read-only work against the rooms admin API and the database, so the main barrier is familiarity with Synapse internals rather than tooling. Teams with little Synapse experience usually find the interpretation harder than the queries. Confirm before starting who will read the output, who can approve any change, and whether anyone on the team has restored a backup in a test environment, since that skill matters if a fix goes wrong.
What drives the effort of a room diagnosis?
Four factors move the effort most: the number of rooms to examine, the volume of federation traffic those rooms receive, how much access the team has to logs and the database, and how much Synapse experience the people involved already have. A single busy room on a small server is a short task. Many rooms across a federated server with restricted log retention takes longer because each candidate needs checking against the timeline of events. Ask any provider to state which of these four factors it has assumed and what it needs to see before quoting.
What does the organization need to provide for the diagnosis?
The work needs four things from the organization. The first is admin access to the homeserver and its database, including the rooms admin API. The second is a current backup, so any later change can be reversed. The third is a change window, because some remedies touch live rooms and may need coordinated downtime or a quiet period. The fourth is a named decision owner, a person who can approve or refuse any action on a room, including whether a room is deleted. Without that owner, findings tend to stall in the review queue.
Should Synapse delete forward extremities or rooms automatically?
No. Deletion should stay a manual decision. Removing or purging a room can break membership for real users, remove history people still need for legal or operational reasons, and be hard to reverse. Automated cleanup based on a count of extremities can also target rooms that look unhealthy but are simply active. Treat the inspection output as evidence for a person to review, record who approved any action, and take a backup before changing anything. Automated monitoring is useful for alerting, but the decision to act should stay with the owner.
How long does a room inspection take?
No duration is supplied for this work, so no reliable figure can be given. The time depends on the environment: how many rooms are suspect, how large the database is, how quickly the rooms admin API responds on that server, whether logs cover the period under investigation, and who is doing the work. Ask any provider for a planned sequence of steps, the number of rooms they expect to examine, the access they need on day one, and the point at which they will stop and report back for a decision. Those answers will show the timeline more honestly than a single number.
What does a fixed-scope diagnosis engagement cover?
In general terms, a fixed-scope diagnosis agrees the rooms, server and time period in writing before work starts. It typically covers reviewing the server and its configuration, inspecting the suspect rooms with the admin API and database queries, correlating the findings with logs and federation activity, and delivering a written report that separates facts from likely causes. Recommended changes are listed with their risks and rollback steps, and any changes are made only after the decision owner approves them. DeployOpen plans and implements self-hosted platforms in infrastructure the client controls, and the scope is set out in writing before the work begins.
Limits to confirm in your own environment before you act
The facts available for this topic establish the general shape of Synapse administration, not the exact commands your server accepts. Each card below names one gap between that general picture and a safe change to a live room, along with who can close it.
Admin API endpoints for your version
The rooms admin API is versioned with Synapse, so the endpoint paths, request bodies and response fields you see depend on the release you run. Before you script any inspection, confirm the endpoints against the admin API documentation for your exact version. Check the response fields for the extremity count and the room's state, since field names have changed between releases in the past. Ask your vendor which admin API version they support if you run a packaged or ESS build.
Synapse documentationRoom version and state behavior
Whether a room with many forward extremities is a real problem depends on its room version, its state resolution behavior and how the extremities arose, such as a burst of concurrent sends or a backfill from a federated server. Two rooms with the same count can behave differently. Confirm how your room version handles state resolution and whether your case is caused by an event pattern you can explain. Ask your Matrix specialist to review the room's event graph before treating the count as the cause.
Your version compared with current
The supplied facts list Synapse v1.163.0 as the latest release on the GitHub releases page, published October 14, 2026. Your server may be behind that release, and an older version may have different behavior for extremities and admin tooling. Compare your running version against the releases page before you read guidance written for newer code. Record the version in your incident notes so the diagnosis stays tied to the software that produced it.
Synapse releasesUpgrade notes that apply first
Upgrade notes can change database schema, required platform versions and default settings between releases. If you plan to upgrade to fix a room problem, read every set of notes between your version and the target, not only the latest. The notes also warn that rolling back can be difficult because of schema changes, so a fix that requires an upgrade is a one-way decision. Confirm the Python and PostgreSQL floors for the target release before you schedule any change.
Synapse upgrade notesEffect on federated servers
Changing or removing events in one room can affect how other homeservers see its history. Remote servers hold their own copies of the room state, and a fix on your server does not reach them automatically. Before acting, ask how your change will propagate, which remote servers are participating, and whether any of them will show a different view of the room until they resync. Document the expected behavior for members on other servers so support staff are not surprised.
Testing on a copy first
Any change to room data should be rehearsed against a restored copy of the PostgreSQL database and the matching configuration before it touches production. The copy shows whether the admin calls return what you expect, how long they take on your data volume and whether the server starts cleanly afterward. Confirm with your backup owner that a recent, verified backup exists and that a restore from it has been tested. Record the rehearsal results in the change ticket.
How DeployOpen scopes and delivers a Synapse room diagnosis
DeployOpen approaches forward extremity problems as a bounded diagnostic on your own Synapse homeserver, inside infrastructure you control. The work starts with a written scope, uses the Synapse admin tools to inspect affected rooms, and ends with documented findings and recommendations that your team can act on.
How we scope
- Agree in writing which rooms, servers and time windows the diagnosis covers before any access begins.
- Confirm the Synapse version, PostgreSQL version and admin API access your team can grant for read-only inspection.
- Define deliverables, including a findings report and a list of rooms recommended for manual action, with timelines agreed up front.
How we build
- Collect read-only evidence from the rooms admin API, such as extremity counts and state size, and record each query used.
- Correlate extremity findings with server logs, database load and federation traffic to separate room causes from general load.
- Test any proposed remediation first on a copy of the database or in a staging environment, and document the expected effect.
How we hand over
- Deliver a written report that lists each affected room, the evidence behind it and the risks of each recommended action.
- Hand over the exact queries, admin API calls and monitoring checks so your operators can repeat the diagnosis later.
- Leave deletion and other destructive steps as explicit decisions for your room owners and administrators, recorded in the report.
How we support
- Engagements are fixed-scope, so support after handover is a separate written agreement tied to a defined scope.
- Ongoing support, upgrades and continuous testing are available as a retainer if your Synapse estate needs regular review.
- Ask for a retest of the affected rooms after your team applies agreed changes, and confirm its scope in the quote.

