Skip to content

Lesson 1 of 9 · 24m

Paper, Purpur, and the Operating Baseline

Choose the server implementation for operational reasons, install it repeatably, and set a sane Java and configuration baseline before chasing exotic tuning.

The worst Minecraft server I inherited was not slow because of Java. It was slow because nobody could say which jar it ran, which plugins had been patched by hand, or why spigot.yml contained three contradictory copies of the same setting. Serious administration starts with boring repeatability. Pick a maintained implementation, record why you picked it, and make the runtime reproducible before you tune anything.

Vanilla is a reference, not a production choice

Mojang's vanilla server defines gameplay behavior, but it is not designed around large public communities. Paper is the practical default: it keeps broad plugin compatibility, fixes many vanilla performance and correctness problems, and exposes configuration administrators actually need. Purpur builds on Paper and adds more gameplay toggles. Use Purpur when you deliberately want those toggles, not because a forum said it is faster.

curl -s https://api.papermc.io/v2/projects/paper | jq -r '.versions[-1]'
curl -s https://api.papermc.io/v2/projects/paper/versions/1.21.4 | jq -r '.builds[-1]'

Pin the version and build in your runbook. Automatic-latest installation makes every restart a silent upgrade.

Treat Java as part of the server build

Use a supported 64-bit Java runtime matching the Minecraft generation. Modern Paper generally runs on Java 21 for current releases. Allocate enough memory for the workload, not the whole machine:

java -Xms4G -Xmx4G   -XX:+UseG1GC   -jar paper-1.21.4-221.jar nogui

More heap is not automatically better. A 32 GB heap can turn routine garbage collection into long pauses while starving the operating system page cache that reads region files. Leave memory for the OS, backup jobs, monitoring agents, and file caches.

Tune the first configuration layer conservatively

Start with a small set of high-impact values in server.properties:

view-distance=8
simulation-distance=6
network-compression-threshold=256
max-players=40
online-mode=true

Then inspect bukkit.yml, spigot.yml, and config/paper-world-defaults.yml. A reasonable Paper starting point includes:

entities:
  spawning:
    per-player-mob-spawns: true
  behavior:
    disable-chest-cat-detection: true
misc:
  fix-entity-position-desync: true

These are not universal values. They are examples of controls you should understand before changing. Every config edit needs a reason, a rollback copy, and a measurement plan.

Do not cargo-cult flags

Aikar's JVM flags were valuable when they were written and still teach useful garbage-collector principles, but blind copy-paste is not operations. Java versions, heap sizes, containers, and processors change. Establish the baseline, capture real lag evidence, and tune one variable at a time.

Field notes

  • Keep the exact jar checksum, version, build, and Java version in a server manifest.
  • online-mode=false without a properly secured proxy is account theft waiting to happen.
  • Simulation distance often hurts gameplay perception more than view distance; do not collapse both blindly.
  • A server that cannot be rebuilt from documentation is already in a partial outage.

Was this lesson helpful?

Sign in to rate