MinecraftPerformanceTroubleshooting

How to Fix Minecraft Server Lag (TPS, MSPT & Ping Guide)

LuxuryNodes Team
LuxuryNodes Team

Minecraft server lag is the most common issue server administrators face. Players complaining about rubberbanding, delayed block breaking, or mob teleportation can quickly ruin a multiplayer experience.

However, "lag" is a blanket term that actually describes three completely different technical problems. To fix Minecraft server lag, you first need to identify which type of lag you are experiencing: Server-Side Lag (TPS/MSPT), Network Lag (Ping), or Client-Side Lag (FPS).

This guide focuses on fixing the server itself.


1. Diagnosing Server-Side Lag (TPS & MSPT)

Server-side lag occurs when your server's hardware (specifically the CPU) cannot keep up with the game's calculations.

Minecraft's game loop operates on "ticks". Ideally, the server processes 20 ticks every second (20 TPS). To maintain 20 TPS, the server must process each tick in under 50 milliseconds (MSPT).

  • TPS (Ticks Per Second): The result. 20 is perfect. Below 18 feels laggy.
  • MSPT (Milliseconds Per Tick): The cause. Below 50ms is perfect. Above 50ms causes the TPS to drop.

How to check your TPS and MSPT

If you are running Paper or Purpur, type /mspt and /tps in the console. If your MSPT consistently stays above 50, the server main thread is taking too long to compute ticks, which causes TPS drops. You can use our TPS & MSPT Calculator to visualize exactly how your MSPT is affecting your tick rate.

How to Fix TPS Drops

If your TPS is low, the main server thread is likely bottlenecked by a heavy workload (such as entities, chunk generation, or unoptimized plugins). Here is how you can often mitigate it:

Switch to Paper or Purpur

If you are running Vanilla or Spigot, you are leaving massive performance gains on the table. Vanilla Minecraft runs almost everything on a single thread. Switching to an optimized fork is mandatory for modern Minecraft versions.

Reduce View Distance and Simulation Distance

This is the fastest way to save CPU cycles.

  • View Distance: How many chunks are sent to the player.
  • Simulation Distance: How many chunks actively process entity AI and crop growth.
  • Fix: Open your server.properties file (or use our server.properties Generator) and lower simulation-distance to 4 or 5. You can leave view-distance higher (e.g., 8-10) so players can still see far away without stressing the server.

Pre-generate Your World

When a player explores new terrain, the server has to generate those chunks from scratch. This is incredibly CPU-intensive. Use a plugin like Chunky to pre-generate a border of 5,000 x 5,000 blocks while the server is empty.


2. Diagnosing Network Lag (Ping)

Network lag has nothing to do with your server's CPU or RAM. It happens when data takes too long to travel between the player's computer and the server's physical location.

  • Symptoms: TPS is 20, but players still experience block lag.
  • Cause: Poor routing, geographic distance, or bad Wi-Fi.

How to Fix High Ping

  • Choose the Right Location: Host your server geographically close to your player base. If your players are in Europe, do not host your server in Los Angeles. LuxuryNodes offers multiple global locations.
  • Use Ethernet: Tell lagging players to use a wired ethernet connection instead of Wi-Fi.

3. Diagnosing "Can't Keep Up! Is the server overloaded?"

If your console is spamming this message, it means your server's MSPT has spiked drastically above 50ms.

If this happens alongside "OutOfMemoryError" messages, your server does not have enough RAM to handle its current load, forcing Java to constantly run Garbage Collection (which freezes the server).

How to Fix Out of Memory Lag

  1. Analyze your logs using our Minecraft Log Analyzer to confirm if memory is the issue.
  2. Calculate your actual RAM needs using our Minecraft RAM Calculator.
  3. Upgrade your hosting plan to accommodate your player base and plugins.

Summary

Fixing Minecraft server lag is a process of elimination. First, check your TPS. If it's 20, the issue is network-related (Ping). If it's below 20, the issue is server-side. By optimizing your server.properties, switching to Paper, and ensuring you have enough RAM, you can achieve a flawless 20 TPS experience for your community.

Still struggling with lag? Shared hosts often oversell their nodes, starving your server of CPU power. Upgrade to LuxuryNodes Minecraft Hosting for dedicated resources and premium hardware designed specifically for high TPS.

Ready to host your own server?

Experience blazing-fast performance with LuxuryNodes. Built for gamers, loved by developers.

View Hosting Plans