Skip to content
🧮 Is Lifetime with ZapX Pass worth it? Work it out for your own servers in 30 seconds. Open the Lifetime calculator →

Game server: Fix lag, CPU and RAM issues and resource limits

Is your game server lagging or crashing? Find out whether CPU, RAM, or ping is to blame, with RAM guidelines for Minecraft modpacks by player count.

4 December 202614 min read87 Views0 helpful

Introduction

Is your game server lagging, stuttering, or crashing under load? There are almost always three possible causes: the CPU is constantly under heavy load, there isn’t enough memory (RAM), or there’s a problem with the connection between players and the server. This guide will help you identify the cause and fix it step by step.

Info: No suspensions for CPU or RAM usage

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. Resource limit suspensions only apply to the Classic panel (Legacy), not ZapX. You can read below to find out what happens instead.

Lag, stuttering, or high ping: How can I identify the cause?

Not all “lag” is the same. Pay attention to exactly what’s happening:

What you noticeLikely cause
Blocks reappear, mobs move jerkily, commands respond slowly, and all players are affected at the same timeCPU load (the server can’t keep up with the calculations)
The server gets slower over time, crashes, or restarts on its own, and 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 smoothlyThe players’ network/connection (distance, their internet connection, Wi-Fi)
The server shows Crashed with the cause Out of memoryThe RAM was full, so the server was stopped

Step by step: Check for performance issues

  1. Check resource usage: On your game server’s Overview, you can see current RAM, CPU, disk, and network usage. At 80%, a meter is marked as a warning; at 90%, it’s marked as critical. In the Statistics tab, you can view CPU, memory, player count, and network usage over periods from 1 hour to 30 days. Is the CPU constantly at its limit, or is the RAM always full? Does the load increase with the number of players?
  2. 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 particular mod/plugin. With ZapX Pass, you can have the log analyzed using AI analysis under Console tools. For instructions on finding the log file, see Server down, won’t start, or keeps crashing.
  3. Look back at 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.
  4. Pay attention to when it happens: If lag only occurs in the evening when lots of players are online, your server is probably too small. If it happens all the time, even with few players, a mod/plugin or configuration is more likely to be the cause.
  5. Restart the server: A restart frees up occupied memory. If it only helps briefly, that points to a memory leak. You can automate regular restarts in the Schedules tab; see Scheduled tasks.
  6. Create a backup before making major changes: Create a backup before removing mods or changing configurations.

CPU constantly at its limit

Most games calculate their world on just a few cores. If CPU usage 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 processing 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
  • Very high view distance or simulation distance
  • More players and a larger world than when you started

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)
  • Lower the view distance and simulation distance in the server configuration
  • Limit entities, for example by regularly clearing dropped items or setting mob limits
  • Pre-generate the world so new chunks don’t need to be calculated while exploring (Minecraft: Pre-generate the world)
  • Add more CPU cores or get Premium CPU (see the upgrade section below)

RAM is full or there’s a memory leak

Your server can briefly use a little more memory than you’ve purchased (a small 25% buffer). If that’s also used up, the system stops the server. It will then restart automatically. If it crashes several times within a short period, it stays 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; only progress since the last save may be lost.

Typical causes:

  • Too many or very memory-intensive mods, 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 and many loaded areas

How to identify a memory leak: Right after a restart, usage is normal, then keeps increasing over several hours without more players coming 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
  • Add more RAM if your server consistently needs more than your plan includes
Info: RAM display in Java games such as Minecraft

Java reserves a large part of memory when it starts. To keep the display useful, the panel shows the Java heap actually in use for Java games. The overview under What do these RAM values mean? explains what each value means.

High ping and connection issues

If the server itself runs smoothly but individual players have high ping or disconnect, the cause is usually somewhere along the connection 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. Testing with an Ethernet cable quickly shows whether this is the cause.
  • Only one player affected? Then it’s almost always their connection, not the server.
  • All players and the server appear online but can’t be reached? Check our status page to see whether there’s currently an outage.

Resource limits: What happens at ZapX?

In the Classic panel (Legacy), a game server is suspended if it needs more resources than its plan includes for an extended period. ZapX doesn’t suspend servers for this. If your server has just moved to ZapX, you can find all the other differences in Game server moved from Legacy: What’s changing. If your server needs more than your plan includes, here’s what happens:

  • CPU: Your server gets the cores included in your plan. If it needs more, it will slow down, and players will notice lag.
  • RAM: If the memory is full, the server crashes and restarts (see above).
  • Disk: If storage is 95% full, your server is stopped automatically to prevent file corruption. The overview will then show Storage space full. Use Manage files to delete old logs, worlds, or files, or use Upgrade storage to add more space.

