This guide will help you optimize your Minecraft server to reduce lag and improve the performance.
Consider switching to PaperMC, PaperMC has much better performance than Vanilla and also provides plugins support. PaperMC also patch some vanilla bugs and exploits. If you wish to stay with the bugs and exploits, switch to Fabric with some server sided performance mods. There’s not much you can do to optimize a Vanilla server, one of the main reason is that Vanilla doesn’t support plugins or mods, etc.
It’s not easy to optimize Forge, specially when using too many mods, heavy mods, etc. We really recommend that you use the mods that are really needed, removing unused mods will help a little bit with improving your server performance. Here we list some options that you can follow to optimize your Forge server:
One of the best ways to reduce lag is using performance mods. You can find a list of performance mods that are server-side only to improve your performance here. Some reasons that might increase lags are described in the following list with a possible solution:
/kill @e[type=NAME]
where NAME would be the name of the entitie, e.g. /kill @e[type=item]
will delete all dropped items. For more information about the command, read this guide.3
.Paper itself is a very good optimized server software but if you continue to have lags or low TPS you can follow the instructions listed below:
spawn-limits:
monsters: 50
animals: 8
water-animals: 7
water-ambient: 10
water-underground-creature: 3
ambient: 1
chunk-gc:
period-in-ticks: 400
ticks-per:
animal-spawns: 400
monster-spawns: 5
water-spawns: 11
water-ambient-spawns: 21
water-underground-creature-spawns: 1
ambient-spawns: 31
autosave: 6000
settings:
save-user-cache-on-stop-only: true
world-settings:
default:
merge-radius:
item: 4.0
exp: 6.0
world-settings:
default:
item-despawn-rate: The-Value-You-Think-Would-Be-Better
world-settings:
default:
mob-spawn-range: 6
world-settings:
default:
max-tick-time:
tile: 1000
entity: 1000
world-settings:
default:
nerf-spawner-mobs: true
world-settings:
default:
entity-activation-range:
animals: 16
monsters: 24
raiders: 48
misc: 8
world-settings:
default:
entity-activation-range:
tick-inactive-villagers: false
world-settings:
default:
max-auto-save-chunks-per-tick: 6
world-settings:
default:
game-mechanics:
disable-chest-cat-detection: true
world-settings:
default:
optimize-explosions: true
world-settings:
default:
mob-spawner-tick-rate: 2
world-settings:
default:
game-mechanics:
disable-chest-cat-detection: true
world-settings:
default:
container-update-tick-rate: 3
world-settings:
default:
max-entity-collisions: 2
world-settings:
default:
grass-spread-tick-rate: 4
world-settings:
default:
despawn-ranges:
monster:
soft: 28
hard: 96
creature:
soft: 28
hard: 128
ambient:
soft: 28
hard: 96
axolotls:
soft: 28
hard: 96
underground_water_creature:
soft: 28
hard: 96
water_creature:
soft: 28
hard: 96
water_ambient:
soft: 28
hard: 64
misc:
soft: 28
hard: 96
world-settings:
default:
hopper:
disable-move-event: true
world-settings:
default:
non-player-arrow-despawn-rate: 60
world-settings:
default:
creative-arrow-despawn-rate: 60
world-settings:
default:
prevent-moving-into-unloaded-chunks: true
world-settings:
default:
use-faster-eigencraft-redstone: true
world-settings:
default:
armor-stands-tick: false
world-settings:
default:
per-player-mob-spawns: true
You can try the suggestions given in the section “PaperMC”. PaperMC is a fork of Spigot, therefore the server has the bukkit.yml
and spigot.yml
files.
You can try and test the suggestions given for Forge and PaperMC servers since MohistMC is a combination of both server software.
It’s hard to have a good performance using modpacks, mostly because modpacks usually have too many heavy mods. Some solutions are mentioned in the list below:
There’s no way to optimize a Bedrock server because we cannot add modifications, plugins or update settings that may improve the server performance. Although, Bedrock servers don’t really have a bad performance (most of the time).
We suggest not using Pocketmine if you want to miss the updates of new Minecraft versions. Pocketmine is missing several features and all updates above 1.12 are not added to Pocketmine, also many gamerules are missing. Please do not use Pocketmine for a survival experience. The best way to get a better performance is using some optimization plugins (if they even exist).