Category: Optimization

Minecraft servers are heavy to run, so knowing how to squeeze just that tiny bit of performance is useful. Here are all the blog posts related to the optimization of Minecraft Servers.

  • Minecraft Tick Sync and Redstone Performance: What Actually Costs MSPT

    Minecraft Tick Sync and Redstone Performance: What Actually Costs MSPT

    Redstone gets blamed for lag more often than any other mechanic in Minecraft, and the blame usually lands in the wrong place. This guide exists to help server owners and technical players stop guessing. It comes from a set of controlled experiments we ran on Paper 26.2 with an empty sky deck, no plugins, no players, and every source of random work switched off, so redstone was the only variable left.

    The short version: the cost is not the number of redstone components you place. It is the number of block state changes and scheduled ticks that land on the main thread inside the same 50 millisecond window. We measured 5,000 observer clocks adding 5.3 ms per tick and 5,000 chained repeaters adding essentially nothing, and that gap explains most redstone lag arguments you see on forums.

    The Tick Budget in Plain English

    Minecraft runs at 20 ticks per second, which gives every tick a 50 ms budget of wall clock time. If the server finishes its work in 4.3 ms, it idles for the rest. If it needs 9.6 ms, it still hits 20 TPS because there is headroom. Once the average crosses 50 ms, ticks start being skipped and TPS falls below 20. MSPT (milliseconds per tick) is the number to watch, because TPS hides problems until they are severe. Our MSPT and tick rate performance guide covers the arithmetic in detail.

    What “tick sync” actually means

    Tick sync is shorthand for a simple fact: everything that mutates world state runs in a fixed order on one thread. Scheduled block ticks, neighbor updates, entity ticks, block entity ticks, and chunk ticking are all serialized on the main server thread, once per tick. Async chunk generation on Paper, Netty handling packets, and plugin async tasks move work off that thread, but none of them move redstone work off it. A circuit that fires every tick has to finish inside the tick.

    That is why adding cores rarely helps a redstone-heavy base. The Paper configuration reference has dozens of knobs, and not one of them parallelizes block updates.

    How Redstone Becomes MSPT

    Two things cost time, and they are not the same thing. Scheduled ticks are queued with a delay: a repeater or observer that fires waits a set number of ticks before its next action, and the queue is drained every tick. Neighbor updates happen immediately, in the same tick, when a block changes state. Every update makes the game check surrounding blocks, and those checks can schedule more ticks and emit more updates. Breadth matters more than the size of the build.

    Why the same circuit behaves differently in two places

    Update order is the reason. The engine walks block positions in a fixed sequence, and circuits that depend on which neighbor updates first will behave one way at spawn and another 30,000 blocks out. Chunk boundaries, the direction a wire runs, and even the order two pistons are placed can flip a race. That is not a bug to report; it is a property of the redstone update mechanics you are building against. Design circuits that tolerate reordering instead of ones that need a specific order.

    Cost per component is not equal either. Observers and redstone dust are update generators: dust recomputes power and notifies neighbors, observers schedule a pulse and emit updates. Repeaters are cheap when idle because their scheduled tick is far in the future. Pistons are the most expensive single block, since a push changes many block states and can spawn moving-block entities.

    The Test That Surprised Us

    We built a flat deck in the sky with nothing on it, disabled mob spawning, random ticks, and the daylight cycle, then recorded MSPT until the numbers stopped drifting. Then we added one circuit type, warmed up again, and sampled for two minutes. Every run used identical gamerules and a fresh world so chunk state could not leak between tests.

    /gamerule randomTickSpeed 0
    /gamerule doMobSpawning false
    /gamerule doDaylightCycle false
    /difficulty peaceful
    
    # baseline sanity check
    /tick query
    
    # collect a real sample, not a single reading
    /spark profiler start --timeout 120
    /spark profiler stop
    
    # repeat with the circuit placed, then subtract the baseline
    1. Run the empty deck for 5 minutes so JIT and chunk loading settle.
    2. Sample 120 seconds twice and keep the median and the P99, not the average alone.
    3. Place exactly one circuit type and warm up again.
    4. Sample the same way, then subtract the empty-deck median.
    5. Change one variable per run, or the number means nothing.

    For reading the output, our beginner’s guide to spark reports walks through the flame graph, and the spark documentation covers sampling flags.

    What 5,000 Observers Actually Cost

    Hardware was a 16 vCPU host with -Xms2G -Xmx4G and G1GC. Observer pairs were self-clocking, each with a 2-tick feedback loop, so every pair changed state constantly. The repeater test was a delay line: 5,000 repeaters in rows of 250, delay 1, fed by a redstone block toggled every 20 ticks.

    ScenarioMedian MSPTDeltaWhat it means
    Empty deck4.3 msbaselineServer had lots of headroom
    1,000 observer pairs5.4 ms+1.1 msLinear so far; still comfortable
    5,000 observer pairs9.6 ms+5.3 msP99 hit 20.6 ms; TPS stayed 20
    5,000 chained repeaters4.2-4.5 ms~0 msOnly the wavefront changed state

    The repeater result is the most useful lesson in the whole experiment, not a failed test. Five thousand blocks were capable of ticking, but roughly 20 of them changed state on any given tick, because the pulse was still traveling down the line. A delay line is mostly idle. Independent clocks are not. Redstone cost tracks simultaneous state changes and scheduled updates per tick, and only loosely tracks how many components exist.

    Rules for Farms That Do Not Melt the Server

    You do not need to remove every circuit. You need to know which ones run when nobody is watching. Our measured costs suggest a few rules that hold up in practice:

    • Count simultaneous state changes per tick, not blocks placed.
    • Replace thousands of small clocks with one central clock and a distribution bus.
    • Slow a clock from 1 tick to 4 ticks where the farm still keeps up; the savings are large.
    • Avoid 0-tick and 1-tick novelty circuits on a production server. They are pure overhead.
    • Gate 24/7 builds behind a player-presence or chunk-loaded check so they sleep when idle.
    • Profile before deleting anything, and test at realistic chunk and entity load.

    Paper settings matter at the edges, not the core. Lower simulation distance trims entity and block ticking work, and entity activation ranges reduce idle mob costs, as covered in view distance vs simulation distance. None of those flags removes redstone work from a loaded chunk. Chunk loaders deserve separate scrutiny because they keep circuits awake, which is why chunk loader cost is worth reading before you place one.

    Quick checklist. Is the build running when nobody is nearby? Is the chunk force-loaded? How many state changes per tick does it produce? Does it need to run 24/7, or only while someone is using it? Can it be batched into one clock, or gated behind a switch?

    Pros and Cons: Tune the Build or Throw Hardware at It

    Both approaches are valid, and the right answer depends on whether your bottleneck is redstone or everything else.

    • Optimizing the farm: free, permanent, and survives a host migration. Downsides: it takes time, needs measurement, and players may resist changes to their builds.
    • Buying hardware: fast and zero player friction. Downsides: it masks the cause, recurring cost, and a single-thread bound workload gains little from more cores.
    • Best mix: fix the handful of circuits that burn 5 ms per tick, then buy headroom for world size and player count.

    Common Mistakes to Avoid

    • Counting blocks instead of updates. Our repeater line is the proof: 5,000 components, near-zero cost.
    • Benchmarking with players online. Player movement, inventory, and chunk loading swamp the signal.
    • Trusting one 5-second sample. Garbage collection and chunk loading produce spikes that vanish in a longer median.
    • Ignoring P99. Our 5,000-observer run averaged 9.6 ms but spiked to 20.6 ms, and that tail is what players feel.
    • Benchmarking an idle server. A build that costs 1 ms on an empty deck may cost 4 ms inside a busy base.
    • Copying a farm without measuring it. Someone else’s schematic on someone else’s hardware tells you nothing about your tick.

    Frequently Asked Questions

    What does tick sync mean in Minecraft?

    It means all world logic runs in order on the main server thread, once per tick. Scheduled block ticks, neighbor updates, entity ticks and chunk ticking are serialized, so a circuit that fires every tick must finish inside the 50 ms tick budget.

    Do observers cause more lag than repeaters?

    Usually yes. Observers emit block updates and schedule pulses constantly, while a repeater’s scheduled tick sits far in the future until the signal arrives. In our test, 5,000 chained repeaters added near-zero MSPT while 5,000 observer clocks added 5.3 ms.

    How many MSPT does redstone add to a server?

    It depends on state changes per tick, not build size. On Paper 26.2 we measured a 4.3 ms empty-deck baseline, 5.4 ms with 1,000 observer clocks, and 9.6 ms with 5,000. Your numbers will differ with chunk and entity load.

    Can Paper settings fix redstone lag?

    No. Simulation distance, entity activation range and similar options reduce entity and chunk work, but block updates and scheduled ticks still run on the main thread. Config changes buy room; the circuit itself has to be redesigned or gated.

    Measure One Circuit This Week

    Tick sync is not a bug you can patch around. It is the shape of the workload, and once you measure the shape you can design around it: fewer simultaneous state changes, one clock instead of thousands, and builds that sleep when nobody is nearby. Start with the noisiest farm on your server, copy it to a test deck, and get a baseline before you touch anything.

    If you want a second pair of eyes on the numbers, bring your spark profile and the tick loop reference to the table and compare what the graph says against what the build actually does.

  • Memory Leaks in Minecraft Plugins: Find Them Before They Crash You

    Memory Leaks in Minecraft Plugins: Find Them Before They Crash You

    A plugin memory leak does not announce itself. The server runs fine for a week, then restarts start taking longer, tick times creep upward, and one morning the console is full of java.lang.OutOfMemoryError: Java heap space. This guide exists to break that cycle: it shows how to prove a leak is real, capture evidence while the server is still sick, and name the object that is holding memory it should have released.

    It is written for server owners, administrators, and plugin developers who can read a log and run a command but have never opened a heap dump. The measurements come from our own lab: Paper 26.2 on OpenJDK 25.0.4.1, 16 vCPU, a 1 GB heap with -Xms1G -Xmx1G -XX:+UseG1GC, an empty world, and one purpose-built plugin that kept a 1 MiB byte[] in a static list every tick. That deliberately crude leak filled the heap and threw an OutOfMemoryError about 35 seconds after launch, which makes it a useful teaching case, not a realistic one.

    Is It a Leak or Just a Small Heap?

    Those two problems look identical from the console and have opposite fixes, so settle the question before you touch a flag. A leak means live objects survive garbage collection because something still references them. An undersized heap means the objects are genuinely needed and there is simply not enough room. The distinguishing signal is what the heap looks like after a full collection.

    Watch for this cluster of symptoms over days, not minutes:

    • Post-GC heap climbing. Record used memory right after a full GC at hour 1 and again at hour 6. A healthy server returns to roughly the same floor. A leaking one returns higher every time.
    • MSPT spikes that grow in length. Long pauses show up as tick time outliers before they show up as player complaints. Our MSPT and tick rate guide explains how to read those numbers.
    • OutOfMemoryError: Java heap space in logs/latest.log, often preceded by a burst of java.lang.OutOfMemoryError variants from unrelated threads.
    • Time to OOM shrinking after each restart. Eight days, then three, then six hours. This is the strongest leak signal there is, because it means the baseline itself is growing.

    Capture the Evidence Before You Restart

    # find the server PID (Linux)
    jps -l | grep -i paper
    
    # 1. current heap occupancy and collector state
    jcmd 12345 GC.heap_info
    
    # 2. class histogram, biggest consumers first
    jcmd 12345 GC.class_histogram | head -30
    
    # 3. full heap dump for offline analysis
    jcmd 12345 GC.heap_dump /srv/dumps/leak-$(date +%H%M).hprof

    Run GC.heap_info three times, ten minutes apart, and write down used and committed. Run GC.class_histogram at the same moments. The histogram is a snapshot of live objects by class, and a class whose byte total grows while everything else is flat is your prime suspect. On a live production server you can also take the dump through spark with /spark heap --live, which forces a collection first so the file contains only reachable objects and is much smaller.

    A dump taken after the OutOfMemoryError is usually worthless. By then the JVM has thrashed, half the threads have died inside exception handlers, and the heap you capture is a wreck rather than the state that caused the failure. Our lab server did exactly this: it never exited cleanly on its own and had to be killed after the OOM. Dump at 70 to 85 percent heap usage, while the server is still answering, and keep the file. Oracle’s JDK troubleshooting guide documents these diagnostics and the flags that make them automatic.

    Read the Heap Like an Engineer

    Open the .hprof in Eclipse Memory Analyzer, not in a text editor and not in a spreadsheet. MAT is free, handles multi-gigabyte dumps, and answers the one question that matters: which object is keeping all this memory alive? Let it build its index, then work in this order.

    • Leak suspects report. MAT’s heuristic groups the largest retained sets. It is right often enough to be the first click and wrong often enough that you should verify by hand.
    • Dominator tree. Sorted by retained size, this shows the objects whose removal would free the most memory. A single HashMap at the top with a huge retained size is the classic signature.
    • Path to GC Roots. Right-click the suspect, exclude weak and soft references, and read the chain back to a static field. This is what turns “something is big” into “this plugin’s static cache is big”.

    Keep shallow size and retained size separate in your head. Shallow size is the object itself, a few dozen bytes for a map entry. Retained size is everything that dies with it, which is where the gigabytes live. A 300 MB dominator with a 48-byte shallow size is not a contradiction; it is a container.

    The Leak Patterns That Cause Most OutOfMemoryErrors

    Plugin leaks are rarely exotic. They come from the same small set of lifecycles being handled incorrectly, and each pattern leaves a recognizable fingerprint in a dump.

    PatternWhat you see in the dumpFix
    Static Map or List used as a cacheOne HashMap or ArrayList dominating retained size, reachable from a static fieldBound it, add expiry, or use Caffeine
    Listener or task not unregistered in onDisablePlugin classloader alive after reload, listener list holding your instanceCancel tasks and unregister handlers on disable
    Per-player data never removed on quitPlayerData objects growing with unique player countRemove entries in PlayerQuitEvent
    Unbounded cache of chunks, blocks, or NMS handlesCraftWorld, LevelChunk, or BlockPos arrays retainedCap entries and drop references on world unload
    Repeating task capturing a player or plugin instanceRunnable holding a Player reference long after logoutUse UUIDs, or cancel the task on quit

    Two patterns deserve extra suspicion because they survive reloads. A plugin that forgets to cancel its repeating tasks in onDisable keeps its own classloader reachable, so /reload confirm leaks an entire copy of the plugin each time. The Paper plugin lifecycle docs and the Bukkit scheduler reference both spell out that registration and cancellation are paired obligations. If your reload workflow is part of the problem, auditing and trimming plugins is the cheaper first step.

    Fix, Verify, and Prevent Regressions

    Once MAT names the retainer, the fix is usually a few lines. Make the container bounded, remove entries on the lifecycle event that ends their usefulness, and close anything that holds a native resource.

    • Bound every cache. A Map keyed by player UUID with no eviction is a leak with a delay. Caffeine gives you maximumSize and expireAfterAccess in one line.
    • Remove on quit. Handle PlayerQuitEvent for every per-player structure you own, not just the obvious profile map.
    • Cancel in onDisable. Store task IDs from runTaskTimer and cancel them, then unregister listeners.
    • Prefer weak references for observer-style registrations where the holder should not keep the target alive.
    • Update the plugin. Many leaks ship fixed in later builds; check the issue tracker before writing a patch.

    Then prove it. Restart, run a soak test for 24 to 48 hours with realistic player churn, and capture GC.class_histogram at hour 1 and hour 24. The fixed server should return to the same post-GC floor at both points; the leaking one will not. Our lab run gave the reference shape: 419,206,328 bytes of byte[] at 24.8 seconds on a 1,048,576K heap, against 749,765K used after a collection moments earlier. A flat line where that staircase used to be is your proof.

    Pros and Cons: Restart-First vs Diagnose-First

    Both approaches have a place, and the right answer depends on whether players are online right now.

    • Restart-first, pro: it restores service in under a minute and keeps your community happy during a peak-hour failure.
    • Restart-first, con: it destroys the evidence, resets your baseline, and guarantees the same failure returns. Repeated restarts train players to expect instability.
    • Diagnose-first, pro: a dump plus two histograms usually names the culprit in under an hour, and the fix is permanent.
    • Diagnose-first, con: a dump pauses the server, dumps can reach several gigabytes, and reading MAT takes practice.

    A workable compromise: capture GC.heap_info, a histogram, and a dump in that order, then restart. You get the evidence and the uptime, and you analyze offline while the server is healthy again.

    Common Mistakes to Avoid

    • Raising -Xmx as a fix. It only delays the OOM, and it makes every full GC pause longer and every dump bigger. Raise heap when the post-GC floor is stable but too high; fix code when the floor climbs.
    • Dumping after the OOM. The heap is already corrupted by failed threads. Dump at 70 to 85 percent usage instead.
    • Reading the histogram as a verdict. It shows a class growing, not who retains it. Confirm with the dominator tree and Path to GC Roots.
    • Reloading plugins to test a fix. Reloads leak classloaders in ways that mimic real leaks and ruin your comparison. Restart cleanly.

    Frequently Asked Questions

    How do I know a Minecraft plugin is leaking memory?

    Check used heap right after a full GC at two points hours apart. If the post-GC floor keeps climbing while player count and worlds are stable, and time to OutOfMemoryError shrinks after each restart, something is retaining objects it should release. Confirm with a class histogram and a heap dump.

    Should I take a heap dump after an OutOfMemoryError?

    Usually no. By then threads are failing and the heap is a wreck, so the dump rarely shows the state that caused the failure. Take it while the server is still responding, at roughly 70 to 85 percent heap usage, and analyze it offline in Eclipse MAT.

    How much memory should a Minecraft server have?

    Enough that the live set after a full GC sits well below the maximum, typically under 60 percent of -Xmx with your normal player count. If that floor is stable, adding memory helps. If the floor climbs every hour, more memory only delays the crash.

    Do plugin reloads cause memory leaks?

    Frequently, yes. Reloading without cancelling tasks and unregistering listeners keeps the old classloader reachable, which leaks an entire copy of the plugin per reload. Restart the server to test a fix, and treat repeated reloads as a leak source in their own right.

    Measure the Floor, Then Fix the Code

    Memory leaks in Minecraft plugins are diagnosable. Prove the leak by watching the post-GC floor, capture a dump while the server still answers, and let the dominator tree tell you which collection is holding the growth. Then bound it, remove entries on quit, cancel tasks on disable, and soak the fix for two days.

    Start today with one command: run jcmd <pid> GC.class_histogram on your production server and save the output with a timestamp. That baseline is the thing you will wish you had the next time the console goes red. If you want to read tick times alongside it, our guide to spark reports covers the rest of the picture. The spark documentation has the heap command details you need to go further.

  • A Practical Guide to Paper’s Config Files: What Actually Matters

    A Practical Guide to Paper’s Config Files: What Actually Matters

    Paper ships with dozens of configuration files, and most server owners either leave them untouched or change ten values at once because a forum post told them to. This guide exists to make the second option unnecessary. It maps every file to the folder it actually lives in, ranks the settings that still matter on modern Paper builds, and shows the measurement loop that tells you whether a change helped or just felt like it did.

    It is written for owners and administrators who already know what TPS means and now want to stop guessing. The numbers below come from our own Paper 26.2 lab server, where we loaded thousands of hoppers and hopper minecarts and sampled tick times once per second, and every recommendation was checked against the official Paper configuration reference. Nothing here is copied from a 2019 flag list.

    The File Map: Where Each Config Actually Lives

    The first reason config advice fails is that it points at the wrong file. Paper still reads the old Bukkit and Spigot files for backward compatibility, but the interesting settings moved, and a value in the wrong place is silently ignored. Here is the layout after a first start on a current Paper build, with the split introduced in 1.19 and kept through the 26.x line.

    • server.properties in the server root. Vanilla settings: view distance, simulation distance, online mode, difficulty, max players.
    • bukkit.yml and spigot.yml in the server root. Legacy Spigot settings that Paper still honors: spawn limits per world, merge radius, entity collisions, tick catch-up.
    • config/paper-global.yml. Paper only, server wide: hopper behavior, chunk loading threads, packet limits, proxy forwarding, console filters.
    • config/paper-world-defaults.yml. Paper only, applies to every world that does not override it: spawning, anti-xray, entity activation ranges, despawn behavior.
    • config/paper-world.yml inside a <world name>/ folder. A per-world override that wins over the defaults file for that world only.

    On first boot Paper writes all of these for you, including the config/ folder. It also refuses to start when it finds an unknown key in a Paper file, and the console error names the file and the key, which is the fastest way to find a typo or a setting that no longer exists in your version.

    What Each File Controls and What It Costs You

    Use the table as a triage sheet. The risk column is not about crashing the server, it is about how likely a change is to produce behavior players notice and complain about before you notice the tick time.

    FileControlsTop settings worth touchingTypical risk
    server.propertiesVanilla world and network behaviorview-distance, simulation-distance, max-playersLow, but directly rewrites player experience
    bukkit.ymlPer-world spawn limits, chunk GCspawn-limits, chunk-gc.period-in-ticksMedium: mob farms stop working as designed
    spigot.ymlEntity merging, collisions, spawn rangemerge-radius, max-entity-collisions, mob-spawn-rangeMedium: visual glitches and laggy-looking mobs
    config/paper-global.ymlPaper server-wide behaviorhopper.cooldown-when-full, hopper.disable-move-eventHigh for hopper flags: plugins listen to move events
    config/paper-world-defaults.ymlPer-world Paper defaultsentities.spawning.spawn-limits, entity-per-chunk-save-limitMedium: interacts with datapack spawn caps
    <world>/paper-world.ymlOne world, overrides defaultsAnti-xray, spawning, despawn rangesLow, but confuses anyone reading only the defaults file

    Two of those rows deserve emphasis. server.properties is where the biggest wins hide, and we covered the tradeoff between view distance and simulation distance in detail because reducing simulation distance cuts tick work without changing what players can see. The Paper files come second: they tune the cost of mechanics you have already chosen to run.

    Measured: What Hoppers Really Cost on Paper 26.2

    Hopper advice is usually folklore, so we tested it. On our Paper 26.2 lab (Java 25.0.4.1, -Xms2G -Xmx4G, G1GC, no plugins), we loaded 4,489 block hoppers and hopper minecarts on dedicated sky decks and sampled /tick query once per second for ten minutes per scenario. Sky decks mean nothing else was loaded, so the delta is the hoppers and almost nothing else.

    ScenarioAdded tick timeReading
    Idle server, no hoppers~0.5 msBaseline
    4,489 idle block hoppers+4.3 msRoughly 0.001 ms each
    1,000 empty hopper minecarts+12.3 msExpensive per entity
    3,000 empty hopper minecarts+19.2 msClose to half the 50 ms tick
    Same carts, 5 stacks of 32 vs 64+1.6 ms extraInventory size is second order

    The pattern is clear enough to plan around. Block hoppers idling above air are cheap because Paper skips their transfer attempt when there is nothing to push into. Hopper minecarts are not: each engine cart re-attempts one transfer per tick whether or not anything changed, so cost scales with entity count, not with throughput.

    That is the whole argument for capping minecart-adjacent farms rather than banning hoppers. A storage hall with thousands of idle block hoppers is not your problem. Three thousand carts shuttling between decks is, and filling them fuller barely changes the number.

    Settings That Actually Pay Off

    Short list, one line of reasoning each. None of these require a plugin, and all of them are reversible in one restart.

    • hopper.cooldown-when-full in config/paper-global.yml (keep it true). A full hopper stops polling until its contents change, which removes the most common silent tick cost on survival servers.
    • hopper.disable-move-event: only set this to true if you have confirmed nothing listens to InventoryMoveItemEvent. It breaks shop signs, sorting plugins, and any addon that watches item movement.
    • entities.spawning.spawn-limits in paper-world-defaults.yml: lowers monsters and creatures per player. This is the cleanest lever on mob-driven tick time, and it is per world.
    • mob-spawn-range in spigot.yml: pulling it from 8 toward 6 keeps mobs relevant to players while shrinking the loaded spawn area you pay for.
    • merge-radius.item in spigot.yml: raising it slightly merges dropped stacks sooner, cutting entity count after big farms and explosions.
    • max-entity-collisions in spigot.yml: capping push calculations stops mob crowds from turning into a physics bill.

    Skip anything you cannot explain. Settings advertised as free performance that change game mechanics, such as aggressive tick-rate reductions on block entities, usually trade correctness for a number you could have gotten by fixing the farm instead.

    A Reproducible Tuning Workflow

    Config work fails when it is not measured. Ten changes in one restart give you one number and zero causal information, and the next restart gives you a different number for reasons you will never isolate. The loop below takes about twenty minutes per change.

    1. Copy the whole server directory, or at minimum server.properties, bukkit.yml, spigot.yml, and config/, to a dated backup folder.
    2. Change exactly one value, then restart. Reloading is not equivalent for most of these files.
    3. Replay the same ten-minute route with the same players online, starting from the same spawn point at the same in-game time.
    4. Sample /tick query once per second, which reports TPS and MSPT and is documented on the Minecraft Wiki tick command page.
    5. When a change looks wrong rather than slow, take a spark profile with spark profiler start during the same route and compare the call tree.

    Compare averages, not peaks, and write down what you expected before you restart. Our primer on MSPT and tick rate explains why a 40 ms average and a 40 ms spike are completely different diagnoses, and that distinction is what keeps this workflow honest.

    Pros and Cons: Config, Hardware, or Plugins

    Config tuning is the cheapest of the three levers and the easiest to overrate.

    • Pros: free, instant, reversible with a backup, and it documents itself in version control. It also forces you to learn where your tick time actually goes.
    • Pros: it fixes structural waste, such as three thousand hopper minecarts, that no amount of RAM will absorb.
    • Cons: it cannot beat a CPU that is already saturated, and a badly chosen value creates bugs that look like plugin bugs.
    • Cons: it stops paying off fast. Once hoppers and spawn limits are sane, the next win is usually a misbehaving plugin.

    Hardware is a one-time cost that raises your ceiling; config tuning decides how much of that ceiling you waste. Plugin cleanup is the third option and often the biggest, which is why we wrote a separate method for auditing and trimming plugins. Do config first because it is free, hardware last because it is not.

    Common Mistakes to Avoid

    Four failures account for most of the bad config advice circulating in Discord servers.

    • Editing spigot.yml for Paper-only keys. Hopper flags and spawn limits that belong in config/paper-global.yml or paper-world-defaults.yml do nothing in the Spigot file, and Paper’s startup check will flag unknown keys if you invent one.
    • Missing the precedence rule. A value in <world>/paper-world.yml overrides paper-world-defaults.yml for that world. Editing the defaults and seeing no change almost always means a per-world file is winning.
    • Changing five values per restart. You lose causal attribution and end up keeping changes that did nothing while blaming the one that worked.
    • Ignoring datapack spawn caps. Lowering spawn limits in config does nothing if a datapack enforces its own caps, and the two together can produce empty-looking worlds.

    Expert tip: keep a CHANGELOG-configs.md in the server repository. One line per change with date, file, key, old value, new value, and the measured before/after. When a change turns out badly two weeks later, you roll back one line instead of rebuilding a config from memory.

    Frequently Asked Questions

    Do I need to configure every Paper setting?

    No. Leave the defaults alone and change only what you can measure. Paper’s defaults are tuned for correctness, and most servers get their biggest wins from view distance, spawn limits, and hopper behavior.

    Which Paper version refactored the config files?

    Paper 1.19 split the old paper.yml into config/paper-global.yml and config/paper-world-defaults.yml, with optional per-world overrides. Builds since then, including the 26.x line, keep that layout and write it on first start.

    Does Paper still use bukkit.yml and spigot.yml?

    Yes. Paper reads both for compatibility, so settings like merge-radius and max-entity-collisions still live there and still work. Paper-specific options belong in the config/ files instead.

    How do I verify a config change improved TPS?

    Change one value, restart, and replay the same ten-minute route with the same players. Sample /tick query once per second and compare average MSPT, not peaks. Use spark if you need to know which code got cheaper.

    Start With the File Map, Then Measure

    Paper config files reward patience. Know which file owns a setting, change one value at a time, and keep the measurement loop short enough that you actually run it. Most servers do not need exotic flags; they need a hopper policy, sane spawn limits, and a changelog that lets them undo a bad afternoon.

    If you want a system rather than a pile of values, read the Paper reference top to bottom once, then open your own config/ folder and compare. The build is open source, so when a setting is unclear you can read the source on GitHub and see exactly what the flag gates. Start with one backup and one change today, and write down the number before you touch anything.

  • Resource Pack Optimization for Large Minecraft Servers

    Resource Pack Optimization for Large Minecraft Servers

    Resource packs are the quickest way to make a server look like itself: a custom GUI, retextured blocks, a title screen with your logo. They are also the quickest way to add thirty seconds to every join and a support ticket that reads “my game freezes when I join.” This guide is for the people who maintain that pack — owners, admins, and the one staff member who knows how to open a zip file — and its goal is simple: help you ship something that still loads on a five-year-old laptop.

    We rebuilt a sample pack from a mid-size survival network, timed cold loads on three client machines, and went to primary sources instead of folklore: the vanilla resource pack format documentation, PackSquash’s repository, Paper’s docs, and Blockbench’s export notes. Every number below is directional. Measure your own pack before you trust any of it.

    Measure Before You Optimize

    Most pack work starts with a tool and ends with a shrug, because nobody wrote down the starting point. Capture four numbers before you touch a texture, and keep them next to the release date.

    • Compressed size — what a player downloads. This is your bandwidth bill and your worst-case first join.
    • Resolution profile — how many files are above 16×16, and how many are 512x or larger. A handful of 2048x GUI sheets outweighs a thousand vanilla-sized blocks.
    • Audio weight — total size of the sounds folders. Uncompressed WAV files are the usual culprit.
    • Cold load time — clear the client’s pack cache, join, and time from “joining world” to a playable screen. Three runs, middle value.
    MetricSample pack beforeAfter a full passWhat it usually means
    Zip sizeRoughly 300–350 MBRoughly 60–90 MBBandwidth and first-join wait drop together
    Files over 256xHundredsDozensVRAM and atlas stitching cost
    Audio folderRoughly 80 MBUnder 20 MBOGG conversion plus trimming
    Cold load time30–45 s8–15 sMostly decoding and upload to GPU

    Those ranges come from one pack on three test machines. Treat the table as a map of where savings live, then find yours.

    Textures: PNG Size, Atlas Layout, and Mipmaps

    Compress PNGs, but know where lossy stops being free

    Start lossless. Oxipng and PackSquash’s PNG recompression strip metadata and pick better filter combinations without touching a pixel. That buys a modest cut with zero risk, and it will not rescue a pack full of 2048x renders, because the pixels are the problem.

    Lossy quantization reduces each image to a palette. It is acceptable on noisy surfaces players never read closely: stone variants, grass, dirt, foliage, distant terrain, particle sheets. It is a bad idea on text, GUI icons, fonts, and anything with a hard one-pixel border, where banding looks like a bug rather than a style. Quantize in a branch, then check a shop GUI, a sign, and the inventory screen at default scale before merging.

    Padding, atlas layout, and mipmap bleeding

    Texture bleeding — seams, flickering edges, colors leaking from a neighboring tile — is a layout problem, not a compression one. The client stitches block textures into an atlas and builds mipmaps from it, and at lower mip levels a tile samples pixels outside its own bounds. Packs that mix 16x and 128x art invite it.

    • Keep tiles square and consistently sized within a block family so the atlas packs cleanly.
    • Set padding in your atlas definition. Modern versions read it from assets/minecraft/atlases/blocks.json, and the schema has changed since 1.19.3 — confirm field names against the wiki page for your target version instead of copying an old tutorial.
    • Match resolution where you can afford it. A 16x tile beside 128x neighbors is the classic bleeding case.
    • Test at mipmap levels 0 and 4. Players control that setting and you cannot force it server-side.

    Audio and Asset Cleanup

    Convert audio to OGG Vorbis and trim the silence

    The vanilla sound engine reads OGG Vorbis. WAV files in a pack are ignored by the client, yet authors ship them anyway — you pay for the bytes and hear nothing. Convert with ffmpeg, keep mono for positional sounds so the client can place them in 3D space, and reserve stereo for music and stingers.

    ffmpeg -i raw/click.wav -ac 1 -c:a libvorbis -q:a 4 -ar 44100 assets/minecraft/sounds/custom/click.ogg

    Then trim. A two-second sting with 400 ms of leading silence feels broken in game and costs bytes in every client cache. Batch-trim leading and trailing silence, and delete the source WAVs from the build folder rather than leaving them beside the OGGs.

    Delete what nothing references

    Every pack maintained for a year contains orphans. Walk the model JSON files, collect every textures/ and parent reference, and diff that list against the files on disk; whatever is left over may still be decoded during pack load. The same pass finds duplicate models: three copies of one custom sword under different filenames, each pointing at the same texture. Collapse them into a single model with overrides. PackSquash also prunes files that match vanilla exactly, a free win if your pack began as a full vanilla copy.

    A PackSquash Pipeline You Can Run in CI

    PackSquash is the practical default: it recompresses PNGs, transcodes audio to OGG, rewrites model and atlas references, prunes redundant files, and can strip data a given pack_format never reads. It is fast enough to run on every commit, which is the real value — optimization becomes a property of the pipeline instead of a chore someone remembers twice a year.

    # pack.toml (trimmed; see the repository README for the full schema)
    [output_file]
    path = "build/server-pack.zip"
    
    [compression]
    zip_spec = "deflate"
    compression_level = 9
    
    [optimize]
    lossless_png = true
    transcode_ogg = true
    color_quantization_target = "auto"

    A GitHub Actions job that gates a pull request on pack size and publishes the hash your deploy step needs:

    name: build-pack
    on: [push, pull_request]
    jobs:
      pack:
        runs-on: ubuntu-latest
        steps:
          - uses: actions/checkout@v4
          - name: Install PackSquash
            run: |
              curl -L -o ps.zip https://github.com/ComunidadAylas/PackSquash/releases/latest/download/packsquash-x86_64-unknown-linux-musl.zip
              unzip -o ps.zip -d /usr/local/bin && chmod +x /usr/local/bin/packsquash
          - name: Build optimized pack
            run: packsquash --config pack.toml pack/ build/server-pack.zip
          - name: Record size and hash
            run: |
              ls -lh build/server-pack.zip
              sha1sum build/server-pack.zip | tee build/sha1.txt

    Check the README for the version you pin; flag names move between releases.

    Delivery: CDN, Caching, MIME Types, and SHA-1

    A small pack served badly still feels slow. Put the artifact behind a CDN or object storage, not on the box running your world, and set Content-Type: application/zip explicitly — some stacks guess application/octet-stream, and players behind strict proxies get a download prompt on the join screen. Leave range requests on so a failed download can resume.

    • Hash the filename on deploy. server-pack-3f9a1c.zip can be cached forever at the edge; pack.zip cannot, so every deploy is a cold cache for every player.
    • Update the SHA-1 every time. A hash that does not match the served bytes makes clients re-download on every join — the usual cause of “the pack updates constantly.”
    • Keep the previous artifact up for a few days so joins in flight during a deploy do not fail mid-download.
    • Check proxy behavior. BungeeCord, Velocity, and pack-forwarding plugins each handle the resource pack fields differently.

    None of this touches tick time — for that, see [Understanding MSPT and Tick Rate: A Server Owner’s Performance Guide]. Pack work is a client-side and network-side optimization, and its natural partner is [Resource Pack Basics: Hosting, Distribution, and Forcing Packs].

    Client memory, VRAM, and Bedrock via Geyser

    Every high-resolution texture is uploaded to GPU memory and held for the session. A pack of 512x sheets can push a 2 GB integrated GPU into swapping, and the symptom is not a crash — it is stutter while flying, late chunk rendering, and a client that dies on alt-tab.

    Bedrock changes the math. Geyser can forward packs, but Bedrock’s format is different: no pack.mcmeta, a different manifest, no Java model JSON. Anything you force through Geyser needs a separate Bedrock build, and mobile size ceilings are lower than people expect. Client pressure from mob counts is covered in [Taming Entity Counts: Reducing Mob Lag on Busy SMPs].

    Pros and Cons of an Aggressive Optimization Pass

    • Pro: Faster joins and fewer “my game froze” reports, especially from laptop players.
    • Pro: Lower egress cost and a CDN bill that stops scaling with player count.
    • Pro: A repeatable build means pack changes are reviewed, hashed, and deployable by anyone on staff.
    • Con: Lossy quantization is irreversible if you delete the source textures. Keep the source project in version control.
    • Con: Pruning breaks things quietly — a sound referenced only from a plugin path can vanish with no build error.

    Common Mistakes and How to Avoid Them

    • Optimizing before measuring. Keep a baseline row per release. It settles every later argument.
    • Forgetting the SHA-1. Wire the hash into deploy automation; a stale hash is invisible in testing and obvious to players.
    • Quantizing GUI and fonts. Text is where banding shows instantly. Keep those files lossless.
    • Testing only on your own machine. Your desktop is the best-case client. Ask a low-end laptop user to join after each major change.
    • Bundling the source folder. The zip should contain only what the client reads. Editors, PSDs, and .bbmodel files belong in git.

    One tip from the rebuild: test on a client with no cache and a server that forces the pack. The bleeding atlas and the stale hash both appeared only on a cold join.

    Frequently Asked Questions

    What is a reasonable resource pack size for a Minecraft server?

    Aim for under 50 MB for a forced pack on a public server, and under 100 MB only when the pack is optional. Above that, first joins get slow and mobile Bedrock clients struggle.

    Does PackSquash make resource packs smaller?

    Yes. It recompresses PNGs, transcodes audio to OGG, prunes files that match vanilla, and rewrites references so the pack still works. Run it in CI so every build is optimized the same way.

    Why do my textures bleed or flicker at a distance?

    Texture bleeding comes from atlas packing and mipmaps, not compression. Keep tile sizes consistent, add padding in your atlas definition, and test with the client mipmap setting at 4.

    Does a large resource pack lag the server?

    Rarely. The pack is processed on the client and delivered over HTTP, so server tick time is mostly unaffected. The cost shows up as join-time delay, client RAM and VRAM use, and CDN bandwidth.

    Start With One Measurement

    You do not need a full rewrite to fix a slow pack. Record the four baseline numbers, convert the audio folder, delete orphans, drop PackSquash into your build, then serve the artifact from a CDN with a hashed filename and a matching SHA-1.

    If you are still deciding how the pack reaches players, read [Resource Pack Basics: Hosting, Distribution, and Forcing Packs] first. For model authoring, Blockbench exports are the cleanest starting point — check its texture and UV options before you wonder why a model looks stretched in game.

  • Understanding MSPT and Tick Rate: A Server Owner’s Performance Guide

    Understanding MSPT and Tick Rate: A Server Owner’s Performance Guide

    If you have ever typed “is the server lagging?” into Discord and received six different answers, you already know why this article exists. Somebody points at the memory graph. Somebody else says the TPS counter is fine. A third person blames a plugin nobody has updated since 2021. None of those answers is grounded in the one number that actually describes how a Minecraft server is doing its job: the time it takes the main thread to finish a single tick.

    This guide is written for server owners, administrators, and staff who want to stop guessing. It explains what the tick loop is, why 50 milliseconds is the number that matters, and how to read MSPT and TPS together so the data tells you where the problem actually lives. There is no hand-waving here and no “just add more RAM” advice, because that advice is wrong often enough that it deserves its own section below.

    The numbers in this article come from a controlled test, not from a wiki table. The host was an Intel Core i5-13400F with 16 threads and 14 GB of RAM, running Ubuntu 26.04 on OpenJDK 25.0.4.1 with Paper 26.2 build 129 and the flags -Xms2G -Xmx4G -XX:+UseG1GC. The world was pre-generated to 22,801 chunks with Chunky, no players were online, and a 240×240 area was force-loaded so entities would actually tick. Every figure below was collected with Paper’s own tick query across a rolling 100-tick sample, ten samples per load, reporting the median. If you want to reproduce it, the measurement section tells you exactly how.

    How the Minecraft Tick Loop Actually Works

    Minecraft is not event-driven in the way most software is. It runs a fixed-timestep loop: the server wakes up, processes everything that is scheduled for “this tick”, then sleeps until the next one. Twenty times per second, without exception in the target design. That is the whole model. Every mob that moves, every block that updates, every redstone torch that flips, every hopper that transfers an item, and every player packet that gets processed happens inside that loop. If the loop is slow, everything is slow, because nothing else runs until the loop comes back around.

    The official documentation is blunt about this being intentional. The Minecraft Wiki tick page describes the fixed 0.05 second step, and the ticks per second page covers how the game reports and clamps that rate. Paper inherits the model and adds tooling on top, which is why the Paper documentation is the practical reference for anyone running a modern server.

    The 50 millisecond budget

    One second divided by twenty ticks is 50 milliseconds. That is the entire budget for a single tick. Everything the main thread has to do in that tick must fit inside 50 ms, or the tick runs long and the server falls behind schedule. What happens next is the part people misunderstand. The server does not “catch up” by doing less work. It simply starts the next tick late, and the game clock drifts. Players see it as rubber-banding mobs, hit registration that misses, blocks that break and then reappear, and eating that takes three seconds instead of one.

    A tick that overruns has three practical consequences:

    • The next tick starts late, so the effective tick rate drops below 20.
    • Scheduled work piles up, because the queue does not shrink when the loop is slow.
    • Network position updates go out late or get skipped, which is why movement feels choppy before the TPS number looks bad.

    Why TPS falls in whole-tick steps

    TPS is not a continuous dial. The server counts ticks completed in a rolling window, so a tick either finishes in the window or it does not. Over a one-second sample you can only report whole ticks, which is why practically every server you will ever see reports 20.0, 19.x, 18.x, or a lower number that lands on a fraction of twenty. A server does not report 17.53 TPS because it is a little slow. It reports that number because the rolling window straddled a boundary, and the underlying reality is that some ticks took far longer than 50 ms.

    This is the single most important thing to internalize before you read any performance graph: TPS is a coarse output, and MSPT is the input. TPS tells you the consequence. MSPT tells you the cause. If you only ever look at TPS, you are reading the smoke alarm instead of the thermometer.

    The Tick Budget Formula and Conversion Table

    The arithmetic you need is short enough to memorize, and once you have it, you can convert any MSPT reading into the percentage of the budget it consumes without opening a spreadsheet.

    tick budget used (percent) = (MSPT / 50) x 100
    
    ticks per second, while MSPT is at or under 50 = 20
    
    ticks per second, once MSPT exceeds 50 = 1000 / MSPT
    
    for example:  MSPT 121.2  ->  1000 / 121.2 = 8.25 TPS

    The second formula is an approximation, and it is a good one for diagnosing a struggling server, but be aware of what it assumes: that every tick is roughly the same length. Real servers have a mix of cheap ticks and expensive ones, so a server with a 45 ms median will still dip below 20 TPS whenever a spike lands. Treat the formula as a sanity check, not a guarantee.

    MSPTBudget usedApproximate TPSWhat it means
    10 ms20%20Comfortable. Plenty of headroom for spikes.
    25 ms50%20Healthy steady state. This is the target zone.
    40 ms80%20Working, but a spike will push you over.
    50 ms100%20The edge. Any variance at all now costs you TPS.
    60 ms120%16.7Ticks are consistently late. Players notice.
    100 ms200%10Half speed. Mobs, redstone, and farms all slow down.
    121 ms242%8.3Our 20,000 mob test load. Clearly overloaded.

    Notice how 40 ms and 50 ms both still report 20 TPS. That is not a reason to relax. At 40 ms, four out of every five milliseconds of your tick are already committed, and the only thing keeping you at 20 TPS is that nothing unusual has happened yet. On a live server, something unusual happens constantly.

    How to Measure MSPT Without Fooling Yourself

    Measurement is where most performance investigations go wrong, and it is almost always the same mistake: one reading, taken once, treated as fact. Below is the order that actually produces usable data.

    Start with the built-in tick query

    Paper ships a tick command that reports a rolling sample of recent ticks rather than an instantaneous value. Run /tick query on a Paper server and you get a median alongside the smoothed TPS figure. Run it repeatedly, at least ten times, spread over a minute or two, then take the median of those medians. A single query is one hundred ticks of context, which is five seconds of live server behavior. Five seconds is not a diagnosis.

    • Use /tick query for the median and the reported TPS.
    • Use /tick sprint on a test server to fast-forward ticks and check whether the cost is stable or time-dependent.
    • Run your samples with a realistic player count, in the same dimension and near the same coordinates players actually use.
    • Record the numbers in a file. Memory of “it felt about forty” is worthless a week later.

    Read the percentiles, not just the median

    A median tells you what a typical tick costs. It tells you nothing about the tick that cost 1,027 ms. Percentiles do. When you sample with spark, look at P95 and P99 alongside the mean. P95 above 40 ms means one tick in twenty is already eating four fifths of the budget. P99 above 50 ms means roughly one tick per hundred is over budget, and those are exactly the ticks players feel as a stutter.

    Our own test made this vivid. The median held near 50 ms during a large entity spawn, but the 99th percentile spiked to 1,027 ms. Same run, same server, same load. A dashboard showing only the average would have called that moment healthy while players were staring at a frozen world.

    Treat log lines as a hint, not a source of truth

    Older and non-Paper server software prints a “Can’t keep up! Did the system time change, or is the server overloaded?” warning. It is genuinely useful as a signal that something crossed a threshold, but it cannot carry an investigation. The message fires on a specific internal condition, it is suppressed by rate limiting, and it says nothing about magnitude or cause. If that line is the only evidence you have, you do not have evidence yet. You have a prompt to go run /tick query and spark.

    MSPT Is Not CPU Load, and It Is Definitely Not RAM

    These three numbers get collapsed into “server performance” in casual conversation, and that collapse is expensive. MSPT measures one specific thing: wall-clock time spent by the main server thread inside a tick. It is not total CPU utilization, because your host has other threads doing chunk generation, networking, and garbage collection, and those can be pinned at 100% while the tick loop stays under 25 ms.

    RAM is even further removed. Adding memory does not make a mob AI pathfinding calculation faster. It can help in one narrow case: if your heap is too small, the garbage collector runs more aggressively and its pause times show up as MSPT spikes. That is a real effect and it is the reason running a busy server on 1 GB of heap is a problem. But once you have enough heap to avoid constant collection, extra gigabytes do nothing for a CPU-bound tick loop.

    • High MSPT with low CPU: the main thread is waiting, possibly on synchronous I/O or lock contention.
    • High MSPT with high CPU: genuine compute load, usually entities, AI, or plugin logic.
    • Low MSPT with high RAM use: normal. Minecraft allocates freely and collects later.
    • Spiky MSPT with visible GC pauses in spark: heap sizing or allocation rate, not entity count.

    The practical takeaway: when someone tells you the server needs more RAM, ask for an MSPT graph first. You will save money.

    What a Controlled Test Actually Showed

    The test that produced the figures in this article was built to isolate one variable at a time. Same world, same JVM, same flags, no players, no plugins beyond what Paper ships. The 240×240 force-loaded area guaranteed that the entities were genuinely inside ticking chunks rather than sitting in unloaded space, which is a mistake that silently invalidates a lot of home-grown benchmarks.

    LoadMedian MSPTTPSBudget used
    Idle, only the force-loaded area0.6 ms20.01.2%
    1,000 zombies, NoAI8.3 ms20.016.6%
    5,000 zombies, NoAI22.7 ms20.045.4%
    10,000 zombies, NoAI48.5 ms20.097.0%
    20,000 zombies, NoAI121.2 ms8.25242.4%
    2,000 zombies, AI enabled19.1 ms20.038.2%
    5,000 zombies, AI enabled28.5 ms20.057.0%
    10,000 armor stands19.2 ms20.038.4%
    5,000 dropped items20.7 ms20.041.4%
    2,000 villagers113.8 ms8.79227.6%

    Also worth noting: /save-all flush took 0.16 to 0.36 seconds on this world. That is 160 to 360 ms of main-thread work landing in a single tick, which is why save operations are a recurring source of complaints on large worlds and why Paper offers configuration options for spreading that work out.

    Scaling is linear, until it is not

    From 1,000 to 10,000 NoAI zombies, the cost grows almost perfectly linearly: about 8.3 ms per thousand entities. That predictability is useful, because it means you can estimate your own load. Ten thousand simple entities roughly costs you half your tick budget. What breaks the pattern is allocation pressure. At 20,000 entities the curve steepens sharply, because the server is now generating enough garbage per tick that collection cycles start landing on the main thread. Linear scaling is the design; the cliff is the surprise.

    This is also why a server can look fine at 6,000 entities and fall apart at 8,000. Nothing magical happened to the mobs. The allocation rate crossed a threshold where the collector has to work harder, and that work shows up in the tick.

    AI is the difference between cheap and expensive

    Setting the NoAI flag on a mob stops it running its AI goals, and the performance consequence is enormous. Two thousand AI-driven zombies cost 19.1 ms. Two thousand NoAI zombies would have cost roughly 5 ms by extrapolation from the linear curve. Villagers are worse still: 2,000 of them produced 113.8 ms, worse than twenty thousand NoAI zombies. Villager AI involves pathfinding toward workstations, inventory scanning, breeding checks, and gossip management, all of which runs every tick for every villager in a ticking chunk.

    If you run iron farms or trading halls, this is the number to remember. Two hundred villagers in one trading hall is not a trivial load. Two thousand is a design emergency.

    Cheap per entity still adds up

    Armor stands do almost nothing: no movement, no AI, no collision resolution beyond a bounding box. Ten thousand of them still cost 19.2 ms, which is just under 40% of the budget. Dropped items are similarly cheap individually, and 5,000 of them cost 20.7 ms. The lesson is that “this entity is cheap” and “this entity is cheap at scale” are different claims. An armor stand shop with display models is fine. A duplicator stalling five thousand item stacks in one chunk is not.

    Averages hide the moments players remember

    The spawn burst observation deserves its own paragraph. While the median hovered near 50 ms, P99 reached 1,027 ms. One tick in a hundred took a full second. Players do not experience your median. They experience the one-second freeze every time a chunk with a large entity population loads, and then they report the server as broken even though the dashboard looks acceptable.

    Whenever you evaluate a change, sample the percentiles before and after. If P99 gets worse while the median improves, you have not fixed anything. You have moved the pain.

    A Practical MSPT Budget for Real Servers

    Numbers pulled from a lab are useless unless you translate them into thresholds you can act on during a live incident. These are the boundaries we recommend, based on the test data above and on what margin a live server needs to absorb saves, plugins, and network jitter.

    • Steady-state median under 25 ms: healthy. You have half your budget free for spikes, saves, and player teleports.
    • Median between 25 and 40 ms: working but tight. Start profiling before you add content, plugins, or players.
    • P95 above 40 ms: investigate now, even if TPS still reads 20. This is the early warning you actually get.
    • Median at or above 50 ms: you are at or over the edge. TPS will start dropping with any variance.
    • Sustained MSPT above 60 ms: treat as an incident. Players are already experiencing degraded behavior.

    One caveat: different server types need different headroom. A creative plot server with a hundred players spread across flat terrain can run hotter than a survival server with redstone farms, because the plot server has less risk of a player building a lag machine. Judge your margin by your worst realistic tick, not your average one.

    When MSPT Is High, Do This in Order

    The temptation when a server is slow is to change configuration immediately. Resist it. Every config change you make before you know the cause removes one possible explanation and adds one new variable. The order below is deliberate and it costs nothing to follow.

    1. Measure. Get a median and a P95 from /tick query and a spark profile, with realistic player counts. Do not skip this.
    2. Identify the load. In spark, find which tick section dominates: entity ticking, block entities, chunk management, or plugin tasks. Count entities per world and per chunk; Paper and most management plugins can report this.
    3. Reduce entity load where it matters. Cull wandering mobs outside player view, cap farms, and inspect spawner configurations. Remember that 2,000 villagers is worse than 20,000 NoAI zombies.
    4. Check plugins and their scheduled tasks. A plugin running a synchronous inventory scan every tick will not show up as vanilla entity cost, and it is a common culprit on servers with heavy economy or minigame stacks. The plugin audit walkthrough covers how to isolate one.
    5. Only then change configuration. View distance, simulation distance, and entity activation range are powerful, but they are blunt instruments. Applied after diagnosis, they work. Applied before, they just hide the problem.

    Two related reads are worth your time once you reach the configuration stage. Simulation distance decides which chunks get random ticks and entity updates at all, and the gap between it and view distance is the single biggest lever most survival servers have; see [View Distance vs Simulation Distance: Cutting Chunk Lag for Real]. If you use loader chunks to keep farms running, the cost accounting is in [Understanding Chunk Loaders and Their Performance Cost]. And if you are still deciding what to run in the first place, [our 2026 server JAR benchmark measures the same tick cost across five server implementations on identical hardware.

    For the flags and defaults involved, the Paper configuration reference documents each option with its actual effect, which is worth reading before you copy a tuning guide written for a different Minecraft version.

    Pros and Cons of Optimizing by MSPT

    Managing a server by MSPT is a discipline, and like any discipline it has trade-offs. Here is an honest accounting.

    Pros

    • It measures the actual constraint. The main thread is what limits a Minecraft server, so measuring it removes guesswork.
    • It converts directly into capacity. At 25 ms steady state you know you have room; at 48 ms you know you do not.
    • It makes changes verifiable. Before and after numbers give you a real answer instead of a feeling.
    • It separates causes. High MSPT with low CPU points somewhere completely different from high MSPT with high CPU.
    • It protects your budget. It stops the reflexive RAM upgrade that fixes nothing.

    Cons

    • It requires sampling discipline. One reading is worse than no reading, because it feels like evidence.
    • It does not see everything. Network latency, client-side rendering, and disk I/O can hurt players while MSPT stays low.
    • Median alone is misleading. You need percentiles, which is more work than glancing at a dashboard.
    • It is version-sensitive. Absolute numbers move between Minecraft and Paper releases, so compare within a version, not across one.
    • It can encourage over-tuning. Chasing 12 ms on an idle test server is time better spent on backups and monitoring.

    The balance: watch MSPT and P95 as your primary signal, treat TPS as the output it is, and keep an eye on disk and network as separate concerns. That combination catches nearly everything that actually affects players.

    Common Mistakes and Expert Tips

    These are the errors we see most often, in roughly the order they cost people time.

    • Averaging away the spikes. A 20 TPS report over a minute can hide three one-second freezes. Fix: report P95 and P99 next to the median, always, and compare them before and after any change.
    • Testing on an empty world. A fresh superflat world with zero entities will report sub-millisecond MSPT and teach you nothing. Fix: force-load the area you are testing so entities are inside ticking chunks.
    • Blaming RAM. Adding memory to a CPU-bound tick loop changes nothing except your invoice. Fix: confirm with a spark profile that GC pauses are actually the cost before touching heap size.
    • Measuring during world generation. First-visit chunk generation is far more expensive than steady-state ticking and will dominate every reading. Fix: pre-generate with Chunky, as this test did to 22,801 chunks, then measure.
    • Not force-loading chunks. Entities in unloaded chunks cost nothing and will make your load test look artificially good. Fix: set a force-load boundary and confirm the entity count in-game before sampling.
    • Changing five settings at once. You will never know which one helped. Fix: one change, one measurement cycle, then decide.
    • Ignoring the save cost. Autosave landing on a big world is a 160 to 360 ms tick on this test host. Fix: stagger or throttle saves and avoid scheduling them at peak hours.
    • Testing with a plugin stack you do not run in production. Fix: benchmark with your real plugin set, or you are measuring a server you do not operate.

    The expert habit underneath all of these is boring and effective: keep a log of MSPT median and P95, entity counts, and player counts on a fixed schedule. After a month you will know what normal looks like for your server, and abnormal will be obvious in seconds instead of hours.

    Frequently Asked Questions

    What is MSPT in Minecraft?

    MSPT means milliseconds per tick: the wall-clock time the main server thread spends completing one tick. The budget is 50 ms because the server targets 20 ticks per second. Reading MSPT tells you how much of that budget is already spent, which is more useful than TPS alone.

    What MSPT is too high for a Minecraft server?

    Sustained MSPT at or above 50 ms means ticks are running over budget and TPS will drop. Aim for a steady-state median under 25 ms, investigate when P95 passes 40 ms, and treat 50 ms as the edge.

    Does adding more RAM lower MSPT?

    No, not if the tick loop is CPU-bound. More heap only helps when garbage collection pauses are the cause of the spikes. Check a spark profile for GC time before increasing memory; in most cases entity count and plugin logic are the real cost.

    Why does my server show 20 TPS but players still lag?

    TPS is a rolling average, so short spikes disappear inside it. In our test the median stayed near 50 ms while the 99th percentile hit 1,027 ms. Sample P95 and P99 with the tick query or spark, and check network latency separately, because TPS does not measure that at all.

    Conclusion

    MSPT and tick rate are not complicated once you separate them. The server has 50 milliseconds per tick, twenty times a second. Every entity, block update, and plugin task shares that budget. MSPT tells you how much of it is gone, TPS tells you what happened when it ran out, and percentiles tell you about the moments players actually complain about.

    The test numbers in this guide give you a calibration point: 10,000 simple entities is roughly half a tick budget, 2,000 villagers is more than double it, and a server sitting at 48 ms is one spike away from visible trouble. Use 25 ms as your steady-state target and 40 ms P95 as your investigation trigger, and you will catch problems while they are still cheap to fix.

    If your server is already above those lines, start with a measurement pass today: run /tick query ten times at peak, take a spark profile, count your entities, then work the list above in order. For the wider groundwork, our server JAR benchmark and plugin audit guide are the natural next steps. Measure first, change one thing, measure again. That habit will do more for your server than any single configuration flag.

  • Taming Entity Counts: Reducing Mob Lag on Busy SMPs

    Taming Entity Counts: Reducing Mob Lag on Busy SMPs

    This guide exists to help a specific kind of server owner: the one whose hardware is fine, whose plugin list is not obviously broken, and whose TPS still collapses once sixty players log in. When we open a profiler on a server like that, the top of the stack is usually not chunk generation and it is rarely the nether. It is a pile of entities that nobody has counted in two years.

    Everything below comes from a controlled bench run rather than a guess. The test host was an Intel Core i5-13400F with 16 threads, 14 GB of RAM, Ubuntu 26.04 and OpenJDK 25.0.4.1, running Paper 26.2 build 129 with -Xms2G -Xmx4G -XX:+UseG1GC, over 22,801 pre-generated chunks. No players were connected, and a 240×240 area was force-loaded so the only variable was entity count. Numbers are medians of ten samples from tick query output.

    The result that reframed how we think about mob lag: 2,000 villagers cost 113.8 ms per tick and dropped the server to 8.79 TPS, while 5,000 AI zombies cost 28.5 ms. A trading hall is roughly four times more expensive than a zombie farm of similar population. If your lag hunt has been focused on mob farms, this article will move your attention somewhere less glamorous.

    Why entity count matters more than mob type

    A server has a fixed amount of main-thread time. At 20 TPS the whole tick gets 50 ms, and everything competes for that slice: chunk ticking, block updates, redstone, hopper transfers, player movement and entities. Entities are the part most owners underestimate because they stay invisible in-game until you look for them.

    Cost is not linear in a friendly way either. Doubling entity count roughly doubles cost until you cross the tick budget, and then TPS falls and players rubber-band on top of everything else. The no-AI zombie run shows the shape: 1,000 zombies added 7.7 ms, 5,000 added 22.1 ms, and 20,000 added 120.6 ms, where the server fell to 8.25 TPS.

    The takeaway is an entity budget. Decide roughly how many ticking entities your hardware can afford, measure what you have, and spend the budget where it produces gameplay. Mechanics are documented on the Minecraft Wiki entity reference, and the knobs live in the Paper world configuration reference.

    How Minecraft actually ticks entities

    Almost every fix below targets one of five things: whether an entity ticks at all, how far its brain runs, how much collision work it forces, how long it lives, and how many of them a plugin creates.

    Entity ticking chunks and activation range

    Paper does not tick every entity in every loaded chunk. It keeps a smaller active set and applies an activation range per entity category. Inside that radius the entity runs its full tick including AI; outside it, the entity is largely frozen. It stays in memory, keeps its data, and costs very little.

    That is why an entity far from players is nearly free while the same entity in a force-loaded chunk is expensive forever. Spawn chunks, loader-held chunks and anything a plugin keeps alive pay the ticking price whether or not a player is nearby.

    AI goals, pathfinding and collisions

    An AI zombie costs more than a no-AI zombie because goal selectors run, the entity scans for targets, and once it decides to move it asks the pathfinder for a route. Pathfinding is the expensive part, followed by collision resolution and entity lookups. Open pens full of wandering mobs are worse than tightly packed ones because every mob can path somewhere.

    Items, merging and despawn timers

    Dropped items are their own category. Every item entity ticks its age, checks for a merge partner, tries to fall, and holds a slot in movement and collision passes. A farm dropping items into a hopper line that is briefly backed up leaves a carpet of entities on the floor. At 4.0 microseconds each, 5,000 items measured 20.7 ms for objects no player will ever pick up.

    Why more RAM does not help

    Entity ticking is CPU work on the main thread. Adding heap does not make goal selectors faster, reduce pathfinding calls or merge items. Extra RAM buys headroom before garbage collection pressure hurts, and with a sane G1 heap that is not your bottleneck. Our test server ran the whole suite in a 4 GB heap and still hit 8 TPS from entity cost alone.

    The measured results

    Every run used the same world, the same JVM flags and the same force-loaded area. The only variable was entity count and type.

    ScenarioMSPTTPSNote
    Idle (no entities)0.620.0Baseline for the whole suite
    1,000 no-AI zombies8.320.0Cheapest mob per unit
    5,000 no-AI zombies22.720.0Still comfortable
    10,000 no-AI zombies48.520.0At the edge of the tick budget
    20,000 no-AI zombies121.28.25Tick budget blown
    2,000 AI zombies19.120.0AI roughly doubles per-entity cost
    5,000 AI zombies28.520.0AI scales worse than count
    10,000 armor stands (marker, no gravity)19.220.0Cheap each, deadly in bulk
    5,000 dropped items20.720.0Farm overflow territory
    2,000 villagers113.88.79Most expensive per entity by far

    Clearing every entity afterwards returned the server to 0.6 ms, which proves nothing else in the world was contributing measurably. It also shows the limit of the test: a 240×240 force-loaded area with no players isolates entity cost. A real server adds player movement, chunk sending, redstone, hoppers and plugin listeners, so your absolute numbers will be higher and your safe entity ceiling lower. Use the shape of these results, not the exact values.

    Cost per entity: villagers are the outlier

    Subtracting the 0.6 ms idle baseline and dividing by entity count gives a rough per-entity cost. Treat these as order-of-magnitude figures, since cost depends on what each entity is doing.

    Entity typeTest sizeMSPTApprox. cost each
    No-AI zombie20,000121.24.4 – 6.0 us
    AI zombie5,00028.55.6 – 9.3 us
    Armor stand (marker, no gravity)10,00019.21.86 us
    Dropped item5,00020.74.0 us
    Villager2,000113.8~56.6 us

    One villager costs roughly the same as nine to twelve no-AI zombies. That is the most useful number in this article. It comes from the villager brain: POI and workstation lookups, gossip and reputation handling, restock scheduling, breeding checks and pathfinding to beds and workstations all run on the main thread. A hall with 200 villagers is the computational equivalent of a 2,000 mob farm.

    There is a second, hidden cost to mass entity operations. Killing 2,000 villagers in one event wrote 2,002 journal lines and 498,607 bytes of the message Villager was killed into the log. That is roughly half a megabyte of synchronous logging during one tick spike. If you do bulk cleanup, filter death messages out of your log pipeline first, or raise the log level so the kill notification does not flood disk I/O while the server is already struggling.

    How to count what you actually have

    Measure first. Every fix below is guesswork until you know the composition of your entity population. Three tools cover almost everything.

    spark

    The spark profiler tells you whether entity ticking is genuinely the top cost or whether you have been blaming mobs for a plugin problem. Run it during the actual problem window with players online; a profile from an empty server tells you the truth about an empty server and nothing else.

    /spark profiler --timeout 60
    /spark profiler --only-ticks-over 50
    /spark tps
    /spark health

    Tick timing

    Tick query reports median, percentile and worst-case tick durations over recent ticks. Take it before and after every change, at least three samples, and write the numbers down.

    /tick query
    /tick query report

    Vanilla commands for counting

    You do not need a plugin to count entities. An execute if entity test returns the number of matched entities as its result, capped by limit, so you can store it in a scoreboard objective and scope it with distance.

    /scoreboard objectives add counts dummy
    /execute store result score #villagers counts run execute if entity @e[type=minecraft:villager,limit=2000]
    /scoreboard players get #villagers counts
    /execute store result score #items counts run execute if entity @e[type=minecraft:item,limit=20000]
    /scoreboard players get #items counts
    /execute if entity @e[type=minecraft:armor_stand,distance=..240,limit=1]

    Swap the type for minecraft:armor_stand, minecraft:item or minecraft:experience_orb, and add distance=..240 to scope a count to the region you care about. For a spatial check, /execute as @e[type=villager,distance=..32] run say found shows how tightly stacked a hall is. Before blaming spawn limits, cross-check the mob spawning rules to confirm natural spawning is even contributing.

    The prioritized fix list, cheapest first

    Work down this list in order. Each step is cheaper in effort and risk than the one below it, and each step gets a measurement before you move on.

    1. Remove or merge dropped items

    Items are the best ratio of pain removed to risk taken. Look for farms whose output backs up, then tighten the defaults in your Paper world configuration.

    • Lower item despawn time so useless drops vanish faster than the default five minutes.
    • Increase the item merge radius so nearby stacks consolidate instead of ticking separately.
    • Set per-type despawn overrides for bulk drops such as cobblestone and netherrack.
    • Fix the source: add overflow voiding, buffer chests or comparators so a backed-up hopper never becomes a floor full of entities.

    Merging changes where items visually sit and can break farm designs that rely on precise item positions, so test one farm at a time.

    2. Cap armor stands and holograms

    At 1.86 microseconds each, armor stands look free until you have ten thousand, which measured 19.2 ms. Holograms are the usual culprit: each line of floating text is often its own invisible armor stand, so a twenty line leaderboard is twenty entities per location, plus whatever the plugin does with them every tick.

    • Count armor stands first with the scoreboard method above, then hunt the coordinates.
    • Consolidate holograms and shop signs; one display is better than five stacked stands.
    • Turn off armor stand collision lookups in Paper’s world defaults if your stands are decorative.
    • Delete leftovers: old event displays, dead shop holograms, test rigs from former staff.

    3. Reduce villager count and consolidate trading halls

    This is where most SMPs find their real lag. Villagers cost more than any other common entity, and servers accumulate them because every player builds a private hall and then a shared hall appears at spawn. Audit for duplicate halls, abandoned bases and villagers roaming free in villages nobody uses.

    • Keep a small number of dedicated halls rather than one per player.
    • Confine villagers to a compact footprint so they sit in one or two ticking chunks instead of a dozen.
    • On Paper, disabling ticking for villagers outside the activation range removes most of the cost of a large hall when nobody is near, but those villagers will not restock, breed or work until a player comes close.
    • Free-roaming villagers are the worst case: they path constantly, spread out, and no config can reason with them.

    Be honest with players about why you are consolidating. A hall of 40 villagers with clear signage beats 400 in basements nobody visits.

    4. Tune entity activation range and spawn ranges

    Paper exposes per-category activation ranges for animals, monsters, raiders, misc, water, flying monsters and villagers, plus a switch for ticking inactive villagers. Every key is documented in the Paper world configuration reference.

    • Reduce monster and animal activation range moderately, not drastically. Mobs outside the range freeze, so farms relying on distant movement will slow down.
    • Keep villager activation range generous if trading matters to your economy, and cut villager count instead.
    • Lower per-player mob spawn limits and spawn range to shrink the background population on servers with players spread across the map.
    • Reduce spawn limits in small steps; each step cuts natural spawn rates and therefore mob farm output.

    Every setting here trades gameplay for performance. Change one, restart, measure for at least ten minutes with realistic player load, and keep notes. The broader Paper configuration reference is worth reading end to end before touching defaults.

    5. Only then consider nerfing spawner mobs

    Paper can disable AI on mobs that come out of spawners. It is a large saving and a blunt instrument: those mobs will not chase or navigate, and farms that depend on movement break. Enable it only when your profile or counts prove spawner output is the cause, and tell players before you do.

    6. Audit plugins that spawn or tick entities

    A plugin running a task over every entity each tick can cost more than the entities themselves. Look for plugin frames in the profiler under the entity and scheduler sections, and check anything managing holograms, mob stacking, custom mobs, pets, crates or leaderboards. On servers with dozens of plugins, a trim pass is often the biggest single win.

    Pros and cons of aggressive entity limits

    Entity limits work. They also change how the game plays, and players notice fast. Here is the honest trade.

    Pros

    • Immediate tick time reduction with no new hardware and no migration.
    • Predictable capacity: a fixed entity budget means performance does not degrade as players build.
    • Cheap to reverse if you keep notes and backups.
    • Forces better world design, which usually improves the player experience too.

    Cons

    • Farms lose rates, sometimes a lot, and players will file tickets about it.
    • Mobs freezing outside activation range can look like bugs and can break vanilla mechanics or datapacks.
    • Aggressive settings mask the real problem if a plugin is actually at fault.
    • Villager and iron farm behaviour depends on ticking, so over-tuning quietly breaks an economy.

    Common mistakes and expert tips

    • Killing every entity without fixing the spawn source. The population returns in hours, and you also paid for a tick spike and half a megabyte of death logging.
    • Setting activation range to 1 as a quick fix. Everything stops moving, players call it broken, and you learn nothing about your cost distribution.
    • Forgetting persistent mobs. Nametagged pets, mobs with persistence flags and anything in a force-loaded chunk ignore despawn logic; count them separately.
    • Ignoring item entities from farms. Owners blame mobs while a hopper line silently accumulates thousands of items on the floor.
    • Measuring during a spawn burst. Take medians over at least ten samples; one tick query during a spawn wave tells you nothing useful.
    • Changing five settings at once and then guessing which one helped.
    • Testing with no players online and assuming the result transfers. Add player load before drawing conclusions.
    • Skipping world pre-generation and blaming mobs for what is really chunk generation.

    A workflow that works: baseline with spark and tick query, fix items, measure, fix stands, measure, fix villagers, measure, then tune activation and spawn ranges one key at a time. Do not raise chunk throughput before you have cut entity load, or you will spend a week chasing the wrong thing, as our view distance and simulation distance breakdown explains.

    Frequently Asked Questions

    Does more RAM reduce mob lag?

    No. Entity ticking is CPU work on the main thread, so extra heap does not speed up AI, pathfinding or item merging. More RAM only helps if garbage collection pressure is the bottleneck, which is a different problem.

    How many villagers is too many for a Minecraft server?

    On our test bench 2,000 villagers cost 113.8 ms per tick and dropped the server to 8.79 TPS, while one villager cost about 56.6 microseconds. Keep total villager count in the low hundreds per SMP and consolidate halls rather than adding them.

    What does entity activation range do in Paper?

    It sets the distance within which entities of a category run a full tick, including AI. Beyond that radius an entity stays loaded but is largely frozen, which is why mobs far from players cost almost nothing while mobs in force-loaded areas cost constantly.

    How do I count entities on my server?

    Use spark profiler to see the cost, tick query for median tick time, and vanilla commands to count. An execute if entity test returns the number of matches up to limit, so you can store it in a scoreboard objective and scope it with distance.

    The bottom line

    Mob lag is almost always an accounting problem, not a hardware problem. Count what you have, spend your entity budget deliberately, and start with the cheapest wins: items on the floor, then armor stands and holograms, then villagers. Only after those are clean does it make sense to touch activation range, spawn limits or spawner nerfs, because those settings change the game your players actually play.

    Do it in one sitting. Take a tick query baseline, run the scoreboard counts, write the numbers down, apply one change, and take the baseline again. You will usually find that a fifth of your entities were producing none of your gameplay. If entity load turns out not to be the ceiling, look at chunk generation and plugin overhead next.

    Related reading on this site: [View Distance vs Simulation Distance: Cutting Chunk Lag for Real], [Understanding Chunk Loaders and Their Performance Cost], [How to Pre-Generate Your Minecraft World with Chunky], and [How to Audit and Trim Plugins to Reduce Server Lag]. If you run a busy SMP and want a second opinion on your numbers, publish your spark link and ask; the community is good at spotting what a profile hides.

  • Understanding Chunk Loaders and Their Performance Cost

    Understanding Chunk Loaders and Their Performance Cost

    Chunk loaders are one of the most misused tools in Minecraft server administration. Used well, they keep your mob farms, iron farms, and storage systems running while nobody stands nearby. Used carelessly, a single loader quietly eats a slice of your tick budget and turns a smooth 20 TPS server into a stuttering, rubber-banding mess. This guide exists to help you understand what a chunk loader does, what it actually costs, and how to run one without wrecking performance.

    We wrote this for server owners, admins, plugin developers, and curious players who have ever asked the question every busy server eventually faces: why is my TPS dropping when almost nobody is online? The answers come from hands-on testing on Paper 1.21.x servers, Spark profiler traces captured during real farm operation, and the documented behavior of Vanilla chunk management.

    What Chunk Loading Actually Means

    A Minecraft world is divided into chunks, columns of 16 by 16 blocks that the game processes somewhat independently. When a chunk is loaded, the server has its data in memory and can read and write blocks there. When a chunk is ticked, the server runs that chunk’s scheduled updates every tick: fluids flow, crops grow, redstone fires, mobs move and run AI, and block entities such as hoppers and furnaces do their work. These are two different states, and the gap between them is where most performance confusion lives.

    Loaded vs Ticked Chunks

    A chunk can be loaded without being ticked, and that distinction is the single most important idea in this article. Loading is relatively cheap. Ticking is where the CPU cost lives, because ticking means iterating over everything in that chunk twenty times per second. The table below summarizes the practical differences you will observe in-game.

    AspectLoaded chunkTicked chunk
    Block data held in memoryYesYes
    Redstone and hoppers processNoYes
    Crops, fluids, and growth updateNoYes
    Mob AI and pathfinding runNoYes (inside simulation distance)
    Random ticks (grass spread, ice melt)NoYes
    Relative CPU costLowHigh
    Kept alive byTicket at load levelTicket at tick level or simulation distance

    The Ticket System

    Modern Minecraft controls chunk loading with tickets. A ticket is a claim on one or more chunks that tells the server to keep those chunks loaded for a set number of ticks, at a specific level. The level decides whether a chunk is merely loaded or also ticked, and how far the effect spreads. Portals, spawn chunks, and the /forceload command all create tickets behind the scenes, as documented on the Minecraft Wiki ticket page.

    Plugin chunk loaders usually create their own tickets or reach into the Bukkit and Paper APIs to force chunks to stay loaded. That API access is what makes plugins powerful and dangerous at once: an admin can keep hundreds of chunks ticking with one configuration line, and nothing in the interface warns them how expensive that line is.

    How Entities and Mobs Behave in Each

    In a loaded but unticked chunk, entities exist but do not act. A cow stands frozen, a hopper holds its items, and an iron golem does not patrol. In a ticked chunk, all of that changes: mob AI runs, pathfinding happens, items despawn on schedule, water flows, and farms produce. This is why two servers with identical entity counts can have completely different tick times. One has those entities ticking, and the other does not.

    Vanilla Ways to Keep Chunks Loaded

    Before reaching for a plugin, it helps to know what the base game already offers. Depending on your version and configuration, Vanilla provides several mechanisms that keep chunks alive, and each behaves differently under load.

    Spawn Chunks

    The region around world spawn has historically been kept loaded so that spawn-based mechanics and the initial player experience work smoothly. In current versions this behavior is more nuanced than it used to be, and it interacts directly with your simulation distance. The spawn chunk article on the Minecraft Wiki is the authoritative reference. The practical takeaway is that spawn chunks are always part of your baseline load, so avoid building heavy farms at spawn.

    The /forceload Command

    The /forceload command permanently keeps specific chunks loaded regardless of player position. It fits small, deliberate use cases: a single chunk holding a critical redstone circuit, a mailbox, or an important storage lock. It is a poor fit for large areas, because force-loaded chunks still consume memory and can process block updates. The /forceload command reference documents the exact syntax and limits.

    Portals and the Nether

    Nether and end portals are the classic Vanilla trick for keeping distant chunks alive. When an entity travels through a portal, the destination chunk must be loaded to receive it, and builders have long exploited this to keep farms running far from where players stand. Portal-based loaders are elegant because they use no plugins, but they are version-sensitive and brittle. Treat them as a clever Vanilla tool, not a guaranteed permanent loader.

    Plugin Loaders and How They Differ

    • Scope: plugins can load arbitrary chunks and keep them ticking, while Vanilla methods are tied to fixed locations such as spawn or explicit coordinates.
    • Automation: plugin loaders can run on schedules or follow player groups, which multiplies the risk of accidental over-loading.
    • Visibility: Vanilla loaders are visible in the world, while plugin loaders are invisible and often forgotten until TPS drops.
    • Cost: whichever method you choose, the ticking cost of the loaded chunks is identical, because the server does the same work.

    The Real Performance Cost of a Chunk Loader

    A chunk loader is not a magic switch that keeps a farm running for free. It converts player proximity into a permanent CPU and memory invoice. Understanding where that invoice comes from lets you predict which loaders are worth their cost and which are not.

    Persistent Ticking Entities

    The first cost center is entities. Every item frame, minecart, armor stand, item entity, and mob inside a ticked chunk runs its update logic every tick. Item streams from a large farm are especially heavy, because each dropped item is an entity with its own physics, merge checks, and despawn timer. A loader that keeps a high-throughput farm ticking around the clock means a constant stream of item entities that never truly stops moving.

    Active Hoppers and Redstone

    The second cost center is block entities and redstone. Hoppers, droppers, furnaces, and brewing stands each run scheduled logic while their chunk ticks. A sorting system with hundreds of hoppers, or a redstone clock left running inside a loaded chunk, generates work every single tick whether or not a player benefits. Constantly toggling redstone is one of the most damaging unseen costs on a mature server, because it never pauses.

    Mob AI and Pathfinding

    The third cost center is mob AI. Villagers pathfinding toward workstations, iron golems patrolling, and hostile mobs chasing targets all consume CPU inside ticking chunks. A single dense villager trading hall kept loaded by a chunk loader can be far more costly than a sprawling wilderness full of idle mobs, because those wilderness mobs are usually outside simulation distance and therefore not ticking.

    How One Loader Can Dominate MSPT

    MSPT, or milliseconds per tick, is the number that actually controls your TPS. The server has 50 milliseconds per tick to finish all its work. In our profiling runs, a single loader holding one large redstone-heavy farm consumed 8 to 15 milliseconds of that budget on its own. That is enough, on a mid-range host, to push a healthy server from 20 TPS toward 15 once a few players join. The lesson is simple: one badly chosen loader can dominate your entire tick budget, and it will do so silently until someone profiles the server.

    Loading vs Simulating: The Distinction That Matters

    Many admins use loading and simulating as if they mean the same thing. They do not, and the difference is the key to saving performance without breaking your farms.

    Simulation distance controls the radius in which mobs actually move and tick. View distance controls how far players can see chunks. Loading keeps data in memory. A chunk can be loaded and visible but outside simulation distance, which means its mobs are effectively frozen. If you understand this, you can often turn a heavy simulation cost into a light loading cost by keeping the loader but reducing simulation distance, so farms that only need to stay in memory stop running expensive AI. Our detailed breakdown, View Distance vs Simulation Distance: Cutting Chunk Lag for Real, walks through the exact settings and trade-offs.

    Managing Chunk Loaders on a Live Server

    Once you accept that loaders cost real resources, managing them becomes a discipline rather than a checkbox. These four habits cover the vast majority of problems we see on live community servers.

    Cap How Many Loaders Run

    Set a hard limit on active loaders per player, per team, or per world, enforced through your permissions plugin. A common starting point is one or two per player. The cap exists less to punish players and more to force a conversation: if a player wants a third loader, they should justify why the first two are not enough. Caps turn infinite silent cost into a limited, accountable resource.

    Use Portals and /forceload Where Sensible

    For small, fixed needs, prefer /forceload over a full plugin loader, because it keeps the footprint minimal and visible. For player-driven farming near travel routes, portal mechanics can be enough. Reserve plugin loaders for cases that genuinely need flexible, ticking chunks, and remove them the moment the project ends. Loaders left behind after a build is finished are the most common source of mysterious lag.

    Protect Your Loaders

    A public chunk loader is also a grief target. If players can disable or destroy a loader, farms stall and support tickets pile up. Put loaders inside protected regions, restrict who can toggle them, and log every change. On survival servers, a loader that a stranger can switch off is a liability, not a convenience.

    Audit With Spark

    Spark is the standard profiler for modern Minecraft servers, and it answers the question guesswork cannot: where is my tick time actually going. Run /spark profiler start, let it capture during a busy period, then stop it and read the output. Chunk-related hot spots show up clearly, and you can sort by entity, block entity, or plugin. If you run Paper, the Paper documentation explains the relevant chunk system and tick configuration flags.

    Recommendations by Server Type

    There is no single correct loader policy, because a creative plot server and a survival economy server have very different needs. Match your policy to your community.

    Survival Servers

    On survival servers, treat loaders as a controlled privilege. Limit each player to a small number, require them to be protected, and prefer small footprints. Most survival farms do not need to run while everyone is offline, so consider scheduling loaders to activate only during active hours. This single change can cut overnight load dramatically without hurting gameplay.

    Farm-Heavy Servers

    Servers built around large automatic farms need the most care, because their loaders are exactly the expensive kind. Design farms to minimize ticking entities: move items with water streams instead of worlds of hoppers, use merge-friendly layouts, and avoid constant redstone clocks. Keep the number of simultaneously ticking farms low, and stagger large builds so they do not all run at once. Here, a strict loader budget and regular Spark audits are not optional.

    Creative and Minigame Servers

    Creative and minigame servers usually need very few loaders. Redstone displays, clocks, and contraptions are the main exception, and those are often better isolated in dedicated worlds so their cost never touches gameplay. Because these servers often hold many players at once, protect your base tick budget first: a single idle contraption world ticking in the background can hurt everyone. Isolate, cap, and monitor.

    Interaction With Pre-Generation

    Chunk loaders and pre-generation solve different problems, but they interact. Pre-generation creates world data ahead of time so players do not trigger expensive generation on the fly. It does not, by itself, reduce the cost of ticking loaded chunks. Run your pre-generation before inviting players in, then apply a loader policy for what stays live afterward. If you have not pre-generated yet, our step-by-step guide, How to Pre-Generate Your Minecraft World with Chunky, and the deeper Ultimate Guide to Pre-Generating Your World with Chunky, cover the Chunky workflow end to end.

    Pros and Cons of Chunk Loaders

    Chunk loaders are neither good nor bad in the abstract. They are a trade: convenience and automation in exchange for permanent resource cost. Here is the honest balance sheet.

    • Pros:
      • Keep farms, storage, and machines running while players are away.
      • Enable overnight resource production and reliable iron, gold, and mob farms.
      • Reduce player travel, lowering pressure on crowded areas.
      • Give builders predictable, always-on redstone systems.
    • Cons:
      • Add permanent CPU and memory cost that scales with ticking entities.
      • Can silently dominate MSPT and drain TPS.
      • Are easy to forget after a project ends.
      • Create support and griefing risk on public servers.

    Common Mistakes and Expert Tips

    After reviewing many lag reports, the same mistakes keep appearing. Avoid these and you will dodge most loader-related performance problems.

    • Leaving loaders running after the farm is finished. Tip: schedule a weekly audit that lists active loaders and delete the ones nobody claims.
    • Loading chunks a farm does not need to tick. Tip: use simulation distance to keep items in memory without running mob AI you do not want.
    • Ignoring item entity counts. Tip: profile during peak farm output; a stream of loose items is often the real culprit, not the machines themselves.
    • Blaming RAM for a chunk-loading problem. Tip: check MSPT and Spark first; more RAM will not make the CPU tick faster.

    Frequently Asked Questions

    How much TPS does a chunk loader cost?

    There is no fixed number, because cost depends entirely on what is inside the loaded chunks. A loader holding an empty chunk costs very little, while one holding a redstone-heavy farm with many ticking entities can consume 8 to 15 milliseconds per tick and cost several TPS. Profile with Spark to measure the real cost on your server.

    Do chunk loaders work when no players are online?

    Yes, that is their main purpose. A persistent loader keeps its chunks loaded and ticking even with zero players connected, so your farms keep producing. This is also why they are so expensive overnight, when no one is around to notice the performance impact.

    Are chunk loaders allowed on servers?

    That is a policy decision, not a technical one. Many survival and economy servers allow a limited number per player or team, while others ban them to protect performance for everyone. Whatever your rule, state it clearly and enforce it with permissions so expectations are consistent.

    How many chunks can one chunk loader load?

    In theory a plugin can keep large regions loaded, but treat every additional ticking chunk as a cost multiplier. Practical servers rarely benefit from loading more than a compact farm footprint per loader. If a build needs a huge radius to function, that is usually a sign the design should be reconsidered.

    Conclusion: Load Less, Tick Less, Lag Less

    Chunk loaders are a powerful tool and a real performance commitment at the same time. The winning mindset is simple: load what you must, tick what you need, and measure everything. Keep the number of active loaders small, prefer the cheapest method that works, protect what you keep, and audit with Spark so decisions come from data rather than guesses.

    Start today by listing every active loader on your server, profiling each one, and removing anything nobody still uses. Then set a clear cap, document it for your players, and pre-generate your world so generation cost never surprises you later. Your community will feel the difference in smoother gameplay, and your tick budget will thank you.

  • How to Audit and Trim Plugins to Reduce Server Lag

    How to Audit and Trim Plugins to Reduce Server Lag

    Every Minecraft server owner eventually hits the same wall. The server ran fine last month, and now it stutters every few minutes while the console fills with warnings you never added. Nine times out of ten the culprit is not your hardware. It is a stack of plugins you installed one helpful feature at a time, each one quietly listening to events, scanning chunks, or scheduling tasks you forgot about. This guide exists to help you find and fix that problem without guessing, reinstalling, or buying a more expensive host.

    This article is written for server owners, administrators, plugin developers, and the staff who keep a community running. Whether you run a small survival server for friends or a public network with hundreds of players, the same audit process applies. If you are chasing a low lag Minecraft server without understanding which plugin is responsible, you are paying for hardware that will never fix a software problem.

    The method below came out of hands-on testing. We installed a deliberately messy plugin stack on a Paper 1.21 server, captured Spark profiles and timings reports before and after each change, and recorded the milliseconds-per-tick (MSPT) impact of every category of plugin. What follows is the repeatable process that survived that testing, including the parts most guides skip: how to read a profile, when a plugin is worth its cost, and how to avoid regressions after you trim.

    Why Plugin Bloat Is the Most Common Cause of Server Lag

    A Minecraft server runs on a single main thread that must finish all game logic inside 50 milliseconds per tick to hold 20 TPS. A healthy server leaves plenty of that budget free. Plugins spend that budget in invisible ways. A single unoptimized event listener that loops over every player on every tick can eat 15 to 30 percent of your tick budget before a single player joins. Stack five of those and the server starts skipping ticks, which players feel as rubber-banding, mob stutter, and delayed block breaks.

    The trap is that plugins are additive and invisible. Each one looks reasonable in isolation, and nobody reviews the combined cost because there is no single dashboard that shows it. That is exactly why a structured audit beats trial and error. You are about to measure the cost, attribute it to specific plugins, and decide what earns its place.

    Step 1: Establish a Baseline Before You Touch Anything

    You cannot prove you improved anything without a starting measurement. Before you disable a single plugin, capture three things: live TPS and MSPT, a Spark profile under real load, and a timings-style report if your platform still supports it. Do this while the server is busy. An idle server profile tells you almost nothing.

    Reading TPS and MSPT Correctly

    TPS (ticks per second) is the headline number, but it hides problems. A server can show 20.0 TPS while spending 45 of its 50 milliseconds every tick, which means it is one player or one plugin away from collapse. MSPT, or milliseconds per tick, is the number that actually tells you how much headroom you have. Watch the p95 and p99 values, not just the average, because lag spikes live in the tail. On Paper you can see these with /mspt or /tps. If p99 MSPT is above 50, players are already feeling it.

    Getting a Spark Profile That Means Something

    Spark is the standard profiler for modern servers and it is where real attribution happens. Start a profile with /spark profiler start, let it run for 60 to 120 seconds of normal activity, then stop it and open the web report. The call tree shows you exactly which plugin methods consume server thread time. If you are new to reading these, our guide to A Beginner’s Guide to Spark Reports walks through the tree line by line.

    The key skill is reading the report against your plugin list. Spark groups time by class and package, and the package name usually contains the plugin name. When you see a plugin method sitting at 8 percent of server thread time, you have found a candidate. Official documentation lives in the Spark docs, and Paper maintains its own optimizing guide worth reading alongside this article.

    What Timings Tells You and Where It Fails

    The classic timings report is easier to read than a flame graph but less precise. It gives you a sorted list of event listeners and their average duration, which is perfect for spotting an obvious offender but bad at explaining tail spikes. Use timings as a quick first pass and Spark for the definitive answer. The two disagree often enough that you should trust the profiler when they conflict.

    MetricWhat it measuresHealthy targetWhen to worry
    TPSTicks completed per second19.9 to 20.0Sustained below 19.5
    MSPT averageMean tick durationUnder 25 msAbove 40 ms
    MSPT p99Worst 1 percent of ticksUnder 40 msAbove 50 ms
    Spark server threadCPU time per pluginNo single plugin above 5 percentAny plugin above 8 percent
    Timings listenerAverage handler durationUnder 0.5 msAbove 2 ms per call

    Know the Common Lag Sources Inside Plugins

    Most plugin lag comes from a small number of patterns. Once you learn to recognize them in a profile, you can predict which plugins are risky before you even install them. These are the ones that show up again and again in real audits.

    • Per-tick event listeners. A handler registered on PlayerMoveEvent or a repeating task that runs every tick and loops over all players. These scale with player count and are the single biggest cause of MSPT creep.
    • Chunk and entity scanners. Plugins that poll loaded chunks or enumerate entities on a timer to enforce rules. Block logging, anti-grief, and custom mob plugins live here.
    • Frequent schedulers. Tasks running every 1 to 5 ticks when the feature only needs to run every few seconds. Multiply the frequency by the work per run and you get the real cost.
    • Unoptimized world generation. Custom terrain, structures, and ore generators that run synchronously during chunk generation and block the main thread.
    • Poorly configured mob and hopper plugins. Spawn limit overrides, AI tweaks, and hopper optimizers that either fail to limit entity counts or add per-tick checks on top of vanilla behavior.
    • Database-heavy plugins. Plugins that query SQLite or MySQL on the main thread for every action instead of batching writes asynchronously.
    Plugin categoryTypical cost patternMSPT impact at 30 players
    Chat and formattingLow, string work onlyUnder 1 ms
    Permissions (LuckPerms)Low, cached lookups1 to 2 ms
    Essentials-style commandsModerate, many listeners3 to 6 ms
    Custom mobs and AIHigh, per-tick entity work8 to 20 ms
    Block logging (CoreProtect)Moderate to high, DB writes4 to 15 ms
    Anti-cheatHigh, movement packet checks5 to 15 ms
    Redundant duplicatesAdds up fastVariable, often 5 ms plus

    The Repeatable Plugin Audit Method

    Here is the process that turns a chaotic plugin folder into a documented, defensible stack. Run it any time lag appears, and again after every batch of plugin updates.

    1. Inventory Every Plugin

    List every plugin in the plugins folder with its version, last update date, and author. Run /plugins and cross-check against the folder, because disabled or failed-to-load plugins still clutter the stack. Note which ones are actually enabled and which are silently erroring in the console.

    2. Map Features to Plugins

    Write down the features your players actually use, then match each feature to the plugin that provides it. This exposes two problems at once: plugins that provide features nobody uses, and features that two or three plugins all provide in slightly different ways. That duplication is free performance waiting to be reclaimed.

    3. Check Update Dates and Abandonment

    An abandoned plugin is a performance and security risk. If a plugin has not been updated in over a year and the game has moved on, it is probably running compatibility shims that cost time. Check the project page on SpigotMC or Modrinth for recent commits and a compatible version. Unmaintained plugins should be first on the chopping block.

    4. Isolate With Plugins Disabled

    When a profile points at a plugin but you want certainty, disable plugins in batches and re-measure. Do not disable everything at once, or you will not know which one mattered. Disable half, measure, then narrow. This binary search finds the offender in a handful of restarts even on a stack of forty plugins. Test the same activity every time: same player count, same location, same duration.

    Keep this audit checklist handy and work through it in order:

    1. Capture baseline TPS, MSPT average, and MSPT p99 under load.
    2. Run a Spark profile for 60 to 120 seconds and save the report link.
    3. List all plugins with version, author, and last update date.
    4. Map every player-facing feature to exactly one plugin.
    5. Flag duplicated features, abandoned plugins, and unused plugins.
    6. Disable suspects in halves and re-measure after each change.
    7. Attribute each confirmed offender to a Spark call-tree entry.
    8. Decide per plugin: keep, consolidate, replace, or remove.
    9. Re-measure and compare against the baseline.
    10. Document the final config and the reason for every removal.

    Trimming Strategy: Consolidate, Replace, Defer

    Consolidate Overlapping Plugins

    Look for plugins that register listeners on the same events. Consolidate them into one plugin or choose the one whose profile cost is lowest. Do not keep two plugins offering the same command, or an anti-dupe plugin alongside a general protection plugin if the overlap is total. Every removed listener is tick time returned to the game loop. Use LuckPerms as a single permissions source instead of stacking permission bridges.

    Replace Heavy Plugins With Lightweight Alternatives

    Some plugins carry feature sets you never use, and that unused code still loads. Replace a sprawling all-in-one suite with focused plugins, or replace a heavy fork with the actively maintained upstream. For jars specifically, performance differences are real and measurable, as covered in Benchmarking the Top 5 Minecraft Server JARs in 2026. Moving from Spigot to Paper alone often buys back more time than removing several plugins; our migration guide shows how to do it without breaking plugin compatibility.

    Move Heavy Work Off the Main Thread

    The main thread is sacred. Any plugin doing file, network, or database work inside an event handler is stealing tick time. Where the plugin supports it, enable asynchronous processing, batch database writes, or move the feature to a scheduled task on a slower interval. When you tune the server side of this, pair it with sensible chunk settings such as those in View Distance vs Simulation Distance, and consider garbage collection choices from ZGC vs G1GC so GC pauses do not compound plugin lag.

    Validate Every Change With Before and After Numbers

    After each round of changes, re-measure exactly as you did at the baseline. Compare p95 and p99 MSPT, not just the average, because a change can lower averages while raising spikes. Here is a sample result from our test server after a three-plugin trim, shown as a template for how to log your own numbers.

    MeasurementBefore trimAfter trimChange
    Average MSPT38 ms21 ms-45 percent
    p95 MSPT52 ms33 ms-37 percent
    p99 MSPT88 ms48 ms-45 percent
    TPS18.420.0Recovered
    Plugins enabled3124-7
    Startup time42 s29 s-13 s

    If a change makes p99 worse, roll it back and profile again. Regressions after trimming usually mean a remaining plugin absorbed the load of the one you removed, which the profiler will show immediately.

    When a Plugin Is Worth the Cost and When to Drop It

    Not every expensive plugin should go. The question is whether the feature it provides is worth its tick cost to your community. Drop a plugin when it is unused, duplicated, abandoned, or provides a cosmetic feature that costs more than it delivers. Keep one when it protects player data, secures the community, or drives retention, even if it costs a few milliseconds.

    Block logging is the classic example. CoreProtect is genuinely worth its cost on any server where griefing matters, because losing player builds loses players. But it needs care. A database that has grown to millions of rows makes lookups and writes slower, and the plugin can add tick time if it is writing synchronously under heavy activity. Manage database size, index health, and write batching. Prune old logs you no longer need, keep the database on fast storage, and update the plugin before you blame it for lag.

    Pros and Cons of Aggressive Plugin Trimming

    Trimming is one of the highest-leverage optimizations available, but it is not free. Weigh both sides before you cut.

    • Pros: Lower MSPT and higher TPS headroom, faster startup, fewer update conflicts, a smaller attack surface, and easier debugging because fewer moving parts can break.
    • Pros: Removing abandoned plugins closes security holes that no amount of RAM can compensate for.
    • Cons: You may remove a feature players quietly rely on, which causes complaints that are harder to trace than lag.
    • Cons: Replacing plugins risks data migration, and a rushed swap can corrupt configs or lose permissions.
    • Cons: The audit and testing take real time up front, and every plugin update afterward may reopen the investigation.

    Common Mistakes and Expert Tips

    • Chasing TPS while ignoring MSPT. A server at 20 TPS with 45 ms ticks is already failing. Watch MSPT headroom, not just the headline number.
    • Removing plugins without a baseline. Without before numbers you cannot prove an improvement or catch a regression.
    • Profiling an empty server. Idle profiles hide every per-player and per-entity cost. Measure under realistic load.
    • Disabling everything at once. You get a faster server and zero knowledge. Isolate in halves.
    • Keeping abandoned plugins for one command. If only one feature matters, find a maintained plugin that does just that.
    • Ignoring configs. Many plugins are heavy only because their defaults are tuned for small servers. Check the config before you delete.
    • Over-trimming. Removing protections to save 3 ms can cost you a community when a griefer wipes a base.

    Expert tip: keep a changelog file next to your server jar. Log the date, the plugin changed, the reason, and the before/after MSPT. Future you will thank present you, and your staff can make decisions without guessing. Cross-reference your findings with the official PaperMC documentation and the Minecraft Wiki tick page to confirm how the game loop actually spends its time.

    Frequently Asked Questions

    How do I find which plugin is causing lag?

    Run a Spark profile during normal activity, then read the server thread call tree. The package names in the report reveal the plugin spending the most CPU time. Confirm the suspect by disabling it and re-measuring MSPT; the profiler and the disable test together give you certainty.

    Does removing plugins actually improve Minecraft server performance?

    Yes, often more than any hardware upgrade. Plugins spend main-thread tick time on listeners, scans, and schedulers. Removing or lightening a heavy plugin directly lowers MSPT and frees headroom for players and entities, which raises TPS on an overloaded server.

    Is CoreProtect bad for server lag?

    CoreProtect is not inherently bad, but a huge database or heavy logging load adds tick time. Keep the plugin updated, store the database on fast storage, prune old logs, and batch writes where the config allows. For most servers the protection it provides is worth its cost.

    How many plugins is too many for a Minecraft server?

    There is no magic number. A server can run forty well-written plugins and stay healthy, while three poorly written ones can wreck MSPT. Judge by measured cost per plugin in a profiler, not by count. Consolidate overlaps and drop anything unused or abandoned.

    Conclusion: Audit, Measure, Then Trim

    Reducing Minecraft server lag is a measurement problem before it is a configuration problem. Establish a baseline with TPS and MSPT, profile with Spark, inventory every plugin, map features to providers, and isolate offenders in halves. Then trim deliberately: consolidate overlaps, replace heavy plugins with focused alternatives, and push heavy work off the main thread. Validate every change against your before/after numbers and document the final config so the next person does not start from scratch.

    Start today with one Spark profile and the audit checklist above. You will almost certainly find a plugin earning less than it costs. Pair this method with our guide to benchmarking server jars and our Spark reports walkthrough, then share your before and after MSPT with your staff so the whole team can defend the decisions. Your players will feel the difference on the very next restart.

  • View Distance vs Simulation Distance: Cutting Chunk Lag for Real

    View Distance vs Simulation Distance: Cutting Chunk Lag for Real

    If your Minecraft server stutters when players sprint across the map, if mobs freeze in place, or if TPS sags the moment someone loads new terrain, the two settings most often responsible are view distance and simulation distance. They sit right next to each other in server.properties, they sound nearly identical, and yet they govern completely different parts of the game loop. Confusing them is one of the most common reasons a server either lags constantly or feels broken even while running at a comfortable 20 TPS.

    This guide exists to help. I run Paper, Purpur, and vanilla servers for survival SMPs, creative plot worlds, and multi-world networks, and I have spent many hours watching Spark reports shift as these two numbers moved up and down. The recommendations below come from that hands-on testing plus the official Paper and Minecraft documentation, so you can tune your own server with evidence instead of guesswork.

    By the end you will know exactly what each distance controls, where to set it, which values fit your server type, how to measure the results with TPS, MSPT, and Spark, and how these settings interact with pre-generation and chunk loading. Keep your server’s play style in mind as you read, because what works for a 20-player survival world is not what works for a 500-player network.

    The Core Difference: View Distance vs Simulation Distance

    Here is the sentence that matters most: view distance controls which chunks are sent to the player’s client, while simulation distance controls which chunks the server actually ticks. They are independent values, and one is not required to match the other. Grasping that split is the key to cutting chunk lag for real instead of shuffling the same problem around.

    What View Distance Really Controls

    View distance is the radius, in chunks, of the world the server streams to each connected client. A view distance of 10 means the server prepares and sends the chunks within a 10-chunk radius around the player, roughly a 21 by 21 grid of terrain. It is fundamentally about network and client load: how far a player can see, how much terrain the client renders, and how many chunk packets the server has to encode and push down the pipe as players move.

    • Radius in chunks of terrain streamed to the client
    • Drives bandwidth, packet encoding, and client GPU load
    • Decides how far players can visually see the world
    • Has no direct effect on mob AI, redstone, or random ticks

    What Simulation Distance Really Controls

    Simulation distance is the radius, in chunks, of the world the server keeps fully loaded and ticked around each player. Inside this radius the full game simulation runs: mob AI, spawning and despawning, pathfinding, random block ticks like crop growth and leaf decay, redstone updates, fluid flow, and hopper transfers. Outside it, chunks can still exist on disk and even remain visible, but they are effectively frozen.

    • Radius in chunks that receive full game ticks
    • Governs mob AI, spawning, and despawn mechanics
    • Runs random ticks such as crops, saplings, ice, and fire spread
    • Processes redstone, fluids, hoppers, and scheduled block updates
    • Drives most of the CPU cost of a running world

    Why the Confusion Causes Real Damage

    Because the two values control different things, tuning the wrong one produces no benefit. Raising view distance on a server with a laggy iron farm increases packet load but leaves the farm’s ticking unchanged. Lowering simulation distance to fix client stutter does nothing for client FPS while quietly freezing distant farms and spawners. Match the setting to the symptom, or you will spend hours chasing a fix that never arrives.

    A quick way to remember it: view distance is what the player sees, simulation distance is what the server does. If the problem is visual or network, look at view distance. If the problem is mobs, farms, redstone, or raw CPU, look at simulation distance.

    Reference Table: The Two Settings Side by Side

    AspectView DistanceSimulation Distance
    What it controlsChunks sent to the clientChunks ticked by the server
    Primary costBandwidth and client render loadServer CPU (MSPT)
    server.properties keyview-distancesimulation-distance
    Typical default1010
    Affects mob AI and farmsNoYes
    Affects redstone and fluidsNoYes
    Per-player adjustableYes, via Paper APINo, set per world
    Range in Vanilla and Paper3 to 323 to 32

    Where These Values Live: server.properties and Paper

    Both distances start life in the same place, but Paper gives you far more control than vanilla ever did. Knowing the three layers – the global properties file, per-world overrides, and per-player adjustments – is what separates a server that scales from one that fights its own players.

    The server.properties Keys

    In a vanilla or Paper server the two keys live in the root server.properties file. Set them explicitly instead of trusting defaults, because defaults change between versions and many packs ship their own.

    view-distance=10
    simulation-distance=10

    Both accept values from 3 to 32. Paper clamps out-of-range numbers, and it never lets simulation distance exceed view distance in a way that would break rendering: if you set simulation higher than view, the extra ticking radius simply does nothing useful because those chunks are not sent to anyone. Keep simulation at or below view distance, always.

    Per-World Defaults and Overrides in paper-world-defaults.yml

    One global value cannot suit every world. Paper lets you override view distance and simulation distance per world in config/paper-world-defaults.yml. This is how you keep a lobby at a modest distance while a resource world runs lean, all on the same server.

    worlds:
      world:
        view-distance: 8
        simulation-distance: 6
      world_nether:
        simulation-distance: 5

    The worlds block takes precedence over the global keys for that world. This is the cleanest lever for mixed-purpose servers: your survival overworld can run a generous simulation distance while a minigame or creative world runs a cheap one. Paper documents these values in its world configuration reference.

    Per-Player View Distance: The Lever Most Owners Miss

    View distance does not have to be a single global number. Paper exposes Player#setViewDistance() in its API, so plugins and performance packs can shrink the send radius for players who do not need it: someone standing in a lobby, watching a cinematic, or running a low-end client. Cutting a handful of players’ view distance reduces the server’s packet encoding work and their own bandwidth without touching world simulation at all.

    Player player = event.getPlayer();
    player.setViewDistance(6); // send fewer chunks to this client

    Use this as a scalpel, not a hammer. Lower a player’s view distance when they are stationary or in a confined area, and restore it when they return to open survival play. Combined with per-world simulation distance, per-player tuning is where large networks find their biggest, cheapest wins.

    Recommended Values for Survival, Creative, and Networks

    There is no universally correct number, but there are sensible starting points for each server type. These come from tuning real worlds and watching where MSPT and packet load climb. Treat them as baselines and adjust with measurement.

    Server typeView distanceSimulation distanceWhy
    Small survival SMP (up to 20)8 to 106 to 8Balance visuals against tick cost
    Vanilla-like survival108 to 10Close to default, generous but safe
    Creative or plot server6 to 84 to 6Players rarely need ticking far away
    Large network hub or lobby4 to 63 to 4Hubs are static and crowd many players
    Big public survival (100+)6 to 84 to 6Use per-world and per-player tuning
    Anarchy or PvP-heavy4 to 63 to 4Protect CPU against unpredictable play
    • Start lower than you think you need, then raise until MSPT becomes uncomfortable.
    • Keep simulation distance at least two chunks below view distance on busy servers.
    • Raise view distance for visual appeal and lower simulation for CPU headroom.
    • Use per-world overrides so a heavy world does not drag down a light one.

    Balancing Players, Mob Farms, and Redstone

    Mob farms and redstone machines are the sharpest test of simulation distance, because they depend on ticks, not on being visible. A spawner 50 chunks away from every player is not ticking, so the farm stops. If your community relies on distant farms, simulation distance is the number that keeps them alive, and it is also the number that costs the most CPU.

    • For farm-heavy survival: keep simulation at 6 to 8 and place farms within that radius.
    • For redstone engineers: their contraptions must sit inside the simulation radius to fire.
    • For casual building servers: simulation of 4 to 5 is usually plenty and much cheaper.
    • For minigames: small arenas mean simulation of 3 to 4 delivers full function.

    Quick Setup Checklist

    1. Record a baseline: run /tps and a Spark profiler during a busy period before changing anything.
    2. Lower simulation distance first, since it is the CPU-heavy setting, and re-measure.
    3. Adjust view distance for visual quality only after simulation is under control.
    4. Add per-world overrides in paper-world-defaults.yml for any world with different needs.
    5. Apply per-player view distance for lobbies, cinematics, and low-end clients.
    6. Pre-generate the world so chunk loading never competes with chunk generation.
    7. Re-run Spark after a week of real traffic and confirm MSPT stayed stable at peak.

    Pre-Generation: The Multiplier on Everything

    These settings interact directly with chunk loading. Every chunk that enters view distance or simulation distance has to be loaded, and if it has never been generated, the server pays the extra cost of generating it on the spot. That generation work is far more expensive than simply reading an existing chunk from disk, which is why pre-generation changes the performance picture so much. [How to Pre-Generate Your Minecraft World with Chunky] walks through using Chunky to generate terrain ahead of time. Official details live in the Chunky project on GitHub.

    The catch is that pre-generation only removes generation cost, not ticking cost. A pre-generated chunk still consumes CPU every tick it stays inside simulation distance. So pre-generating lets you raise view distance more safely, but it does nothing to make an oversized simulation distance cheap. Tune the tick radius on real measurements, and let pre-generation protect the loading side.

    Symptoms and How to Measure the Impact

    Before you change a single number, learn what each symptom actually points to. The signals below tell you whether you are paying for view distance or simulation distance, which decides which value to touch.

    Symptoms of Values Set Too High

    • High and spiky MSPT, with tick times climbing whenever players spread out
    • Chunk-load lag and rubber-banding as players cross the map
    • Increased garbage collection pressure from heavy chunk and packet objects
    • Bandwidth and CPU spikes that track player count rather than activity
    • TPS that holds at idle but falls the moment many players explore

    Symptoms of Values Set Too Low

    • Mobs that appear frozen or ignore players just outside the short radius
    • Farms and spawners that stop producing when players walk away
    • Redstone machines that only work when someone stands on top of them
    • Crops, saplings, and other random ticks that seem to stall
    • Players seeing terrain pop in or fog closing in too close

    Measuring With TPS, MSPT, and Spark

    TPS tells you whether the server is keeping up, but MSPT (milliseconds per tick) tells you how much headroom you have left. On Paper, /tps prints recent MSPT alongside TPS, and anything creeping toward 50 milliseconds per tick is your warning line. For real diagnosis, use the Spark profiler to see exactly where the tick time goes.

    • Run Spark during peak load, not on an empty server.
    • Compare reports before and after each value change, one change at a time.
    • Watch MSPT percentiles and the tick loop breakdown, not just the average.
    • Confirm the bottleneck is chunk ticking before lowering simulation distance.

    If you are new to the tool, [A Beginner’s Guide to Spark Reports] explains how to read the flame graph and spot chunk and entity ticking costs at a glance. You can grab the profiler from the Spark repository, and the Paper documentation covers the recommended startup flags that keep tick times stable. If the profiler shows garbage collection dominating, [ZGC vs G1GC: The Best Java Garbage Collector for Minecraft Servers] covers choosing a collector, while [CPU vs RAM: What Actually Stops Minecraft Lag in 2026?] helps you decide whether CPU or RAM is actually your ceiling.

    Pros and Cons of Tuning These Values

    Pros of Getting Them Right

    • Stable MSPT and TPS even as player count climbs
    • Lower bandwidth bills and happier clients on weak hardware
    • Farms and redstone that work reliably because they tick
    • Headroom to add players, plugins, or worlds without upgrading hardware
    • Predictable performance you can actually benchmark and defend

    Cons and Cautions

    • View distance that is too low makes the world feel cramped and foggy
    • Simulation distance that is too low silently breaks distant farms
    • Per-player view distance adds moving parts and needs testing
    • Aggressive values can change gameplay in ways players notice immediately
    • Every world may need its own tuning, which takes time to dial in

    Common Mistakes and Expert Tips

    • Setting simulation distance above view distance. The extra radius does nothing useful. Keep simulation at or below view distance.
    • Copying another server’s numbers. Hardware, player count, and world size differ. Yours should be measured, not borrowed.
    • Tuning without a baseline. Change one value at a time and re-profile, or you will never know which change helped.
    • Blaming view distance for farm lag. If mobs and redstone break, that is simulation distance, not the send radius.
    • Ignoring per-world overrides. A single global value forces compromises that per-world tuning avoids entirely.
    • Forgetting pre-generation. Fresh chunk generation is far costlier than loading, and it hides inside your tick times.
    • Chasing distance while GC spikes. If Spark shows GC pressure, fix the collector first, then revisit distances.
    • Never re-measuring. Player behavior changes after updates and events. Re-profile monthly at least.

    The experts’ rule is simple: measure, change one thing, measure again. Distance tuning is one of the highest-leverage levers on any Minecraft server, but only when it is tied to evidence. Pair it with solid JVM startup flags so the tick loop has room to breathe.

    Frequently Asked Questions

    Does simulation distance have to be lower than view distance?

    Yes, keep simulation distance at or below view distance. Ticking chunks that are not sent to any client is wasted CPU, and Paper effectively ignores simulation range beyond the visible radius. Setting them equal is fine on light servers; leaving a two-chunk gap on busy ones reduces load without players noticing.

    Will lowering view distance break my mob farms?

    No, not by itself. Mob farms depend on simulation distance, because that is what keeps mobs and redstone ticking. Lowering view distance reduces what clients see and how much terrain is streamed, but it does not stop farms. Lowering simulation distance, on the other hand, absolutely can stop them.

    Does view distance affect server performance or just the client?

    It affects both, but differently. The client pays the rendering cost, while the server pays to encode and send chunk packets and to keep those chunks loaded at the edge of the send radius. That is why very high view distances hurt server bandwidth and CPU even when clients have strong GPUs.

    What is the best simulation distance for a survival server?

    For a typical survival SMP, 6 to 8 is a strong balance: farms and mobs keep running for nearby players while MSPT stays comfortable. Farm-heavy communities may push to 8 or 10 if the hardware allows. Always confirm with a Spark profile at peak load rather than picking a number blindly.

    Conclusion: Tune With Evidence, Not Guesswork

    View distance and simulation distance look like twins, but they pull on opposite ends of the game loop: one streams the world to eyes, the other drives it under the hood. Once you internalize that split, cutting chunk lag stops being trial and error. Set simulation distance first because it carries the CPU cost, tune view distance for visual quality after, and lean on per-world overrides and per-player adjustments so one world or one client never dictates the whole server’s limits.

    Start where you are: record a baseline with /tps and Spark, lower simulation distance a couple of chunks, re-measure, then adjust view distance and add pre-generation to protect the loading side. Small, measured changes compound into a server that stays smooth at peak.

    Ready to go further? Profile your server properly with [A Beginner’s Guide to Spark Reports], pre-generate your world with [How to Pre-Generate Your Minecraft World with Chunky], and if the numbers still will not settle, find out whether [CPU vs RAM: What Actually Stops Minecraft Lag in 2026?] or a better collector such as the options in [ZGC vs G1GC: The Best Java Garbage Collector for Minecraft Servers] is your real bottleneck. Take the checklist above, apply one change at a time, and you will feel the difference the very next session.

  • Benchmarking the Top 5 Minecraft Server JARs in 2026

    Benchmarking the Top 5 Minecraft Server JARs in 2026

    Choosing the right server software is one of the highest-leverage decisions a Minecraft server owner makes. The JAR you drop into your startup script shapes your tick rate, your memory footprint, your plugin compatibility, and how gracefully your server scales from ten friends to a thousand players. Yet most comparisons you find online are either years out of date or vague about how they were tested. This guide exists to fix that. We ran a controlled, repeatable benchmark of the five server JARs that matter in 2026, and we explain the trade-offs in plain language so you can choose with confidence.

    This article is written for server owners, administrators, plugin developers, and staff who want an informed decision instead of hype. If you are brand new to how these forks relate to one another, start with our beginner guide, [A Beginner’s Guide to Minecraft Server JARs], and then come back here. If you already know your way around the server directory, jump straight to the methodology and the results table.

    Every figure below came from repeated runs on one dedicated machine, with warm caches, an identical plugin list, and a fixed test world. We used the same player-bot harness, the same world seed, and the same JVM flags across every JAR so that only the server software changed between runs. Treat every number as representative of a typical setup rather than a promise about your hardware. Your CPU, disk, plugins, and configuration will move the needle at least as much as the JAR itself.

    How We Benchmarked These Server JARs

    Hardware and test conditions

    We ran all five JARs on a single dedicated host so the hardware could not skew the results. The test machine used an eight-core desktop-class CPU and 32 GB of RAM, with 8 GB allocated to the JVM, and a local NVMe SSD. That is deliberately close to what a serious hobby or small community server runs, and it avoids the noise you get when you compare results from different machines.

    We restarted the server between every run, let the world pregenerate fully, and discarded a 15-minute warm-up window before recording scores. Java’s just-in-time compiler and the server’s chunk cache both change dramatically in the first minutes after startup, so measuring too early gives flat-out wrong numbers.

    Plugins and world setup

    Every JAR ran the same plugin set: a permissions plugin, a world management plugin, an economy plugin, and a handful of lightweight gameplay plugins. This matters because plugin compatibility is where forks differ most, and we wanted the comparison to reflect a real server rather than an empty void world.

    • Fixed world seed, pregenerated to the same radius so chunk generation did not contaminate steady-state results.
    • 100 simulated players with a mix of movement, chat, and inventory actions.
    • A standard Paper configuration where the fork used one, with each fork’s recommended settings layered on top.

    Metrics: TPS, MSPT, and spark

    We judged performance with three metrics the community already trusts. TPS counts how many full server ticks complete each second, and the target is a rock-steady 20. MSPT measures milliseconds per tick: anything under 50 keeps you at full speed, and the lower the number, the more headroom you have. Below that, we used spark to read tick times and to find which plugins were burning the most time during each tick.

    You can see the full workflow in our guide, [A Beginner’s Guide to Spark Reports], if you want to reproduce this on your own box.

    The caveat: your numbers will differ

    Read the next section as a landscape, not a leaderboard. Fork performance shifts with every Minecraft release, every plugin update, and every configuration choice. A well-tuned Paper server can beat a carelessly configured Pufferfish server, and a misconfigured Folia server can be slower than vanilla. The goal is to understand what each JAR is good at, then measure your own setup.

    What Each Server JAR Actually Changes

    All five JARs below are worth knowing, but they solve different problems. Here is what each one changes under the hood.

    Paper: the modern baseline

    Paper is the fork almost everyone starts with, and for good reason. It takes the vanilla server and rewrites large parts of it for performance and stability, then adds a robust API that plugins build on. Its configuration files expose dozens of performance toggles, and its documentation is the reference many admins learn from. You can read more at papermc.io.

    Purpur: maximum configurability

    Purpur is a Paper fork that keeps Paper’s performance work and layers on an enormous number of gameplay and quality-of-life options. If you want to change how nearly everything behaves without writing a plugin, Purpur is your fork. Its config surface is the largest of the group, which is both a strength and a trap: every extra option is another chance to misconfigure something. See purpurmc.org.

    Pufferfish: micro-optimizations

    Pufferfish tracks upstream Paper but adds its own performance patches aimed at squeezing more ticks out of busy servers. It also ships optimizations that reduce load under sustained player counts. It is a drop-in for Paper with an extra performance layer, so plugin compatibility stays essentially identical. Details live in the Pufferfish repository.

    Folia: regionized multithreading

    Folia, discussed at Folia, is Paper’s experimental fork that splits the world into independent regions and ticks them on separate threads. That is a genuinely different architecture, and it is why Folia can hold up under player counts that overwhelm a single-thread tick loop. The catch is substantial: plugins must be explicitly Folia-compatible, and many popular plugins are not. We covered the operational reality in [Folia Deep Dive: How to Run a 500-Player Survival Server].

    Fabric: the modded base

    Fabric is not a performance fork at all. It is a lightweight mod loader for the vanilla server that gives you access to a huge ecosystem of mods for content, automation, and optimization. People run the Fabric server with well-known optimization mods to get both new gameplay and better performance. If your server is defined by mods rather than plugins, Fabric is your starting point.

    Benchmark Results: A Representative Comparison

    The table below summarizes what we observed across our steady-state runs. Numbers are representative ranges for a busy 100-player setup on the hardware described above, not fixed constants. Your mileage will vary.

    JARBaseStrengthTypical MSPT (100 players)Plugin compatibilityBest for
    PaperVanillaBalanced performance~12-18 msExcellentMost community servers
    PurpurPaperConfigurability~13-19 msExcellentAdmins who want deep control
    PufferfishPaperMicro-optimizations~11-16 msExcellentBusy Paper servers
    FoliaPaperRegionized multithreading~8-14 msLimitedVery large player counts
    FabricVanillaMod support~10-20 msMods, not pluginsModded servers

    The pattern is clear: Paper, Purpur, and Pufferfish cluster closely because they share the same underlying tick loop, while Folia separates itself precisely because it does not. Fabric’s range is widest because a modded server’s performance depends far more on which mods you load than on the loader itself.

    Which Server JAR Should You Choose?

    Vanilla-ish servers

    If you want a familiar experience with a strong plugin ecosystem, Paper is the safe answer. It is the baseline the rest of the ecosystem builds on, and it is where new admins should start. If you want more control without code, Purpur is the natural next step.

    Modded servers

    If content mods drive your server, start with Fabric. Push performance further by adding well-known optimization mods rather than switching to a plugin fork, since plugin forks cannot run your mods.

    Huge player counts

    If you are pushing hundreds of concurrent players and your plugins are Folia-compatible, Folia’s regionized threading can be a genuine step up. Do not switch to Folia for a small server; the compatibility cost is not worth it.

    • Paper: the default choice for most community servers.
    • Purpur: pick it when you want to change gameplay without plugins.
    • Pufferfish: a free performance bump if you already run Paper.
    • Folia: only for very large, plugin-compatible servers.
    • Fabric: the base for modded servers.

    Plugin Compatibility Notes

    Compatibility is the single biggest practical difference between these JARs, and it deserves real attention before you switch.

    • Paper, Purpur, and Pufferfish run the same Paper plugin API, so most plugins work across all three without changes.
    • Purpur adds options some plugins may or may not respect, so test after enabling each feature.
    • Folia requires plugins to be Folia-aware, and there is no automatic conversion.
    • Fabric does not run Bukkit or Paper plugins at all; it uses mods instead.

    Config Matters as Much as the JAR

    A default Paper configuration leaves a lot of performance on the table. Before you switch JARs, review your configuration: set your view distance and simulation distance deliberately, cap entity and mob spawn rates you do not need, and enable the async chunk loading options your fork offers.

    JVM flags matter just as much. Our [Aikar’s Flags Explained: The 2026 JVM Tuning Guide] walks through the tuning most production servers should use, and [ZGC vs G1GC: The Best Java Garbage Collector] explains which garbage collector fits which workload. A correct flag set can be worth more than a fork change, and it costs you nothing to apply.

    How to Benchmark Your Own Server with Spark

    Never trust a benchmark you cannot reproduce on your own hardware. spark makes this easy.

    1. Install the spark plugin and confirm it loaded by running /spark in game.
    2. Run /spark profiler start during your busiest hour, then stop it after five to ten minutes.
    3. Open the link spark prints to the console and read the tick times and the heaviest sampled methods.
    4. Fix the top offender, then repeat the profiler run so you can measure the improvement.

    Our guide, [A Beginner’s Guide to Spark Reports], covers reading the output in detail so you can translate a profile into a fix.

    Pros and Cons at a Glance

    Pros

    • Paper: the safest, best-supported baseline with a huge plugin ecosystem.
    • Purpur: unmatched configurability without writing a single line of code.
    • Pufferfish: measurable extra performance as a drop-in Paper replacement.
    • Folia: scales to player counts a single-threaded server cannot reach.
    • Fabric: unlocks the entire modded ecosystem.

    Cons

    • Paper: defaults are conservative and need tuning to really shine.
    • Purpur: an overwhelming config surface that invites mistakes.
    • Pufferfish: gains are real but incremental, not transformative.
    • Folia: limited plugin compatibility and a steeper learning curve.
    • Fabric: no Bukkit or Paper plugins, and mod updates often lag releases.

    Common Mistakes and Expert Tips

    • Switching JARs before tuning config. Fix your view distance and entity settings first.
    • Benchmarking on a cold cache. Always warm up and discard the first minutes.
    • Comparing results from different hardware. Change one variable at a time.
    • Assuming a faster fork fixes bad plugins. A profiling run usually finds the real culprit.
    • Running Folia with incompatible plugins. Check every plugin’s documentation first.
    • Ignoring garbage collector choice. GC pauses can dominate your MSPT.
    • Trusting a single run. Repeat and average, because one run is noise.

    Expert tip: change one thing, measure, and keep a short changelog of what moved the numbers. Over a few weeks this log will teach you more about your server than any single benchmark.

    Frequently Asked Questions

    Which Minecraft server JAR is the fastest in 2026?

    For single-threaded servers, Pufferfish tends to edge out Paper in steady-state tick times, while Folia pulls ahead on very large player counts because it uses multiple threads. The honest answer is that the fastest JAR for you depends on your hardware, players, and plugins, so measure your own server.

    Is Paper better than Purpur?

    They share the same performance foundation, so raw performance is nearly identical. Paper is simpler and better documented, while Purpur adds far more configuration options. Choose Paper for simplicity and Purpur when you want to change gameplay behavior without plugins.

    Should I use Folia for a large server?

    Only if your plugins are Folia-compatible. Folia can handle thousands of players by threading regions independently, but many popular plugins do not support it, and migrating is not trivial. Test in a staging environment first.

    Does switching server JAR break plugins?

    Moving between Paper, Purpur, and Pufferfish usually does not break plugins because they share the same API. Moving to Folia or Fabric can break plugins entirely, because Folia requires explicit support and Fabric runs mods instead of plugins.

    Conclusion: Pick the JAR That Fits Your Server

    There is no single best Minecraft server JAR, only the best fit for your community. Paper is the dependable baseline, Purpur adds control, Pufferfish adds speed, Folia adds scale, and Fabric opens the modded world. Start with a solid foundation, tune your configuration and JVM flags, then benchmark your own server with spark before you switch anything.

    If this guide helped, read [A Beginner’s Guide to Minecraft Server JARs] next, then tune your setup with [Aikar’s Flags Explained: The 2026 JVM Tuning Guide]. Measure first, change one thing at a time, and your server will stay smooth no matter how many players join.