Nothing kills a server faster than lag. Players leave, word spreads, and your 50-player community is down to 3 regulars before you know it. But most lag is fixable. These 10 optimizations cover 90% of performance issues we see as a host.
Before You Start: Diagnose the Problem
Before you change anything, figure out what kind of lag you're dealing with:
- TPS lag (mobs freeze, blocks take time to break) → run
/tpsor install a Spark/CPU profiler. Below 18 TPS = problem. - Network lag (high ping, rubberbanding) → run a traceroute. If ping spikes at a specific hop, it's the network, not the server.
- Chunk load lag (stutter when exploring) → disk speed or view-distance too high.
- Memory lag (crash with OutOfMemoryError) → GC pressure, insufficient RAM, or memory leak.
Install Spark and profile your server
spark profiler: let it run for 5 minutes while players are online. Spark will show you exactly which entities, tick phases, or plugins are consuming TPS. This single tool eliminates guesswork.
Use Aikar's JVM flags
Default JVM args are tuned for desktop apps, not Minecraft servers. Replace them with Aikar's optimized flags, which keep garbage collection pauses short and predictable.
Key changes: Use G1GC, set Xms equal to Xmx, enable AlwaysPreTouch. Our panel has a built-in Java flags tuner with these presets ready to go.
Plugin servers: switch to Paper or Purpur
Vanilla Minecraft server.jar is not optimized for performance. Paper (and its fork Purpur) include thousands of optimizations: chunk loading batching, redstone tick limits, entity activation ranges, and more. Most public plugin servers use Paper. Modded servers can't: Paper doesn't load Forge or NeoForge mods, so stay on Forge, NeoForge or Fabric and add performance mods instead.
Tune Paper's config: these 5 settings matter most
On Paper 1.19 and newer, most of these live in config/paper-world-defaults.yml (older versions used a single paper.yml). Adjust:
delay-chunk-unloads-by: 10s. Keeps recently used chunks in memoryentity-activation-range: monsters 32, animals 24, misc 16(this one is inspigot.yml). Less CPU spent on far-away entitiesper-player-mob-spawns: true. Spreads mob load across players instead of globallymax-entity-collisions: 2. Prevents carpet-lag in large farmsredstone-implementation: ALTERNATE_CURRENT. Reduces redstone tick cost
Lower view-distance and simulation-distance
Every chunk in view-distance costs CPU and RAM. Setting view-distance: 8 instead of 12 cuts the chunks loaded around each player from 625 to 289, a reduction of over half. For simulation-distance, 6 is plenty for most servers. It controls how far from players mobs actually tick.
Use a proxy (Velocity) for server networks
If you run multiple game servers (lobby, survival, creative), put Velocity in front. A proxy handles player connections and routing, so your backend servers only deal with gameplay. It also protects your backend IP addresses from attacks.
Audit your plugins: one bad plugin can tank TPS
Plugins with inefficient SQL queries, repeating scheduler tasks, or heavy per-tick calculations can single-handedly destroy performance. Use /spark health to see CPU usage by plugin. Remove or replace the worst offenders.
Check your hardware: is your host the bottleneck?
If you've optimized everything software-side and still see TPS drops during peak hours, the hardware is the problem. Signs your host is overselling:
- TPS drops at the same time every day
- CPU usage that swings wildly in your panel graphs while player count stays flat
- Disk I/O latency spikes (NVMe vs SATA makes a visible difference)
At Revitalize, Pulse checks each node's real headroom before a new server is placed, and the live status board on our homepage lists every node's CPU model.
Let one player skip the night on SMP servers
Running /gamerule playersSleepingPercentage 0 (Java 1.17+) or using a sleep-vote plugin lets a single sleeping player skip the night, so fewer hostile mobs build up while everyone waits for morning.
Monitor, measure, repeat
Performance tuning isn't a one-time task. Set up Spark profiling weekly and compare your TPS, MSPT, and memory graphs. Our Pulse monitoring gives you historical performance data so you can spot trends before they become outages.
If after all 10 steps your server still lags, the issue is almost certainly node overselling or CPU throttling at the host level. Revitalize doesn't oversell: every node is checked for actual available headroom before a new server is deployed. That's part of our no-BS promise.
Need a host that doesn't fight your optimizations?
All-NVMe, Ryzen CPUs, no overselling, and Pulse monitoring so you can see exactly how your server is performing.
Try Revitalize Hosting →Frequently Asked Questions
How do I check my Minecraft server's TPS?
Run /tps in-game or install Spark (/spark tps). 20.0 is perfect, 18+ is fine, below 15 is unplayable.
Will more RAM fix my lag?
Only if you're hitting garbage collection limits. Java fills its heap before cleaning up, so a graph that looks 90% full is usually fine. Look at memory right after a garbage collection: if it stays above about 80% of the heap, or you see OutOfMemoryError, add more. Otherwise RAM isn't your bottleneck. CPU or disk is.
Can plugins cause lag?
Absolutely. A single poorly-coded plugin with an inefficient loop in a task that runs every tick can drop TPS by 50%. Always profile before blaming hardware.
Is Paper better than Fabric for performance?
Paper is optimized out of the box and works with Bukkit plugins. Fabric needs separate server-side performance mods (Lithium, FerriteCore, C2ME) but can achieve similar results. For most servers, Paper is the easier choice.