Memory
The swap file this server falls back on, and how much memory Redis is allowed to use.
Two cards: the swap file, and Redis. Open Server → Settings → Memory. Each card has its own save button.

Extra memory (swap)
Swap is disk the kernel uses when real memory runs out. It is far slower than RAM, and that is the point: a server that swaps is slow, where a server that simply runs out of memory starts killing processes, and the process it kills is usually the one you cared about.
Right now reports what exists today — 1,024 MB total · 0 B in use — with a bar showing how full it is, and This server has 3.8 GB of memory. under the label. When there is no swap file it says This server has no swap file.
Change the swap size
- Under How much, click Off, 1 GB, 2 GB, 4 GB or Custom. recommended is printed on 1 GB for a server with less than 2 GB of memory and on 2 GB for a server with more.
- For Custom, type a size in megabytes in the field that appears.
- Click Save swap. The change applies straight away: the file is created, resized or removed there and then.
1–2 GB is enough for most servers. Swap is a safety net, not extra capacity; if your applications genuinely need more memory than the box has, more swap buys you a slower version of the same problem.
The form guards the disk as well as the memory:
- a size that would take more than half of the free disk space is refused, with "That would use more than half of the free disk space (… free). Choose a smaller size." The check is on how much the file grows;
- a size that leaves the disk tight is accepted but warned about: "A … swap file leaves only … free on the disk, and applications and backups need that space too." The warning shows when less than 10 GB would be left, or less than 60% of the free space;
- the most you can enter is 65,536 MB (64 GB): "The most this server will take is 65536 MB (64 GB)." A number that is not whole shows "Enter a whole number."
The server also keeps 1 GB of disk free for everything else: if the file plus that does not fit, the save fails with "There is not enough disk space for … of swap."
Turning swap off asks first
If swap is in use when you choose Off, the Turn off swap? dialog says how much is in use and what happens next: that memory has to fit in RAM instead, and if it does not, the kernel starts killing processes. Click Turn off swap, or Keep swap. If the server cannot take the memory back, the save fails with "Swap is in use and could not be turned off." Off on a server with nothing in swap goes straight through.
The panel manages one swap file of its own (/swapfile-panel). Swap that was set
up some other way is not resized or removed from this screen.
Redis
Redis is installed with the panel and used for its cache, its sessions and its job queue. This card has the two settings that matter operationally, and the password. Under the memory limit a bar shows how much Redis uses now, for example 1.5 MB of 256 MB.
Set the memory limit
Memory limit is written the way Redis writes it: 256mb, 1gb, or 0 for no
limit. Anything else shows "Use a size like 256mb or 1gb — or 0 for no limit."
A new install sets 256mb. An unlimited Redis on a box with limited memory is a
swap problem waiting to happen, so keep a limit on a small server.
Choose what happens when it is full
When the limit is reached is the eviction policy. Each choice is a plain sentence, with Redis's own name beside it in the open list:
| Choice | Redis name |
|---|---|
| Refuse new data (keep everything) | noeviction |
| Remove least recently used keys that expire | volatile-lru |
| Remove least often used keys that expire | volatile-lfu |
| Remove random keys that expire | volatile-random |
| Remove the keys closest to expiring | volatile-ttl |
The allkeys-* choices (remove from any key, not only those with an expiry) are
not offered. The panel's own job queue runs on this Redis, a queued job has no
expiry, and an allkeys-* policy could silently delete a pending install or
certificate. A policy like that, if it is already saved, still shows and can not
be saved again: "This choice can delete the panel's queued jobs when Redis is
full, so it can't be saved. Pick another one." noeviction fails loudly instead,
which is what you want where losing a key would be a bug; a new install uses
volatile-lru.
Save the limit and policy
- Change Memory limit and When the limit is reached.
- Click Save Redis.
Show, change or remove the password
The current password is shown masked, with a Copy button, because you need it to
point your own application or a tool like redis-cli at this Redis.
- Change shows a New password field and a Cancel button. The password is 8 to 255 characters ("Use 8 characters or more."). Click Save Redis. The panel updates Redis and its own configuration together, so the two never drift apart.
- Remove password asks Remove the Redis password? ("Redis will accept connections without a password. Only do this if it is not reachable from outside this server."). Click Remove password to confirm, or Keep it.
A password change takes a few seconds to apply. The card says "Password change submitted. Redis and the panel are being updated — this takes a few seconds." and offers Check now.
Three states to recognise:
- "A password may be set — the panel could not read the config to tell." The
panel cannot read
redis.conf. Not necessarily broken, just unknown; the field says Cannot check. - "The panel's saved Redis password no longer works — it was changed on the server. Queued jobs, the cache and sessions can't reach Redis until they match again." Someone changed the password outside the panel. Set a new password here: the panel updates Redis and its own copy together.
- "This install cannot change the Redis password — the panel is unable to update
its own configuration file." The password controls are disabled. Change it on
the server and update
REDIS_PASSWORDin the panel's.envto match.
If Redis is not running, the card says Redis is not running. instead of showing stale numbers.
Who can do this
- Settings · View shows the swap file, the memory use and the Redis settings. The Redis password is hidden from a view-only role: the card only says whether one is set.
- Settings · Manage is needed to save. Without it the save buttons are hidden and the panel says "You can see these settings but not change them."
Common errors
- Swap could not be changed. and Redis settings could not be saved. — the server refused. Look for a message under the field.
- The panel cannot reach Redis with the password it has stored, so it cannot
change it. — Redis is running but rejecting the panel's password. Correct
REDIS_PASSWORDin the panel's.envto the password Redis requires, then try again. - The panel cannot write its own .env file, so a new Redis password could not be recorded. — fix the file permissions first; otherwise the panel would lose access to Redis.
Related
- Settings — how saving and the tabs work.
- Disk cleaner — free disk space before you make the swap file bigger.