Cobblemon Server Lag: Causes and Fixes That Work (2026)
Published
Short answer: Most Cobblemon server lag isn't a RAM problem. It comes from the main server thread falling behind while players walk into land that hasn't been generated yet, because Cobblemon's spawner checks the blocks around every player before it spawns anything. Pre-generate the world, give the server enough CPU, and trim the spawner a little. Add RAM only if spark shows memory running out.
Most "fix Cobblemon lag" pages either sell a cleanup mod or repeat generic advice ("lower view distance"). Below is what we saw when we walked a test player across a fresh Cobblemon 1.8.4 world, what the stack traces pointed at, and the exact config/cobblemon/main.json keys from the 1.8.4 source code.
What we measured
In November 2026 we ran the Cobblemon Official Modpack 1.8.4 (Fabric, Minecraft 1.21.1) on a 6 GB staging server. One fake player walked away from spawn at walking pace, 16 blocks every few seconds, with view distance 8 and nothing else running. We read /spark tps every few steps.
| CPU the server had | Result of the walk into new land |
|---|---|
| 1 core | TPS fell to about 2. The longest tick took 3.1 s, and the server's watchdog crashed it about 75 s after the player joined |
| 1.5 cores | One route held 20 TPS. Another sat at a median of about 12 TPS, with one tick of 20.8 s |
| 2 cores | Both routes held a median of 20 TPS, and the worst tick was 2.85 s |
Memory was never the limit: in a real crash on a fresh Cobbleverse world we later looked at, the heap was at 2.6 of 4.2 GiB when the watchdog fired. The crash reports all pointed at the same path: Cobblemon's per-player spawner checking the habitat around the player, which forced the server to load or generate a chunk on the main thread. That's why lag gets worse the further people explore, and why it's at its worst on a brand-new world.
The takeaway: Cobblemon lag is mostly main-thread time, and the biggest single cost is generating new terrain while players are on it.
Step 1: find out what's slow with spark
The official pack doesn't include spark, so add the spark mod for your loader (Fabric or NeoForge, 1.21.1) to the server's mods folder. Players don't need it. Then:
/spark tpsshows ticks per second and tick times. 20 TPS and a tick time under 50 ms is healthy./spark healthshows memory and CPU./spark profiler start --only-ticks-over 100, wait for the lag to happen, then/spark profiler stop. You get a link to a report that only includes the slow ticks.
How to read the report:
| What you see | What it means | Fix |
|---|---|---|
| Memory near the limit and climbing, or out-of-memory crashes | Not enough RAM | Size up (see Cobblemon server RAM) |
| Time in chunk loading or world generation | Players are exploring new land | Step 2 |
| Time in Cobblemon's spawner or entity ticking | Too many wild Pokémon, or spawning too often | Step 3 |
| CPU pinned near 100% the whole time | The server is short on CPU | Steps 2 and 3, or more CPU |
Step 2: pre-generate the world
This is the fix that matters most. Install Chunky (it has Fabric and NeoForge builds for 1.21.1), then from the console:
chunky center 0 0
chunky radius 1500
chunky start
chunky pause and chunky continue let you stop and resume, and progress survives a restart. Do it before your group starts playing, or overnight. It's slow on a small server: in our tests on 1 to 2 cores, Chunky generated only about 1.5 chunks per second, so a radius of 1,500 blocks takes hours. Start with a smaller radius around spawn and grow it later.
Then keep players inside what you've generated. Vanilla's /worldborder set 3000 (a diameter, so it matches radius 1,500) does that. Players will hit the wall eventually, so agree on it with your group first.
While you're there, view-distance and simulation-distance in server.properties are both 10 by default. Setting them to 8 and 6 cuts how much each player keeps loaded and ticking, and most players won't notice.
Step 3: tune the Cobblemon spawner
Stop the server, open config/cobblemon/main.json and change one key at a time. These names and defaults are from the Cobblemon 1.8.4 source:
| Key | Default | What changing it does |
|---|---|---|
pokemonPerChunk | 1.0 | Lower it (e.g. 0.75) for fewer wild Pokémon per chunk |
maximumSpawnsPerPass | 8 | Lower it to cap how many spawn at once |
ticksBetweenSpawnAttempts | 20 | Raise it (e.g. 40) to try spawning half as often |
pokeSnackPokemonPerChunk | 2.0 | Lower it if players run big Poké Snack farms |
despawnerNearDistance | 32 | Wild Pokémon closer than this to a player never despawn |
despawnerFarDistance | 96 | Wild Pokémon farther than this despawn once they're older than despawnerMinAgeTicks (600 ticks, 30 s) |
despawnerMaxAgeTicks | 3600 | Lower it so unattended Pokémon between those distances despawn sooner |
Two notes from reading the despawner code. First, nothing within despawnerNearDistance of a player ever despawns, however old it is, so a player who goes AFK keeps a crowd around them. Lowering that distance to about 24 helps on servers where people idle. Second, Pokémon a player is busy with (in a battle, for example) are never despawned.
After each change, start the server and check /spark tps again. Small changes are enough; if you go too far, the world feels empty.
Step 4: settings people miss
- Don't add performance mods the pack already has. The official Fabric pack already ships Lithium, FerriteCore, Krypton and Clumps on the server, so adding them again only causes duplicate-mod errors.
- Watch farms and pastures. Lots of Pokémon out in a pasture, item farms and chunk loaders keep ticking even when nobody's nearby. Spark's entity view shows which ones cost the most.
- The watchdog.
max-tick-timeinserver.properties(default 60000, i.e. 60 s) crashes the server when one tick takes longer than that. Setting it to-1turns a crash into a long freeze. That can save a session, but it hides the problem, and a server that truly hangs then stays hung. Use it as a stopgap while you pre-generate, not as the fix. - Same build everywhere. Players need the same pack and version as the server. A Fabric client can't join a NeoForge server. Our Cobblemon server setup guide covers join errors.
Running it on your own PC? Set the heap with -Xmx6G in the start script, leave the rest for your system, and remember that the game and the server then compete for the same CPU.
How much RAM and CPU
RAM: 6 GB for 2 to 5 players and 8 GB for 6 to 10, on both the Fabric and NeoForge packs. Cobbleverse needs the same 6 GB to start and more for bigger groups. For anything outside that, use the RAM calculator.
CPU matters more than most hosts admit. Our walk tests are the reason Packyard doesn't sell Cobblemon below 6 GB: smaller plans ran too close to the lag-and-crash line on fresh land.
Run Cobblemon on Packyard
Packyard installs Cobblemon (Fabric or NeoForge) or Cobbleverse with the right loader and Java, at $1.50 per GB of RAM per month. 6 GB is $9 a month (USD, plus applicable taxes). You can add spark and Chunky yourself through the panel's file manager or SFTP, and make your own backup before you change configs. Your friends join at yourserver.play.packyard.ca, and that address stays the same. Open to the US and Canada (outside Quebec).
Start a Cobblemon server on Packyard, 6 GB for $9 a month
More on the hosting: Cobblemon server hosting.
Cobblemon and the Cobblemon modpacks belong to their authors. Packyard is not affiliated with Cobblemon, The Pokémon Company, Mojang or Microsoft.
FAQ
Why does my Cobblemon server lag when players explore?
New terrain has to be generated on the spot, and Cobblemon's spawner checks the blocks around each player, which can force that generation onto the main thread. Pre-generate with Chunky and add a world border.
Will more RAM fix Cobblemon lag?
Only if spark shows memory near the limit. In our tests the server lagged and crashed with plenty of heap left, because the main thread and the CPU were the limit.
What's the best Cobblemon spawn setting for performance?
Start with ticksBetweenSpawnAttempts at 40 and pokemonPerChunk at 0.75 in config/cobblemon/main.json, then check /spark tps. Change one key at a time.
Why does my Cobblemon server crash with "a single server tick took 60 seconds"?
That's the watchdog: one tick took longer than max-tick-time. On Cobblemon it's usually chunk generation near a player on a slow CPU. Pre-generating fixes the cause; max-tick-time=-1 only stops the crash.
Do I need a lag-clear mod?
Usually not. Cobblemon already despawns wild Pokémon that are far from players or old. Tune the despawner keys first, and add a cleanup mod only if spark still shows entity ticking as the main cost.
Does Cobblemon run better on Fabric or NeoForge?
We haven't measured a difference that changes the size you pick, and both start at 6 GB with us. Pick the loader your players already use.
More guides and posts on the Packyard blog.