Optimize your Minecraft server performance
Lag has a few usual causes: too many chunks loaded per player, heavy plugins or mods, and new terrain generating while people explore. These settings fix most of it, in order of impact.
- Run Purpur or Paper
- Lower view and simulation distance
- Remove what you do not need
- Pre-generate your world
1. Run the right server software
Section titled “1. Run the right server software”| Software | Best for | Notes |
|---|---|---|
| Purpur | Survival, minigames | Fastest, full plugin support. Our recommendation. |
| Paper | General use | Stable, more optimized than Spigot. |
| Forge / Fabric / NeoForge | Modded only | Heavier; use only for modpacks. |
Switch under Versions, see Changing your Minecraft server version.
2. Lower the view and simulation distance
Section titled “2. Lower the view and simulation distance”This is the single biggest win. Edit server.properties in the file manager:
view-distance=6simulation-distance=4Fewer chunks are loaded and ticked per player. Players still see far enough for normal play; raise to 8 if your server has few players and spare CPU.
3. Java startup flags: already done
Section titled “3. Java startup flags: already done”You don’t need to tune JVM flags or launch arguments. OXY sets them per plan size, with garbage-collection settings tuned for stable memory use on busy and modded servers.
4. Remove plugins and mods you don’t need
Section titled “4. Remove plugins and mods you don’t need”Every plugin or mod costs CPU and RAM. Go through Installed Plugins and remove what you don’t use.
5. Tune the Paper config
Section titled “5. Tune the Paper config”Paper and Purpur read config/paper-world-defaults.yml. These three settings cut work per tick without visible changes:
anticheat: anti-xray: enabled: trueentities: armor-stands: tick: falseenvironment: optimize-explosions: trueIn spigot.yml, spawn fewer mobs per tick:
world-settings: default: ticks-per: animal-spawns: 400 monster-spawns: 1 water-ambient-spawns: 1Restart after saving. Mob-heavy worlds and large player counts benefit the most.
6. Pre-generate your world
Section titled “6. Pre-generate your world”Generating new chunks while players explore is the most common lag spike. Generate them up front with Chunky:
- Install Chunky via Content → Plugins and restart, see Install plugins.
- In the console, run:
chunky radius 250chunky shape squarechunky startThis generates a 500 by 500 block square around spawn. Run it while the server is empty, pause backups, and keep an eye on CPU in the panel. On Forge or Fabric use the Chunk-Pregenerator mod and its /pregen commands.
7. Find the cause with Spark
Section titled “7. Find the cause with Spark”Still lagging? Spark shows TPS, CPU per tick and the slowest tasks. Follow the Spark lag diagnosis walkthrough to record the problem, read the report and test a fix. If you need help, send us the report link.