To fix Minecraft server lag, you first have to know which kind of lag you have, because the cures are completely different. Blocks that break a second late, mobs that teleport back and forth and commands that take ages to run usually mean the server itself is struggling. A high ping with a smooth server means the problem is somewhere between the player and the machine. Throwing RAM at the wrong problem is the most common and most expensive mistake, and it rarely helps.
This guide gives you a method. We start by measuring, with the numbers that actually matter, then work through the fixes in the order of how much they usually help: the server software, the distance settings, entities, plugins, world generation, memory and finally the hardware. Each step tells you what to look for before you change anything, so you can see whether it worked.
First, work out which kind of lag you have
Before you fix Minecraft server lag, note that players say “lag” for three different things, and mixing them up wastes hours. Server lag means the game loop itself is running slowly: the server cannot finish a tick in the time available, so everything slows down for everyone. Network lag means the data takes too long to travel, which players see as a high ping, rubber-banding when they move, and a delay on every action even when the server is healthy. Client lag means the player’s own computer is struggling, which shows up as low frames per second only for them.
The quickest test is to ask whether the problem hits everyone at once. If every player sees the same stutter at the same moment, it is the server. If only one or two players complain, check their ping and their frame rate first. This guide focuses on server lag, because that is the one you can fix from the server side, and it is also the one hosting companies get blamed for most often.
Measure it first: TPS and MSPT
A Minecraft server aims to run at 20 ticks per second, which means each tick has a budget of 50 milliseconds. TPS, ticks per second, tells you how many ticks the server manages. MSPT, milliseconds per tick, tells you how long each tick takes, and it is the more useful number because it shows how much headroom you have. When you fix Minecraft server lag, remember that a server can show a perfect 20 TPS while sitting at 45 milliseconds per tick, which means it is one busy moment away from lagging.
| TPS | Typical MSPT | What it means |
|---|---|---|
| 19 to 20 | Under 40 ms | Healthy: the server keeps up with room to spare |
| 15 to 19 | 40 to 50 ms | Light lag: players notice it during busy moments |
| Below 15 | Over 50 ms | Serious problem: the server cannot keep up |
You can check TPS with the /tps command on Paper and similar server software, and Paper also provides a command for MSPT. Look at the numbers when the server is quiet, when it is busy, and at the moment a player complains. Write them down every time you try to fix Minecraft server lag. Without a before and after, you cannot tell whether a change helped or whether you simply restarted the server and got a quiet hour.
Find the culprit with a profiler
Guessing is slow when you want to fix Minecraft server lag. A profiler tells you exactly where the server spends its time. Spark is the standard free tool: it runs on Paper, Spigot, Forge, Fabric and others, and it can produce a report showing which plugins, mods, entities and world operations take the most time. Run a profile during a lag spike, not while the server is idle, and let it collect data for a few minutes.
When you read the report to fix Minecraft server lag, look for patterns instead of single numbers. A single plugin taking most of the tick time is easy to fix: update it, reconfigure it or replace it. A large share of time spent on entity ticking points to too many mobs, animals or dropped items. A large share spent on chunk loading and generation points to exploration and world size. When the time is spread evenly across everything, the server is simply short of CPU power or running with settings that are too heavy for the hardware. Our own Minecraft server hosting plans include Spark among the pre-installable plugins for exactly this reason.
Fix Minecraft server lag step 1: use Paper instead of Vanilla
The vanilla server software is not built for performance. Paper, a widely used fork of Spigot and a cornerstone when you fix Minecraft server lag, rewrites many of the slow parts of the game loop, improves chunk handling and entity processing, and adds a large set of options for tuning. It is compatible with Bukkit and Spigot plugins, so switching rarely costs you anything. For a survival server, a minigames server or any server with plugins, moving from Vanilla or Spigot to Paper is the single change that most often brings immediate gains, which is why it comes first when you want to fix Minecraft server lag.
Whatever software you run, pay attention to the Java version. Recent Minecraft releases require a recent Java runtime, and community hosting guides report that Minecraft 26.1 and newer need Java 25, with older versions failing at startup rather than just running slowly. Check the requirements for your exact version on the official download page. On the Paper side, the project documents recommended startup flags for each Java version, so use those rather than copying an old flag list from a forum post.
Fix Minecraft server lag step 2: reduce view distance and simulation distance
To fix Minecraft server lag at the source, note that two settings in server.properties control how much of the world the server has to handle around every player. View distance is how many chunks are sent to the client. Simulation distance is how many chunks around the player are actually ticked: mobs move, crops grow and redstone runs. Simulation distance is usually the more expensive of the two, and lowering it is one of the safest ways to cut tick time without changing how the world looks.
As a starting point on a busy survival server, a view distance of 8 to 10 and a simulation distance of 5 to 6 are reasonable, and you can raise them if your MSPT stays comfortable. Lower values multiply across every connected player, so on a server with many players the saving is large. Change one value at a time, restart, and compare your TPS and MSPT before and after.
Fix Minecraft server lag step 3: control entities
To fix Minecraft server lag you must understand entities, which are everything that is not a block: mobs, animals, dropped items, minecarts, armour stands and projectiles. Each one costs processing time every tick, and a few hundred in the same area can bring a server to its knees. When you try to fix Minecraft server lag, the usual offenders are automatic farms, large animal pens, villager halls and item sorters that fill with items nobody collects.
The fixes are simple and effective. Lower the mob spawn limits in the Bukkit configuration, which sets how many monsters, animals and ambient creatures can exist per player. Limit how many animals a player can breed in one area, using a plugin or your server rules. Clear dropped items automatically after a reasonable delay, with a warning. Ask players to keep hoppers and farms under control, and consider a plugin that limits entities per chunk. Spark will tell you which entities are costing you the most, so you can target the problem instead of limiting everything.
Fix Minecraft server lag step 4: audit your plugins and mods
Plugins and mods add features, and every one of them has a cost, so cleaning them up is often the quickest way to fix Minecraft server lag. A well-written plugin is nearly free. A badly written one can take more time than the rest of the server combined. Heavy economy plugins, statistics trackers that write to disk constantly, world generators and anything that scans players or chunks every tick are the usual suspects.
Open your plugin list and ask three questions about each entry. Do we still use it? Is it up to date for this Minecraft version? Does the profiler show it near the top? Remove what you do not use, update what you keep, and replace the worst offenders with lighter alternatives. A server with fifty plugins is not automatically slow, but a server with fifty unreviewed plugins usually is. Keep your own short list of what each plugin is for, so you can make that decision quickly next time.
Fix Minecraft server lag step 5: pre-generate the world
When a player flies or rides into unexplored territory, the server has to generate new chunks, which costs CPU, memory and disk time all at once. If several players explore at the same moment, the lag spike is obvious. Pre-generating is a cheap way to fix Minecraft server lag caused by exploration: the fix is to generate the world in advance, while nobody is online, so that exploring only means reading chunks that already exist.
The Chunky plugin is the common tool for this. Set a world border that matches the area you actually want players to use, run a pre-generation task during a quiet period, and let it finish. Pre-generation takes time and disk space, so choose a radius that makes sense, and keep a world border in place afterwards so players cannot wander far beyond what you generated.
RAM, CPU and storage: when it really is the hardware
Sometimes you cannot fix Minecraft server lag with settings alone, because the machine is simply too small. RAM matters because the server keeps chunks, entities, plugin data and player data in memory, and when it runs out, the garbage collector works overtime and the game freezes in short bursts. CPU matters even more than most people realise: the main game loop of a Minecraft server runs largely on a single core, so a processor with high single-core speed is worth more than many slow cores. Fast storage matters for saving worlds and loading chunks without stalls.
| Type of server | Suggested RAM | Notes |
|---|---|---|
| Vanilla or Paper, few plugins, 5 to 10 players | 4 GB | Enough for friends and small communities |
| Paper with active plugins, 10 to 30 players | 6 GB | Leave headroom for plugins and exploration |
| Forge modpack with 30+ mods | 6 to 8 GB | Mods use much more memory than plugins |
| Large modpacks (100+ mods) or 50+ players | 8 GB or more | Size it by your profiler, not by guesswork |
Adding RAM to fix Minecraft server lag only helps if memory is truly the bottleneck. If Spark shows the server spending its time ticking entities or running one slow plugin, extra memory will change nothing. Fix the cause first, then size the server. At Portallis you pay for RAM at €1 per GB per month excluding VAT, with no slot limit and no commitment, so you can raise the amount in a few clicks when your profiler tells you it is needed, and lower it again if you over-sized.
Your Minecraft server, ready in 2 minutes
Java or Bedrock, Paper, Forge or Fabric. Choose your RAM and we take care of the rest. €1 = 1GB (excl. VAT), unlimited slots, free game switching.
A quick checklist to fix Minecraft server lag
When lag appears, work through the same sequence every time rather than changing things at random. It keeps you calm, and it keeps your changes measurable, which is the real secret to fix Minecraft server lag without making things worse.
- Decide whether it is server lag, network lag or client lag by asking who is affected.
- Record TPS and MSPT, and run a Spark profile during the lag.
- Make sure you run Paper and the Java version your Minecraft version requires.
- Lower simulation distance first, then view distance, one change at a time.
- Check entity counts and fix farms, pens and dropped items.
- Remove, update or replace the plugins the profiler points at.
- Pre-generate the world and set a border.
- Only then consider more RAM or a faster host, and measure again.
The main habit is patience: change one thing, restart, measure, and keep a short log of what you did. After a few rounds you will know your server’s normal numbers, and you will spot a regression within minutes instead of after a weekend of complaints. For reference documentation on the settings mentioned here, the Paper documentation is the best place to check current options.
Keep lag from coming back
Lag rarely appears out of nowhere. It usually follows a change: a new plugin, a Minecraft update, a bigger player count or a farm somebody built last weekend. Check your TPS and MSPT after every update and every new plugin, and run a Spark report once a month even when everything feels fine, so you notice slow drift before your players do. Teach your staff to report lag with a time and a place instead of just “it is laggy”, because a location and a moment let you profile the right thing. Those habits are what keep you from having to fix Minecraft server lag again and again, and they turn each future incident into a ten-minute job.
Frequently asked questions
What is a good TPS for a Minecraft server?
A healthy server holds 20 TPS, which is the maximum. Between 18 and 20 is fine in practice, 15 to 18 is light lag, and below 15 is a serious problem. Check MSPT as well, because a server at 20 TPS but close to 50 milliseconds per tick has no headroom left.
Will more RAM fix Minecraft server lag?
You can fix Minecraft server lag with more RAM only if memory is the real bottleneck. When RAM is too small you see freezes caused by garbage collection and out-of-memory crashes. If the profiler shows entities, one plugin or chunk generation using the time, extra RAM will not help, and you should fix the cause instead.
Is Paper really better than Vanilla for performance?
Yes, for almost any server with more than a couple of players, and it is the first step to fix Minecraft server lag. Paper improves chunk and entity handling, adds many tuning options and still supports Bukkit and Spigot plugins. It is the most widely used server software for survival and plugin-based servers for these reasons.
What are good view distance and simulation distance values?
For a busy survival server, a view distance of 8 to 10 and a simulation distance of 5 to 6 are sensible starting points. Lower simulation distance first, since it is the more expensive setting, then adjust according to your MSPT. A small private server with few players can afford higher values.
Why does my server lag only when players explore?
Exploring forces the server to generate new chunks, which uses CPU, memory and disk at once. Pre-generating the world with a plugin such as Chunky while nobody is online removes most of that cost, especially if you set a world border to keep players inside the generated area.
How to fix Minecraft server lag for good
The reliable way to fix Minecraft server lag is to treat it as a measuring problem first and a tuning problem second. Know whether it is the server, the network or the client, read TPS and MSPT, profile with Spark, and then work through Paper, distance settings, entities, plugins, world generation and memory in that order. Each step to fix Minecraft server lag is small, and together they usually turn a stuttering server into a smooth one without a bigger bill. If, after all that, your numbers say the hardware is the limit, a plan sized to your real needs, such as those on our Minecraft server page, is the last and simplest step.