Back to articles
Gaming News & Servers

How to Build a Lag-Free Minecraft Server and Hold a Solid 20 TPS

Move from vanilla Spigot to Paper or Purpur, split view-distance from simulation-distance, pre-generate chunks with Chunky, and tune JVM garbage collection with Aikar flags.

DPTCloud Gaming Team7 min read
How to Build a Lag-Free Minecraft Server and Hold a Solid 20 TPS

Multiplayer Minecraft servers frequently suffer TPS drops when dozens of players generate unexplored terrain simultaneously or build dense entity farms. Pairing a high-clock Xeon Gold Game Hosting node with clean engine tuning solves most TPS bottlenecks.

1. Use Paper or Purpur Instead of Vanilla/Spigot

Both Paper and Purpur preserve Bukkit/Spigot plugin compatibility while introducing asynchronous chunk I/O, entity activation tuning, and critical bug fixes missing in upstream builds.

2. Separate view-distance and simulation-distance

Give players wide scenic horizons while keeping active mob AI, crop growth, and redstone ticking compact inside server.properties:

view-distance=10
simulation-distance=6
network-compression-threshold=256
sync-chunk-writes=false

3. Pre-Generate the World With Chunky Before Launch

Terrain generation while players glide with Elytra saturates CPU cores fast. Run Chunky across a 5,000–10,000 block radius prior to opening public access so live play only reads pre-computed chunks off NVMe storage.

4. Apply Aikar's G1GC Flags to Stop Garbage-Collection Stutters

Default JVM GC settings trigger multi-second pause spikes on 8GB–16GB heaps. Lock -Xms equal to -Xmx and use proven G1GC tuning:

java -Xms8G -Xmx8G -XX:+UseG1GC -XX:+ParallelRefProcEnabled   -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions   -XX:+DisableExplicitGC -XX:+AlwaysPreTouch   -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40   -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20   -XX:InitiatingHeapOccupancyPercent=15   -jar paper-server.jar --nogui

Ready for smooth tickrates? Launch on DPTCloud Game Hosting backed by NVMe storage and built-in game Anti-DDoS mitigation.

DPTCloud Tier III Infrastructure

Ready to deploy on PCIe Gen4 NVMe VPS & 10Gbps Uplinks?

Provision servers in under 60 seconds with edge Anti-DDoS protection and 99.99% SLA uptime.

Related Articles

View all