# Server running out of memory or disk

> Relia warns you when a server's memory keeps climbing or its disk is filling up, tells you roughly when it will run out, and what to look for before it crashes.

Section: Find and fix real problems · Page: https://tryrelia.com/docs/server-memory-disk · Last checked against the product: 2026-11-01
Video walkthrough: https://youtu.be/cn-cF38dUgU

A server rarely runs out of memory or disk all at once. Memory climbs a little every hour; a disk fills a little every day. Relia watches the trend and warns you before the server falls over.

The example is Relia's demo shop: from 03:00 on a Monday, memory on the server `api-2` climbs hour after hour.

## Before you start

Server numbers (CPU, memory, disk) come from Relia's Node.js and Python SDKs, from each server your app runs on. Serverless functions (Vercel, Firebase, Lambda and so on) have no server of their own to watch, so this page doesn't apply to them.

## What you'll see

Relia raises a server in steps:

| What happens | What Relia shows |
|---|---|
| Memory or disk passes 80% | **Servers** turns **Watch** on Home under **Your product right now**. |
| Memory keeps growing steadily (a possible leak) | An incident: *Memory on api-2 keeps growing (possible leak)*, with the rate and when it will reach 90%. |
| A disk is filling up | An incident: *Disk on web-1 will be full soon*, with the expected day. |
| Memory or disk reaches 90% | **Servers** turns **Needs you**. |
| CPU peaks at 90% or stays high | An incident: *Server api-2 is overloaded (CPU)*. |

The forecasts are what make the early warning:

- **Memory:** Relia looks at the last 24 hours. If memory is above 50%, has risen most hours, and is on track to reach 90% within 3 days, it opens an incident. If that's within 24 hours, it **Needs you**; otherwise it's **Watch**.
- **Disk:** if a disk will be 95% full within 7 days, Relia tells you the day. Within 24 hours it **Needs you**.

## Find the cause

1. **Open the incident.** It gives the numbers, for example *82% now, plus 5.5% an hour, so 90% around 09:20*.
2. **Open Servers** in the menu. Pick the server to see its CPU, memory and disk charts over time. A line that climbs steadily for hours is a leak; a sudden jump is usually one heavy job or request.
3. **Check Recent changes on the incident.** A restart or a deploy shows there as context. If memory drops back after every restart and then climbs again, something in your code keeps growing.

> **Tip:** watch [Monitor server CPU, memory and disk](https://youtu.be/v08p3Z7U4Cc) (2 min).

To leave development machines out of the Servers page, use its **Hosts** control. Servers that report a development environment are left out by default.

## Fix it

**Memory that only grows** usually means a leak in your code. Look for:

- caches or lists that only ever grow (add a size limit or an expiry),
- event listeners or timers that are added on every request and never removed,
- large objects kept in module-level variables.

Restarting the service buys time, but the fix is in the code. If memory is simply too small for normal traffic, give the server more memory.

**A disk that keeps filling:**

- rotate logs or ship them elsewhere,
- clear old builds, Docker images and temp files,
- or grow the disk.

On Growth and Pro, **Show how to fix** on the incident turns the evidence into concrete steps.

## Check the fix worked

Deploy your fix. Relia picks up the new version by itself, or click **I fixed it** on the incident. Server problems have no request count to wait for, so Relia confirms the fix after 30 quiet minutes with no sign of the problem. Then the incident says **Fix confirmed** and you get *Your fix worked*. Keep an eye on the server's memory chart for a few hours too: a slow leak can take a while to show again.

## Next

- [Monitor server CPU, memory and disk](https://tryrelia.com/docs/servers.md)
- [Choose how Relia reaches you](https://tryrelia.com/docs/notifications.md)
- [Set up on-call](https://tryrelia.com/docs/on-call.md)

---
All Relia docs for AI assistants: https://tryrelia.com/llms.txt (index) · https://tryrelia.com/llms-full.txt (everything in one file)
