Entity & Mob Throttling
Unrestricted villager pathfinding and large mob farms drain up to 60% of tick time. Throttling brain ticks and spawner tick rates eliminates unnecessary path computations.
Run /spark profiler --stop on your server to generate your link.
Spark's default viewer can be overwhelming. Paste your URL above to view clean host hardware specs, loaded world telemetry, mob counts, and targeted configuration fixes.
Clear, non-technical answers to Minecraft server optimization.
The essential principles behind Paper, Purpur, and JVM garbage collection tuning.
Unrestricted villager pathfinding and large mob farms drain up to 60% of tick time. Throttling brain ticks and spawner tick rates eliminates unnecessary path computations.
Keep view-distance at 10-12 while setting simulation-distance to 4-6. Players see distant landscapes without loading active ticking entities.
Default Java GC pauses the entire server during memory cleanup. Aikar G1GC flags spread garbage collection across small, concurrent pauses to avoid stutter.
| Setting | File | Vanilla | Recommended |
|---|---|---|---|
| simulation-distance | server.properties | 10 | 4 - 6 |
| villager.brain-ticks | purpur.yml | 1 | 2 - 4 |
| redstone-implementation | paper-world-defaults.yml | VANILLA | ALTERNATE_CURRENT |
| network-compression-threshold | server.properties | 256 | 512 |
TPS (Ticks Per Second) measures how many game loops occur per second (capped at 20.0). MSPT (Milliseconds Per Tick) measures how long each tick takes to compute. As long as MSPT stays under 50ms, the server maintains 20 TPS.
Spark flamegraphs group CPU usage by Java package names. Look for the "Plugins" branch in your flamegraph; any plugin accounting for more than 10-15% of total tick duration is a primary lag suspect.
Yes, Purpur builds directly on Paper with additional performance knobs such as villager brain tick intervals, alternate keep-alive packets, and custom mob AI throttling.
For a modern 1.21 Paper server with 20-30 players, 6GB to 8GB of DDR5 RAM with Aikar flags is typically ideal. Excessively allocating 16GB+ on small servers can actually trigger longer GC pause spikes.