Skip to main content

Eliminating Lag: The Ultimate Guide


“Lag” can be a frustratingly vague term. To fix it, we must first determine if the issue is Server Lag (low TPS) or Internet Lag (high Ping). This guide focuses on maximizing your Ticks Per Second (TPS) for a 20.0 “Perfect” experience.
Reading TimeDifficultyLast Updated
12 minutesIntermediateJanuary 2026

1. The Power of Pre-Generation

If your server lags when players explore new areas, the CPU is likely struggling with world generation math.
  • The Fix: Use the Chunky plugin to pre-render your world border before players join.
  • Generating a 5,000-block radius overnight will eliminate 90% of explorer-related lag spikes.

2. Optimizing Configuration Files

server.properties

  • view-distance: Set to 6. Default (10) requires the server to process 400% more chunks than needed.
  • simulation-distance: Set to 4. This limits how far away from a player mobs will actually perform AI calculations.

bukkit.yml

  • spawn-limits: Reduce monsters to 45 and animals to 8.
  • ticks-per.monster-spawns: Set to 4. This tells the server to only attempt spawning once every 4 ticks rather than every single tick.

spigot.yml

  • entity-activation-range: Set monsters to 24 and animals to 16. Mobs further than this will “freeze” until a player approaches, saving massive CPU cycles.

3. Advanced Profiling with Spark

If you have optimized your configs and are still lagging, a specific plugin or entity farm may be the culprit.
  1. Install the Spark plugin.
  2. Run /spark profiler start.
  3. After 10 minutes of laggy gameplay, run /spark profiler stop.
  4. Review the generated “Flame Graph” to see exactly which code is stealing your resources.

Support Channels

If you need assistance or have any questions, please contact our support team:

First Month Discount

Use code KB20 at checkout to get 20% off your first month of hosting!

Last Updated: January 2026 | Performance: 20.0 TPS achieved.