Still loading

SBlock holds a map and compass beside a gridded Minecraft landscape.
Minecraft · Guide

Pre-generate chunks with Chunky and spark

Pre-generate a planned world area with Chunky and use spark to investigate server performance.

On this page

Download Chunky, spark, and Paper reference docs

Generating new terrain while players explore can add load to a server. Pre-generating the intended play area with Chunky can reduce that work during play; use spark to investigate performance issues while they occur. Neither tool guarantees a particular performance result .

Install a compatible Chunky build in Paper’s plugins/ folder and restart. Paper 1.21 and newer bundles spark; consult Paper’s profiling documentation for older versions or a standalone plugin . Run pre-generation while the server is running, preferably during a quiet period, and monitor available disk space and performance.

Pre-generation and performance profiling downloads

Chunky official plugin iconChunkyBackground world chunk pre-generation supporting vanilla world borders.Modrinthspark profiler official plugin iconsparkLive MSPT monitor, CPU flame-graph profiler, and heap analyzer.ModrinthPaperMC official project iconPaperMCPaper server setup and documentation.Docs

Set realistic world borders before running Chunky

Choose a generation area based on your world, expected exploration, and available disk space. Estimate storage with a smaller test area and leave room for growth and backups; actual size varies .

For an example border centered at 0 0, /worldborder set 10000 sets a diameter of 10,000 blocks. The matching radius is 5,000 blocks. Run the border commands in the intended world, then select that world and import its border with /chunky worldborder before starting .

Set vanilla border bounds and pre-generate world cleanly with Chunky
/worldborder center 0 0
/worldborder set 10000
/chunky world world
/chunky worldborder
/chunky start
/chunky progress

Monitor live TPS vs MSPT cleanly with spark

Minecraft normally targets 20 ticks per second, leaving 50 milliseconds per tick. TPS averages can hide brief spikes, so review tick times as well as TPS. Run /spark health with suitable permissions to inspect the server’s metrics, and profile while the problem is occurring .

Data table

Interpreting spark /spark health metrics on live Paper servers

Interpreting spark /spark health metrics on live Paper servers
MetricHealthy targetWarning zoneNext step
MSPT (median / 95th)Under 30 ms45 ms to 55 ms+Capture a 60s spark profiler trace
TPS20.0 steadyUnder 19.0 during gameplayCheck profiler tree for single hot plugin/chunk
GC Stop / OverheadMinimal brief young GCsFrequent OldGen pausesReview garbage collection and heap usage with appropriate diagnostics.
Disk free spaceEnough space for growth and tested backupsSpace is running low for your workloadPause generation and free space without deleting needed backups.

Capture 60-second CPU profiles using /spark profiler

When MSPT creeps above 40 ms during crowded peak play, stop guessing which plugin or farm hurts ticks . Execute /spark profiler start --timeout 60 from console, let normal gameplay continue undisturbed for one minute, and click the generated web viewer link printed by spark .

Expand Server thread inside the interactive call tree: look for high-percentage lines showing entity ticking (Villager, Hopper, Item), chunk generation (ChunkMap), or a specific misbehaving plugin event listener rather than removing random plugins blindly .

Run spark live health checks and 60-second profiling snapshots
/spark health
/spark profiler start --timeout 60
/spark heapsummary
/spark tps

Also pre-generate Nether travel corridors cleanly

Consider pre-generating the Nether and other dimensions players will explore. Select the actual world name with /chunky world <world> and choose an area appropriate to that dimension and its storage budget. Check the selection before starting .

Performance readiness launch checklist

After generation, check free disk space and confirm that spark is available. Capture a profile while a performance problem is occurring; review it before changing server settings .

Pre-generation and profiling verification steps

  • Match /worldborder set size cleanly to your planned Chunky radius .
  • Pre-generate the intended area in each world, using the correct world name and a radius suited to available storage .
  • Confirm spare SSD headroom remains clean after chunk files settle on disk.
  • Confirm spark is available and test its health and profiler commands .
  • Monitor tick-time percentiles under representative load and investigate recurring spikes.

Frequently asked questions

Can I pause Chunky mid-generation if players want to play and resume overnight?

Use /chunky pause to pause the task and /chunky continue to resume it later. Keep backups and monitor logs and disk space .

Why does 19.8 TPS still sometimes feel laggy when MSPT hits 55 ms?

If tick spikes jump past 50 milliseconds for several ticks in a row while averaging near 20 TPS over one minute, combat hits and blocks feel rubbery; always watch MSPT percentiles in /spark health.

Does keeping spark installed hurt Paper performance during combat?

Paper 1.21 and later bundles spark. Profiling has some overhead, so measure on your server if performance is a concern.

What happens if Chunky fills 100% of my VPS storage drive?

A full disk can prevent world saves and cause data loss or server errors. Check free space before and during generation, pause Chunky if space runs low, and maintain tested backups.

Final step: scale cleanly with a Velocity proxy

Java SMP server setup guidePaper plugin troubleshooting

Sources & evidence

Was this article helpful?

Share this post