Skip to content
pop4959 edited this page Jul 3, 2022 · 61 revisions

Frequently Asked Questions

Can I pre-generate chunks faster?

Chunky is designed to generate chunks on the server as fast as it can by default. The limitation is usually on the server itself, so if you want to speed things up you will need to optimize your server. Here are a few things which can help:

  • Use a faster CPU. This is probably the most common bottleneck. CPUs with excellent single threaded performance tend to work best. For example, the Intel Core i9-12900K or AMD Ryzen 9 5950X would both be solid options.
  • Check that the number of threads available to your server is sufficient. This is particularly relevant for servers using Minecraft hosting plans or a VPS. Minecraft will make use of multiple threads for world generation, and not having enough can cause severe slowdowns even if you use the best CPU possible.
  • Store the server and world on an SSD. Traditional spinning hard drives (HDDs) usually cannot keep up with world generation.
  • Make sure to allocate enough RAM. At least 4GB is recommended. Not only can this slow down generation, but the server may eventually crash if you don't have enough.
  • Use Paper which boasts asynchronous chunk generation and a custom lighting engine, both of which can have a large positive impact on chunk generation speed.
  • Use Aikar's flags as your server's start script. These flags help tune the Java garbage collector, which is responsible for freeing up memory on the server as chunks are generating. In some situations this can slightly improve chunk generation speed.
  • If using Paper, consider adjusting the number of worker threads used by world generation. This can be done by adding the -DPaper.WorkerThreadCount=X flag to your start script. You should not set X higher than the number of threads available to your server. It is recommended to remove this flag when you are done generating.
  • If running a Fabric server, try using Lithium for a general boost to performance.
  • If using a map rendering plugin or mod such as Dynmap, BlueMap, or Squaremap, temporarily disable or remove it while pre-generating. This will generally speed things up, and doing your render afterward tends to produce best results.

Can I pre-generate a world that already exists?

Yes, and it's completely safe. Chunky will skip chunks that already exist, and generate any missing ones.

Why is Chunky using all of my RAM?

In most cases it isn't actually Chunky that is using all of your server memory. The chunk pre-generation process itself is very memory intensive as the server will rapidly load and unload chunks. This is fully expected, and is normally not a problem. If your server is crashing, consider increasing the amount of RAM allocated to the server, or reduce it if it's possible you may be over-allocating. Aikar's flags are also recommended which will pre-allocate the memory for you.

How much disk space will my world use?

You can use a tool like Jacob Bashista's World Size Calculator to get a rough estimation for default world generation. In general, note that world size is not linear, so each small increase in radius results in a much larger overall world. The type of world generation being performed is also a factor. For example, the Minecraft version, dimension, actively used mods, etc.

Can I pre-generate a world using plugins, mods, and data packs?

Yes, most if not all custom world generation will work. This is due to the fact that Chunky doesn't directly generate the chunks itself, but instead delegates this work to the server. If there is a problem it is usually caused by a configuration issue or a problem with the custom world generation you are using. Also note that custom generation tends to be slower than Vanilla and can take much longer to pre-generate.

My custom world generation is not working!

As mentioned above, Chunky isn't directly responsible for generating the chunks. Check to make sure that any modifications are compatible with your server. Also note that modifications will only take effect after they are installed, so you may need to create a new world or generate new chunks to see their impact. Data packs in particular can be tricky, as you may need to create the world and datapacks folder to install the pack before generating the spawn.

My map isn't updating!

Maps rendered by another plugin or mod such as Dynmap, Bluemap, or Squaremap will typically not automatically update themselves after you run chunky. Sometimes you will need to trigger a re-render manually. See map rendering and trimming chunks for more details.

Trim isn't working.

A common pitfall with trim is that it cannot delete chunks that are currently being loaded by the server. This includes chunks that players have loaded or recently loaded in-game, the spawn region, or any force loaded chunks. This is because loaded chunks will be re-saved to disk when the server shuts down. Usually if you make sure chunks aren't loaded and try again it will work.

Known errors

Unknown registry key

No key position_predicate in MapLike

These errors occur most frequently when you are upgrading a map from an older version of Minecraft, and are usually harmless.

java.lang.IllegalStateException: Asynchronous ChunkMapDistance::addPriorityTicket!

java.lang.IllegalStateException: Cannot add a chunk to a region which already has the chunk!

These errors have been known to occur on outdated servers. If you see this, make sure your server software is up-to-date.

java.lang.OutOfMemoryError: GC overhead limit exceeded

Consider increasing the amount of memory you give your server. Also see "Why is Chunky using all of my RAM?" above.

100% CPU usage detected. Mostly caused by server crash. Restarting Gameserver. (SIGTERM)

Some Minecraft server hosts will automatically kill servers with higher than normal CPU usage. This is a given for pre-generation, as higher CPU usage is expected. The only solution is to politely ask your host to remove the restriction, or switch to a better host.

Nag author: 'pop4959' of 'Chunky'

The server will show this warning if tasks aren't shut down quickly enough when the server is stopped. Usually this happens because the chunks that started generating before you stopped the server have not finished yet. This is not a bug, as the server will still have to wait until all chunks are done before shutting down. If you still wish to avoid this, run chunky pause and wait for the task to complete before shutting down your server.

Clone this wiki locally