Shopping Cart (0)

Your cart is empty.

NewsWelcome to the future of PineRiver: new website, new domain and New Year's sale! Read more
Support

Introduction

A well-functioning Minecraft server requires optimized settings to ensure a smooth and lag-free gaming experience. Whether you're running a private server for friends or managing a larger community server, the right configurations can make a huge difference. In this guide, we'll walk you through the best settings and optimizations to maximize performance and minimize lag.


1. Adjust the server.properties for optimal performance

The server.properties file is the heart of your server's configuration. Below are the most important parameters to adjust:

Recommended settings:

view-distance=6
simulation-distance=6
max-tick-time=60000
max-players=50
allow-flight=true
sync-chunk-writes=false
use-native-transport=true
enforce-whitelist=true

Explanation of important changes:

  • view-distance=6 simulation-distance=6 – Reduces the number of rendered chunks per player, which reduces server load.
  • sync-chunk-writes=false – Improves lag reduction by writing chunks asynchronously.
  • use-native-transport=true – Provides better performance on Linux-based servers.
  • max-tick-time=60000 – Prevents server crashes during high CPU loads.

2. Use PaperMC for better performance

Vanilla Minecraft servers are not optimized for large numbers of players. PaperMC is an improved version that offers better performance and more configuration options.

How to install PaperMC:

  1. Download the latest version from Papermc.io.
  2. Upload paper.jar to your server folder.
  3. Start the server with the following command:
    java -Xms4G -Xmx8G -jar paper.jar nogui
    

PaperMC has several settings that reduce lag, such as:

  • Optimized mob spawning
  • Asynchronous chunk loading
  • Improved redstone handling

3. Optimize spigot.yml and paper.yml

Important changes in spigot.yml

entity-activation-range:
  animals: 16
  monsters: 24
  raiders: 48
  misc: 8
  • Reduces the amount of entities that are actively processed.
entity-tracking-range:
  players: 48
  animals: 32
  monsters: 32
  misc: 16
  • Limits how far players can see mobs and entities to reduce CPU load.

Important changes to paper.yml

max-entity-collisions: 2
armor-stands-tick: false
prevent-moving-into-unloaded-chunks: true
  • Reduces lag caused by entity interactions.

4. Install optimization plugins

Plugins can help improve performance by removing unnecessary tasks and resource-intensive mechanics.

Recommended optimization plugins:

  • ClearLag – Automatically removes excess mobs and drops.
  • Spark – Provides detailed insight into server performance.
  • VillagerOptimiser – Reduces lag from villagers.
  • LaggRemover – Monitors and reduces server lag.

5. Optimize your server machine

Hardware and OS settings also play a big role in the performance of your Minecraft server.

Important optimizations:

  • Use an SSD/NVMe disk – Faster disk speed means faster chunk loading.

  • Run Java 17 or newer – Newer Java versions provide better performance and security.

  • Allocate the correct amount of RAM

    java -Xms4G -Xmx8G -jar paper.jar nogui
    

    (Adjust according to your server needs, but too much RAM can worsen garbage collection!)

  • Use a dedicated server from PineRiver – Powerful Ryzen CPUs provide optimal performance.


6. Schedule automatic restarts and backups

Regular restarts and backups improve server stability and protect against data loss.

Setting up automatic restarts:

On Linux, you can use cron-job:

crontab -e

Add this line to restart the server daily at 4:00 a.m.:

0 4 * * * /home/minecraft/restart.sh

For Windows, you can use Task Scheduler to schedule restarts.

Automatic backups:

Use a simple script like this:

#!/bin/bash
tar -czf /home/minecraft/backups/mc_backup_$(date +%F).tar.gz /home/minecraft/server/

Schedule it with cron to run every night.


Final thoughts

By optimizing your Minecraft server settings, you can reduce lag, improve performance, and ensure a better gaming experience for your players. Use the recommended settings, optimization plugins, and hardware adjustments to achieve the best results.

Want a high-performance Minecraft server with optimized hardware and DDoS protection? Check out PineRiver and get the best hosting solution today!

Are you ready to begin?

Create Your Own ServerAre you ready to begin?

Start your server today and we'll give you a 25% discount on your first server. Use code NEW25 at checkout.