01
What uses memory on a RedM server
RedM runs on FXServer, Cfx.re's server program, the same one as FiveM, started with set gamename rdr3 (see creating a RedM server). The program itself is not the biggest consumer: memory goes mostly into what you install on it.
- The framework and scripts: each resource keeps its data in memory (characters, inventories, jobs, stables, camps). VORP or RSG, with their many modules, weigh more than a base server. A badly written script that piles up data without freeing it makes memory climb hour after hour.
- Synced entities: with OneSync, the server itself tracks players, horses, wagons, NPCs and objects. The more there are, the more memory and processing it needs.
- Connected players: each one adds their character and whatever the scripts keep about them.
- Added maps and content: the server sends them to every player who connects. They weigh first on disk, on download time and on the memory of the players' game.
- The database: MariaDB stores player progress. If it runs on the same machine as the server, as on a VPS, its memory adds to FXServer's.
02
Guidelines by players and use
Cfx.re's documentation gives no memory requirement for the server. The figures below are therefore our estimates, the ones shown on our plans, for a server with common resources:
- 4 GB: about 16 players;
- 8 GB: about 32 players;
- 16 GB: about 64 players;
- 24 GB: about 96 players;
- 32 GB: about 128 players.
Then adjust for how the server is used:
- Base server, no framework: few resources, memory stays low; the first tier is often enough.
- VORP or RSG roleplay with a standard set of scripts: the figures above apply (see installing VORP Core and RSG Core).
- Many scripts and added maps: plan one tier above what the player count suggests.
The server calculator follows the same logic. One limit has nothing to do with memory: beyond 48 players, you need a key tied to your own Cfx.re Element Club subscription.
03
Measuring real usage
An estimate is no substitute for a measurement. The method is the same everywhere:
- Note memory at three points: right after a restart, at peak time, then just before the next restart.
- Compare: memory that rises with players and then levels off is normal. Memory that keeps climbing, even when the server empties, often points to a script holding on to data without freeing it.
- Add resources in small batches and measure after each one: you will know which one is expensive.
- For processing time, use FXServer's built-in profiler in the server console:
profiler record 500, then profiler view, which gives a link to the report to open in Chrome. It measures each resource's CPU time, not memory.
On your own machine, txAdmin, shipped with the Cfx.re server, monitors the server's CPU and memory usage (see txAdmin on RedM); on a Linux VPS, the top command also shows the process's memory.
04
Signs of running short of memory
- The server stops abruptly, with no clear script error, often at peak time.
not enough memory errors in the console: this is the message Lua shows when it can no longer allocate memory.
- Memory hits your plan's ceiling every busy evening.
On the other hand, some symptoms do not come from memory:
server thread hitch warning messages while memory is not full: a script or a query is blocking the main thread;
- a single player lagging: it is usually their computer or their connection;
- all players disconnected at once while the console runs normally: a network issue, sometimes an attack (see protecting a game server from DDoS).
More memory does not make a server faster: it only helps if the server is short of it. Common error messages are explained in the guide RedM server errors.
05
Processor, main thread and disk
- The main thread: much of the scripts' work goes through the server's main thread. When a resource blocks it, the whole server falls behind, however much memory is free. A processor that is fast per core therefore matters more than a large number of cores.
- Players and entities: with many people, horses and wagons, the server does more processing: the processor is then often the limit before memory.
- Disk: Cfx.re's documentation notes that each added resource lengthens server startup. NVMe storage speeds up that startup, the database and players' content downloads.
- Scheduled restarts: one a day, at a quiet hour, lets the server start again from clean memory. Warn your players in advance.
The differences between Cfx.re's two platforms are summed up in RedM or FiveM.
06
On CloudFive: choosing your tier
Our RedM hosting plans start at €2.50 per month. Every tier runs on an AMD Ryzen 9 9950X, with DDR5 memory and NVMe storage, in France on our own AS218808 network:
- Starter, 4 GB: about 16 players;
- Essentiel, 8 GB: about 32 players;
- Avantage, 16 GB: about 64 players;
- Performant, 24 GB: about 96 players;
- Expert, 32 GB: about 128 players;
- Ultime: memory with no cap set by us, within reasonable use of the shared machine.
Player counts are indicative estimates. Start with the tier that covers your players, add one if you install many scripts or maps, and change tier at any time from the customer area.
On our plans, the RedM server does not use txAdmin: the console, files (SFTP), resources, MariaDB databases and backups are managed from the customer area. VORP Core installs in one click; RSG Core is installed by hand on the base RedM server. The shared Patreon key provided at no extra cost is limited to 48 players: beyond that, get your own Element Club subscription on the Cfx.re portal. Anti-DDoS Premium is included, with a RedM-specific profile, monthly with no commitment.
07
Frequently asked questions
How much RAM for a 32-player RedM server?
As a rough guide, 8 GB is enough for a roleplay server with around thirty players and common resources. With many scripts or added maps, plan for 16 GB instead. Then measure real usage before changing tier.
Do VORP or RSG use a lot of memory?
A framework and its modules weigh more than a base server, but it is mostly the added scripts that make the difference. Plan for about 8 GB for around thirty players and 16 GB for around sixty, as a rough guide.
Why does my RedM server's memory grow over the hours?
Often because a script keeps data without freeing it. Note memory after a restart and before the next one, and add or remove resources in small batches to find the culprit. One scheduled restart a day limits the problem in the meantime.
Will adding RAM fix lag on RedM?
Only if the server is really short of memory. Most of the time, lag comes from a script blocking the main thread, flagged by server thread hitch warnings. Run the profiler before changing tier.
How many players with the key provided by CloudFive?
The shared Patreon key, provided at no extra cost, is limited to 48 players. Beyond that, you need your own Element Club subscription on the Cfx.re portal, with your key in the server's startup settings.