If usage consistently exceeds what your plan includes, an upgrade is a good idea. With Scale with Me, ZapX can also do this automatically for you.

Scale with Me: Automatically get more performance

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 usage stays above 80% for an hour, your server is automatically upgraded. You’ll get a notification about 15 minutes beforehand.
  • If usage stays below 60% for 72 hours, it’s downgraded again. Lifetime servers are only upgraded.
  • There are 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.

Upgrade: When your server is consistently too small

Lag isn’t always a bug. As your project grows (more players, a larger world, more mods), your server needs more performance on an ongoing basis. If the statistics show consistently high usage over several days, an upgrade is the long-term solution.

To upgrade, open the Manage plan tab for your game server (or click Manage plan in the Contract tile on the overview). If a usage meter on the overview is in the warning range, an Upgrade button will also appear there. You can choose another plan or configure more RAM and CPU cores yourself. Under CPU priority, you can get Premium CPU: your server then gets double priority for processing time when the host is under heavy load, while the number of cores stays the same. After the change, your server will briefly restart once. Find all the details about pricing and the process in Game server: Upgrade/downgrade.

Info

You don’t add slots at ZapX. The number of players who can play on your server at the same time depends on your game and its configuration. However, more players also require more performance.

Minecraft: Lag and memory issues

Minecraft is the game we get the most lag-related requests about, especially with modpacks (Forge, NeoForge, Fabric) and lots of plugins (Paper, Spigot).

  • Check TPS: A smooth Minecraft server runs at 20 TPS (ticks per second). If the value drops below that, the server can’t keep up. On Paper, the /tps command shows you the value; on Forge/NeoForge, use /forge tps or /neoforge tps.
  • “Can't keep up!” in the log: This message means that individual ticks took too long. If it appears constantly, the CPU load is too high.
  • Find the cause with Spark: The Spark profiler shows exactly which mod, plugin, or area of the world is using processing 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 receive a link to the analysis.
  • Automatically analyze the log: Use our Minecraft Log Analyzer to find known issues such as “OutOfMemoryError”, watchdog crashes, or an incorrect Java version, and get a suggested fix.
  • How much RAM do I need? It depends heavily on the server type, mods, and number of players. You’ll find guidelines for modpacks below under Modpacks: How much RAM and CPU do you need?. Our Minecraft RAM calculator can estimate what your server needs.
  • Lower the view distance and pre-generate the world: view-distance and simulation-distance in server.properties have a major impact on load. Find more settings for each server type (Paper, Spigot, Forge) in Minecraft: Server performance optimization, and instructions for pre-generating the world in Minecraft: Pre-generate the world.
  • RAM allocation: You don’t need to set Java memory (-Xmx) yourself at ZapX. It’s calculated automatically from the RAM in your plan, minus a small buffer for Java itself, and optimized startup parameters (Aikar's Flags) are already enabled. After an upgrade, the allocation adjusts automatically.
  • Server won’t start due to memory issues: Check that the Java version is compatible with your Minecraft or modpack version, and that the modpack doesn’t need more RAM than your plan includes.

Modpacks: How much RAM and CPU do you need?

How much performance a modpack needs depends mostly on the number and type of mods, and only then on the number of players. The table shows guidelines for current modpacks with Forge, NeoForge, or Fabric (usually Minecraft 1.21.1). They’re based on measurements from Minecraft servers at ZapX and the values from our Minecraft RAM calculator.

Your server2 players10–15 players20+ players
Paper or Vanilla (for comparison, without mods)4–6 GB, 2–3 cores6 GB, 3 cores6–8 GB, 3–4 cores
Fabric with a few mods (up to about 50)6 GB, 3 cores8 GB, 4 cores8–10 GB, 4 cores
Forge or NeoForge with a custom mod list (up to about 150)8 GB, 4 cores8–10 GB, 4 cores10–12 GB, 4–5 cores
Medium modpack (about 100–250 mods, e.g. Create packs, Cobblemon)6 GB, 3 cores10 GB, 4 cores12 GB, 5 cores
Large modpack (300+ mods, e.g. All the Mods 10, Craftoria, Better MC)8–12 GB, 4–5 cores16 GB, 6 cores16–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 ran with 12 GB. Forge has a wide range: some large mod lists need 12 GB even with just 2 players.
  • 10 players and up: These values are estimates. So far, we haven’t had enough modpack servers with this many players online at the same time to measure. View distance, world size, farms, and chunk loaders matter more than the number of players at this point.
  • Cores: Minecraft calculates most of the game world on one core. Additional cores help with startup, loading and generating chunks, and memory cleanup. The number of cores in the table matches our plans with the listed amount of RAM.
  • Use the authors’ recommendations first: Some modpacks need more than their number of mods might suggest. The authors of Vault Hunters 3 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 directly to a suitable plan. You can find our detailed measurements in the blog post How much RAM does a Minecraft server really need?.

Tip

Start one tier lower and monitor the RAM meter in the Overview for a few days. If it stays in the warning range while you’re playing, or the server stutters while you explore, add more RAM in the Manage plan tab. Your server will briefly restart once afterward; your world and files will remain intact.

Install a modpack: Step by step

  1. Create a backup: Create a backup first; see the next section as well.
  2. Choose a modpack: Open the Modpacks tab, find your modpack, and select the Version.
  3. Install: Click Install & activate. ZapX will set the server type and Minecraft version to match the modpack.
  4. Wait for startup: Large modpacks can take several minutes to start the first time. Players can join only after the line Done appears in the Console.
  5. Check the RAM: Compare your plan with the table above and add more RAM if needed.
  6. Prepare the players: All players need the same modpack and version, for example through the CurseForge or Modrinth launcher.

Minecraft: Install mods/modpacks explains custom modpacks, individual mods, and all available options.

Before changing mods or loaders: Create a backup

  • Modpack update: If a new version removes individual mods, their blocks and items will then be missing from the world. Create a backup before View update so you can roll back.
  • Adding or removing mods: The same rule applies: create a backup first, then make changes. If the world starts once without a mod, its blocks and items are usually gone for good.
  • Changing the loader or modpack: At ZapX, a different server type or modpack gets its own data folder and starts with a new world. Your existing world is preserved and will be available again if you switch back. For instructions on transferring a world, see Minecraft: Manage worlds.

Players can’t join after changing the modpack

If the server is running but players are kicked when joining (for example, with Mismatched mod channel list or an error about custom_payload), the client and server almost always don’t match: all players need the same modpack and version as the server. Find the most common messages and their solutions in Game server: Players can’t join.

Large modpacks and lots of mods (100+)

Large modpacks or custom lists with 100 or more mods need considerably more performance than a Vanilla or Paper server. A long startup, high RAM usage, and brief stutters every few minutes are typical.

  • Estimate RAM needs: See the guidelines in the table above. There’s no fixed amount for a custom mod list. Check the RAM meter in the overview after a few hours of play. If it stays in the warning range, add 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 lots of mods and a large world, this can cause brief lag spikes. Use Spark to see whether the spikes coincide with saving. Fewer new chunks means less work to save, so it helps 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 the mods folder in the Files tab to see whether they’re already included before adding them yourself, and use only versions compatible with your Minecraft version and mod loader.
  • CPU: Minecraft calculates most of the game world on one core. More cores mainly speed up startup and chunk loading, but won’t fix low TPS caused by a single mod. Find the cause with Spark first. If performance fluctuates mainly during peak hours, Premium CPU can help.
Tip

On Paper with lots of 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 chunks are saved and how many are saved at once. Learn more in Minecraft: Server performance optimization.

FiveM, ARK, and other games

Contact support

Have you checked everything, but your server is still lagging? Contact our support team using New Chat under Support in the main menu, or through 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 analysis or an excerpt from the log file. That’ll help us assist you faster.

FAQ

Frequently asked questions

Usually, the CPU is constantly under heavy load (for example, due to mods, plugins, many entities, or a high view distance), there isn’t enough RAM, or a mod has a memory leak. If only individual players have high ping, their connection is more likely to be the cause. Check resource usage in the web interface and the log file to find out which applies.
First, try disabling anything you added recently. For Minecraft, the Spark profiler shows exactly which mod, plugin, or area of the world is using processing time. For FiveM, use the resmon command.
After a restart, RAM usage is normal, then steadily increases over several hours without more players coming online, until the server slows down or crashes. This is usually caused by a mod or plugin that doesn’t release memory.

Feedback

Was this article helpful?

Your feedback helps us prioritize and improve content.

0 of 0 people found this article helpful.

Personal support

Need more help than the guide provides?

Our ZAP-Hosting support team knows your product — briefly describe your issue and we'll help you personally.

Zappy knows this guide and answers you right in the chat.