Optimizing Your Minecraft Server for Performance and TPS Print

  • 0

High TPS (Ticks Per Second) is essential for a smooth Minecraft experience, especially on multiplayer servers. Whether you're hosting a public SMP, minigames, or modded adventure, this guide will help you get the most out of your server.

 

What Is TPS?

TPS stands for Ticks Per Second. Minecraft runs at a target of 20 TPS, which means the server processes one tick every 50 milliseconds. Lower TPS causes:

  • Delayed block breaking/placing
  • Entity lag (mobs moving slowly or erratically)
  • Redstone desyncs and skipped ticks

 

1. Choose a Lightweight Server Jar

Use optimized forks of the Minecraft server software for better performance:

  • Paper – Best for performance and plugin support
  • Purpur – Adds extra configuration options for advanced tuning
  • Fabric (modded) – Lightweight and fast if you’re using mods

Avoid vanilla JARs for public servers unless you're running a pure vanilla experience.

 

2. Use JVM Flags and Allocate RAM Wisely

Don't just throw more RAM at the server. Use modern JVM flags such as:

-Xms2G -Xmx4G -XX:+UseG1GC -XX:+ParallelRefProcEnabled \
-XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions \
-XX:+DisableExplicitGC -XX:+AlwaysPreTouch
  • Start with 4GB RAM, adjust based on players/mods/plugins
  • Avoid allocating more than 8-10GB unless heavily modded

3. Optimize Configuration Files

Edit these files:

paper.yml

  • Set optimize-explosions: true
  • Use max-auto-save-chunks-per-tick: 8

spigot.yml

  • Lower ticks-per values for autosaves if lag spikes occur
  • Limit entity-activation-range

bukkit.yml

  • Adjust chunk-gc and spawn-limits

 

4. Limit Entities and Redstone

Too many mobs or redstone machines will tank performance:

  • Use plugins like ClearLag to monitor and control entities
  • Limit farms and grinders
  • Encourage hopper minecart alternatives

Track entities with /tps, /lagg, or /spark (performance profiler).

5. Use Profiling Tools

Use these tools to identify lag sources:

  • Spark – In-depth server performance analysis
  • Timings Report – Built-in /timings on and /timings paste
  • LagMonitor – Monitors system resource spikes

 

6. Keep Your Server Clean

Regularly prune old chunks and unused worlds

  • Delete unused plugins/mods
  • Backup and restart the server regularly

 

Summary

Optimizing TPS requires a combination of efficient software, smart config choices, entity control, and good maintenance. Whether you're hosting a modded adventure or a massive SMP, following these steps ensures players enjoy a smooth and responsive experience.

 


Was this answer helpful?

« Back