Is your game server lagging, stuttering, or crashing under load? Almost always, one of three things is to blame: the CPU is consistently overloaded, there isn’t enough memory (RAM), or there’s a problem with the connection between players and the server. In this guide, you’ll find out which cause applies to your server and how to fix it step by step.
At ZapX, your game server won’t be suspended if it needs more CPU or RAM than your plan includes. It will slow down or restart after a crash instead. Resource-limit suspensions only happen in the Classic Panel (Legacy), not at ZapX. You can read about what happens instead further below.
Not all “lag” is the same. Pay attention to exactly what’s happening:
| What you notice | Likely cause |
|---|---|
| Blocks reappear, mobs move jerkily, commands respond slowly, and all players are affected at the same time | CPU load (the server can’t keep up with the calculations) |
| The server gets slower over time, crashes, or restarts by itself; the log says “OutOfMemoryError” | Not enough RAM, or a mod/plugin has a memory leak |
| Only individual players have high ping or disconnect, while the server itself runs smoothly | The players’ network/connection (distance, their own internet, Wi-Fi) |
| The server shows Crashed with the cause Out of memory | The RAM was full and the server was stopped |
- Check resource usage: On your game server’s Overview, you can see the current usage of RAM, CPU, disk, and network. At 80%, a reading is marked as a warning; at 90%, it’s marked as critical. In the Statistics tab, you can see CPU, memory, player count, and network usage over periods ranging from 1 hour to 30 days. Is the CPU consistently at its limit, or is the RAM always full? Does the load increase with the number of players?
- Check the log file and console: In the Console tab or the current log file, look for warnings such as “Can't keep up!”, “OutOfMemoryError”, or errors from a specific mod/plugin. With ZapX Pass, you can have the log analyzed using AI analysis under Console tools. See Server down, won’t start, or crashes to learn how to find the log file.
- Review recent changes: Did you install any mods, plugins, resources, or an update shortly before the problems started? That’s the most likely cause. Try disabling the new addition.
- Pay attention to when it happens: If lag only occurs in the evenings when there are many players online, your server is probably undersized. If it happens all the time, even with only a few players, a mod/plugin or the configuration is more likely to blame.
- Restart the server: A restart frees up occupied memory. If it only helps for a short time, that points to a memory leak. You can automate regular restarts in the Schedules tab; see Scheduled Tasks.
- Back up before making major changes: Create a backup before removing mods or changing configurations.
Most games calculate their world on just a few cores. If CPU load stays high, the server can’t keep up with calculating the game world, and all players will notice delays.
Typical causes:
- Mods, plugins, or scripts that do a lot of calculations or are poorly programmed
- Many entities (animals, mobs, vehicles, NPCs, dropped items) or large automated farms
- New areas of the world being generated as players travel far
- A very high view distance or simulation distance
- More players and a larger world than at the start
What helps:
- Find and remove, update, or replace the mod or plugin causing the issue (for Minecraft, use a profiler such as Spark; see below)
- Reduce the view distance and simulation distance in the server configuration
- Limit entities, for example by regularly clearing up dropped items or setting mob limits
- Pre-generate the world so new chunks don’t need to be calculated while exploring (Minecraft: Pre-generate a world)
- Get more CPU cores or add Premium CPU (see the upgrade section below)
Your server can briefly use slightly more memory than your plan includes (a small 25% buffer). If that runs out too, the system stops the server. It then restarts automatically. If it crashes several times within a short period, it remains stopped and shows Crashed with the cause Out of memory. From there, you can Restart, Open console, or Add more RAM right away. Your files and game world will remain intact, but progress since the last save may be lost.
Typical causes:
- Too many mods, or mods that use a lot of memory, especially large modpacks
- A memory leak: A mod or plugin reserves memory but doesn’t release it. Usage then keeps increasing until the server crashes.
- Large worlds with many loaded areas
How to identify a memory leak: Right after a restart, usage is normal, then it keeps rising over several hours even though no more players are online.
What helps:
- Find the mod or plugin causing the issue (test recently added content first)
- Update mods/plugins; memory leaks are often fixed in newer versions
- Use regular restarts as a temporary workaround
- Get more RAM if your server consistently needs more than your plan includes
Java reserves a large portion of memory when it starts. To keep the display meaningful, the panel shows the Java heap actually in use for Java games. The Overview section under What do these RAM values mean? explains each value.
If the server itself runs smoothly but individual players have high ping or disconnect, the cause is usually somewhere along the route between the player and the server:
- Distance to the server location: The farther players are from the server location, the higher their ping. You can’t change the location of an existing game server. To use a different region, order a new server there and transfer your data, for example using a backup.
- Your own connection: Wi-Fi, busy connections (downloads, streams), or VPNs increase ping. A test using a LAN cable quickly shows whether that’s the cause.
- Only one player affected? Then it’s almost always their connection, not the server.
- All players and the server appear to be online but can’t be reached? Check our status page to see if there’s currently an outage.
In the Classic Panel (Legacy), a game server is suspended if it uses more resources than its plan includes for an extended period. This suspension doesn’t happen at ZapX. If your server has just been moved to ZapX, you can find all the other differences in Game server moved from Legacy: what changes. If your server needs more than your plan includes, this is what happens:
- CPU: Your server gets the cores included in your plan. If it needs more, it slows down and players notice lag.
- RAM: If the memory is full, the server crashes and restarts (see above).
- Disk: If disk space is 95% full, your server is stopped automatically to prevent file damage. The Overview will then show Storage space full. Use Manage files to delete old logs, worlds, or files, or Upgrade storage to get more space.
If the load consistently exceeds what your plan includes, an upgrade makes sense. With Scale with Me, ZapX can also do this automatically for you.
You’ll find the Scale with Me card in the Manage plan tab. When you enable it, ZapX automatically adjusts your server’s resources to match its actual usage:
- If load stays above 80% for one hour, your server is automatically upgraded. You’ll get a notification about 15 minutes beforehand.
- If load stays below 60% for 72 hours, it’s downgraded again. Lifetime servers are only upgraded.
- There can be no more than two automatic changes in 24 hours.
Scale with Me is disabled by default. You can also change your plan yourself at any time.
Lag isn’t always a problem. As your project grows (more players, a larger world, more mods), your server will consistently need more performance. If the statistics show consistently high usage over several days, an upgrade is the long-term solution.
To do this, click Customize server in the Actions section of your game server’s Overview, or open the Manage plan tab. If a usage indicator on the Overview is in the warning range, an Upgrade button will also appear there. You can choose a different plan or configure more RAM and CPU cores yourself. Under CPU priority, you can add Premium CPU: your server then gets double priority for CPU time when the host is under heavy load, while the number of cores stays the same. Your server will briefly restart once after the change. You can find all the details about pricing and the process in Game server: Upgrade/downgrade.
You don’t add slots at ZapX. The number of players who can be on your server at the same time depends on your game and its configuration. However, more players also need more performance.
Minecraft is the game we get the most lag-related support requests for, especially with modpacks (Forge, NeoForge, Fabric) and lots of plugins (Paper, Spigot).
- Check TPS: A smooth-running Minecraft server manages 20 TPS (ticks per second). If the value drops below that, the server can’t keep up. On Paper, the
/tpscommand shows you the value; on Forge/NeoForge, use/forge tpsor/neoforge tps. - “Can't keep up!” in the log: This message means that individual ticks took too long. If it appears constantly, CPU load is too high.
- Find the cause with Spark: The Spark profiler shows you exactly which mod, plugin, or area of the world is using CPU time. Install it as a plugin or mod, start it with
/spark profiler start, wait a few minutes while the lag occurs, and stop it with/spark profiler stop. You’ll get a link to the report. - Automatically analyze the log: Our Minecraft Log Analyzer can identify common errors such as “OutOfMemoryError,” watchdog crashes, or an incorrect Java version, and suggest a suitable solution.
- How much RAM do I need? It depends heavily on the server type, mods, and number of players. You’ll find guidelines for modpacks further below under Modpacks: How much RAM and CPU do you need? Our Minecraft RAM calculator can estimate what your server needs.
- Reduce view distance and pre-generate the world:
view-distanceandsimulation-distanceinserver.propertieshave a major impact on load. Find more settings for each server type (Paper, Spigot, Forge) in Minecraft: Optimize server performance, and learn about pre-generating a world in Minecraft: Pre-generate a world. - RAM allocation: You don’t need to set Java memory (
-Xmx) yourself at ZapX. It’s calculated automatically based on the RAM in your plan, minus a small buffer for Java itself, and optimized startup parameters (Aikar's Flags) are already enabled. The allocation adjusts automatically after an upgrade. - Server won’t start because of memory issues: Check whether the Java version matches your Minecraft or modpack version, and whether the modpack needs more RAM than your plan includes.
How much performance a modpack needs depends primarily on the number and type of mods, and only then on the number of players. The table shows guidelines for current modpacks using Forge, NeoForge, or Fabric (mostly Minecraft 1.21.1). They’re based on measurements from Minecraft servers at ZapX and the figures from our Minecraft RAM calculator.
| Your server | 2 players | 10–15 players | 20+ players |
|---|---|---|---|
| Paper or Vanilla (for comparison, without mods) | 4–6 GB, 2–3 cores | 6 GB, 3 cores | 6–8 GB, 3–4 cores |
| Fabric with a few mods (up to approx. 50) | 6 GB, 3 cores | 8 GB, 4 cores | 8–10 GB, 4 cores |
| Forge or NeoForge with a custom mod list (up to approx. 150) | 8 GB, 4 cores | 8–10 GB, 4 cores | 10–12 GB, 4–5 cores |
| Medium modpack (approx. 100–250 mods, e.g. Create packs, Cobblemon) | 6 GB, 3 cores | 10 GB, 4 cores | 12 GB, 5 cores |
| Large modpack (300+ mods, e.g. All the Mods 10, Craftoria, Better MC) | 8–12 GB, 4–5 cores | 16 GB, 6 cores | 16–24 GB, 6–8 cores |
How to read the table:
- 2 players: For Vanilla, Paper, Fabric, Forge, NeoForge, and All the Mods 10, these are measurements from our servers; for other modpacks, they’re estimates based on the number of mods. For All the Mods 10, 3 out of 4 servers with 2 players managed with 12 GB. The range for Forge is wide: some large mod lists need 12 GB even with 2 players.
- 10 or more players: These values are estimates. So far, we haven’t had enough modpack servers with this many simultaneous players to measure. View distance, world size, farms, and chunk loaders then matter more than the number of players.
- Cores: Minecraft calculates most of the game world on a single core. Additional cores help with startup, loading and generating chunks, and memory cleanup. The cores in the table correspond to our plans with the specified amount of RAM.
- Use the authors’ recommendations first: Some modpacks need more than you might expect based on their number of mods. For Vault Hunters 3, the authors recommend 12 GB for 2 players and significantly more for 6 or more players. So check your modpack’s page to see whether it lists a server requirement.
The Minecraft RAM calculator calculates a value for your specific modpack and number of players, and takes you straight to a suitable plan. You can find our detailed measurements in the blog article How much RAM does a Minecraft server really need?.
Start one tier lower and monitor the RAM indicator in the Overview for a few days. If it consistently stays in the warning range during playtime or the server stutters while exploring, add more RAM under Customize server. Your server will briefly restart once afterward; your world and files will remain intact.
- Create a backup: Create a backup first; see the next section too.
- Choose a modpack: Open the Modpacks tab, find your modpack, and select the version.
- Install: Click Install & activate. ZapX will set the server type and Minecraft version to match the modpack.
- Wait for startup: Large modpacks can take several minutes to start for the first time. Players can join only once the line
Doneappears in the Console. - Check RAM: Compare your plan with the table above and get more RAM if needed.
- Prepare players: All players need the same modpack version as the server, for example through the CurseForge or Modrinth launcher.
Minecraft: Install mods/modpacks explains custom modpacks, individual mods, and all available options.
- Modpack update: If a new version removes individual mods, their blocks and items will disappear from the world afterward. Create a backup before clicking View update so you can roll back.
- Adding or removing mods: The same rule applies: back up first, then make changes. If the world starts once without a mod, its blocks and items are usually gone for good afterward.
- Changing loader or modpack: At ZapX, a different server type or modpack gets its own data folder and starts with a new world. Your previous world is preserved and will be available again if you switch back. See Minecraft: Manage worlds to learn how to transfer a world.
If the server is running but players are kicked when they try to join (for example, with Mismatched mod channel list or an error related to custom_payload), the client and server almost always don’t match: all players need the same modpack version as the server. You’ll find the most common messages and their solutions in Game server: Players can’t join.
Large modpacks or custom lists with 100 or more mods need significantly more performance than a Vanilla or Paper server. Common symptoms include a long startup, high RAM usage, and brief stutters every few minutes.
- Estimate RAM needs: Guidelines are in the table above. There’s no fixed number for a custom mod list. Check the RAM indicator in the Overview after a few hours of play. If it stays in the warning range, get more RAM or enable Scale with Me.
- Long startup: Large modpacks often take several minutes to start. As long as mods are still loading in the Console, startup is proceeding normally.
- Stutters every few minutes: By default, Minecraft saves the world every 5 minutes. With many mods and a large world, this can cause brief lag spikes. Use Spark to see whether the spikes coincide with saving. Fewer new chunks mean less work for memory, so it can help to pre-generate the world.
- Performance mods: Many large modpacks already include mods such as ModernFix or FerriteCore. They shorten startup and reduce RAM usage. Check whether they’re already included in the
modsfolder under the Files tab before adding them yourself, and only use versions for your Minecraft version and mod loader. - CPU: Minecraft calculates most of the game world on a single core. More cores mainly speed up startup and chunk loading, but don’t fix low TPS caused by a single mod. So find the cause with Spark first. If performance fluctuates mainly during peak hours, Premium CPU can help.
On Paper with many plugins, you can use auto-save-interval and max-auto-save-chunks-per-tick under chunks in paper-world-defaults.yml to control how often and how many chunks are saved at once. Learn more in Minecraft: Optimize server performance.
- FiveM: Individual resources (scripts, vehicles, MLOs) are usually responsible for the load. Use the
resmoncommand in the in-game F8 console to see how much CPU time each resource needs. In FiveM, enter server commands in the txAdmin live console, not the panel console. Large textures add to the load; see FiveM: Optimize textures. You can easily manage resources through txAdmin. - ARK: Survival Evolved: ARK needs a lot of RAM, especially with mods and large maps. Find tips in ARK: Fix RAM and performance issues.
- Palworld: Palworld: Performance guide
- Hytale: Hytale: Spark Profiler – Identify performance bottlenecks
Have you checked everything, but your server is still lagging? Contact our support team through Support in the main menu by clicking New Chat, or use the Help widget. It’s best to include when the problems started, what you changed most recently, and, if available, a link to your Spark report or an excerpt from the log file. That way, we can help you faster.
