Skip to content
pop4959 edited this page Sep 25, 2020 · 61 revisions

Frequently Asked Questions

How can I make chunks generate faster?

Chunky is designed to automatically run as fast as possible by default given the server that it is running on. So if you want it to run faster, you need to use a faster server, which could mean either upgrading the hardware or software that it is running on. Here are a few things that are known to have the biggest impact on chunk generation performance:

  • Use a fast CPU with plenty of threads available. If your CPU is slow, chunk generation will also be slow. If you don't have enough threads, it will also be slower, as on 1.16.3 the server can utilize about 4 threads per world being generated simultaneously.
  • Use an SSD. Random read/write speeds are much better on SSDs, which greatly benefits chunk I/O.
  • Give the server enough RAM. At least 2GB, but 4GB+ recommended. Shouldn't matter much past a certain threshold, you just need enough.
  • Use server software that supports asynchronous chunk generation, like Paper. This can make a huge impact on servers using a CPU with plenty of available threads, as it will leverage them.
  • Use Aikar's flags in your server startup script. The only things you should change unless you know what you are doing is the amount of memory and the name of the jar. These flags help with java memory garbage collection, and since chunk generation aggressively cycles through memory, this can be a huge help.

Common Warnings & Errors

java.lang.OutOfMemoryError: GC overhead limit exceeded

There are two main reasons why you could be getting this error. One is if you are not allocating enough memory to the server, in which case you just need to increase the amount. The other is if java memory garbage collection is not able to keep up with the rate that chunks are generating. You can usually tell if this is happening by looking at your server's timings report. If this is the case, you should try to use Aikar's flags (mentioned above) if you aren't already.

Clone this wiki locally