Memory and startup
Vanillite should run on machines with very little RAM, and use more when it is there.
RAM budget
Vanillite reads the limits of the machine at start: the CPU and memory limit of a container (Docker --cpus, Pterodactyl's CPU and memory limit), or the CPU cores it may use. It writes them to the log (Hardware budget: …). You can also set them yourself with performance.budget.cpu and performance.budget.memory (see Performance settings).
- Caches: they are sized from the memory limit. On a small machine they shrink and the server still runs; on a large machine it uses the extra RAM to be faster. Example: the chunk read cache (
storage.read-cache) is at most 1/32 of the memory limit per dimension, so 32 MiB instead of 64 MiB at 1 GiB. Chunks read ahead that nobody asked for within a minute are dropped from it. - Freed memory goes back to the system. About every 30 seconds the server hands memory it no longer uses back to the operating system, so the RAM figure of a panel goes down again after a burst of work. This job goes before the chunk jobs, so it also runs on one core while a player explores and generation never catches up. It takes a few milliseconds. On Linux this covers the system's own allocator too, which serves the Java runtime of the Bukkit layer and other libraries.
- Less than two cores: background work (world generation, lighting, saving) runs between ticks and below the CPU quota, so the tick itself stays smooth, and the network uses one I/O thread. See Threads and ticks.
- Chunks waiting to be saved: when a chunk unloads, it is turned into its storage form by a background job, and until then the whole chunk stays in memory. On one core, a player who explores fast makes new chunks faster than the machine can finish old ones, and these waiting chunks used to pile up. Above a limit (1/32 of the memory limit per dimension, between 8 and 64 MiB), their jobs now run before world generation.
/vanillite memorycounts the waiting chunks. - Cold chunks: loaded chunks that do not tick (the outer ring of a player's view and everything beyond the simulation distance) are packed in memory after
performance.chunks.cold-afterseconds, with LZ4 or zstd (performance.chunks.cold-packing: off in thevanillaprofile,lz4inpaper,zstdinperformance). A packed chunk is unpacked when something reads it again, which costs some microseconds once. How it works: Chunks and networking. - Memory pressure (only with a memory limit):
performance.overload.memory-percentwatches the server's RAM once a second. Above that share of the memory limit (85 % in theperformanceprofile, off in the others) the world's view distance goes down one chunk at a time, everystep-seconds, to at mostperformance.overload.min-view-distance(6). Below that share minus 10 it gives the chunks back, one every twostep-seconds. Players see fewer far chunks meanwhile; the game is the same. Its other settings: Performance settings.
The budget only changes when work runs, never its result: the vanilla profile stays exact. (Memory pressure and the packed chunks are deviations that the paper and performance profiles choose; they change what is kept or shown, not the rules of the game.)
Status: built. The budget is first of all tuned for the CPU; sizing caches from the memory limit grows with each new cache. In the developers' own load test on one core and 1 GiB, the chunk limit lowered the peak RAM from 862 to 578 MiB. After the hand-back moved before the chunk jobs, the RAM in a test of players exploring stayed flat after warm-up at about 520–570 MiB, where it had grown steadily before. These are the developers' own local checks, not published benchmark runs (Small hardware: 1 core and 1 GiB). Cold chunks and memory pressure have no published measurement yet.
An empty server frees memory
When no player has been online for 60 seconds (performance.memory.release-when-empty, see Performance settings), the server gives back what it can build again: the tables of the world generators, loaded structure data, kept structure starts, prepared chunk packets and spare table space. It also closes the region files nobody uses and drops the chunks read ahead. The background workers are replaced by fresh ones, and every long-lived thread hands back what its own memory allocator still keeps. The memory goes back to the operating system. It repeats while the server stays empty. The first time it also runs 2 seconds after the start if nobody joined, so the tables built for the spawn area do not stay for a minute (about 40 MiB in the developers' own check).
What a join needs most is built again at once: right after that release at the start, and whenever a client pings the server list, the server builds the advancements and the spawn world's generator again in the background. So the first join no longer waits about a second for the advancements to load (developers' own check, not a published benchmark). The rest comes back when a player logs in: the tables of every world that lost them are built again in the background, while the client is still configuring. Chunks that are already on disk load at once; only chunks that must be generated start a moment later, and usually not even that. In-game behaviour does not change.
With performance.chunks.warm-spawn (on in the paper, spigot and performance profiles) the 9 × 9 chunks around the world spawn also stay loaded, so the first player finds them ready. That costs the memory of 81 chunks.
Status: built. The effect is not yet part of the published benchmark runs (see Memory and startup numbers): the idle figure there is from before these releases.
What else helps
Chunks are kept in the compact network format, and entities are stored in tight columns. Each connection needs little memory of its own: the compression memory is shared between connections, and buffers are given back after a burst. Structure data (villages, bastions and so on) is loaded when a structure is built, not at start, and the memory for the strongest compression level of the own world format is released right after use. Together this brought idle RAM from 282 MiB to 74.6 MiB between two benchmark runs of 2026-11-27 (the second ran on the new benchmark server, so this is not a strict before/after; see Memory and startup numbers).
World generation and lighting reuse their work buffers from chunk to chunk instead of allocating new ones each time. Even with players online, the server frees these buffers after 30 seconds without a chunk job. This changes no result. It is a change of the code; no measurement of its RAM effect is published yet.
The same goes for the chunk packets the server keeps for the players. Each one used to be kept twice: as the finished compressed message and as the uncompressed data it was made from (16 to 32 KiB per chunk). Now only the compressed message stays in the cache. If it is needed in another form (another compression threshold, an older client, a plugin that listens to packets), it is unpacked again on the spot. A connection whose writer has sent nothing for one second also gives back its send and compression buffers. This changes no result. It is a change of the code; no measurement of its RAM effect is published yet.
The tags of the data packs (lists such as "all logs") are no longer copied for the game at start and on /reload: the loaded packs and the game share one copy. In the developers' own check this saved about 1 MiB at idle.
The loaded Vanilla data is kept in a more compact form too. The registry files are stored without their indentation (about 40 % smaller; a broken file still reports its position in the original text). The English language table is one block of text with a sorted index instead of a map of many small strings. Structure pools share their processor lists and jigsaw blocks instead of copying them for each element, and loot tables, advancements and recipes are trimmed to what they need. Nothing changes in the game. In the developers' own check the live data after one player walked for 2 minutes went from 92.8 to 85.2 MiB. The goal of about 90 MiB of RAM for the whole process with one player is not reached yet: the same check showed 142–146 MiB with the standard system allocator, and about 60 MiB of that is memory the allocator keeps after it was freed. These are developers' own checks, not published benchmark runs.
In the newest published load test Vanillite needed about 520–580 KiB of RAM per player with 2000–5000 players, and about 8× less RAM than Paper at 100 players (see Memory and startup numbers).
Docker image: it also sets the memory allocator to commit memory only when used and to return freed pages at once. In the developers' check this saved about 15 MiB at idle and 50–100 MiB under load and while chunks are generated, and the server started faster. See Installation.
Fast startup
Block, item and registry data is turned into ready-made tables when Vanillite is built, so the server does not need to read and parse them at every start.
At start the server also spreads the work over all cores: the dynamic registries and tag files are read in parallel, loot tables and recipes are parsed on their own threads, and the searches for strongholds run in parallel (with the same positions as before). The tables of the world generators are built by a background job of each world instead of before the server says Done. A new world in the own format also compresses its id table at a lighter level, which used to take seconds at every new world's first start. The initial search for the spawn point works again at start (before, it gave up on every chunk and fell back to a fixed place). The startup log shows a time per phase at debug level.
Status: built. The published benchmark runs below are from before these changes. In the developers' own local checks (a few runs on one machine, not the benchmark suite) the best warm start of an existing world went from 1.03 s to 0.33–0.37 s on 4 cores and from 1.33 s to 0.35–0.54 s on 1 core, and the cold start on 4 cores from 6.75–17 s to 3.1–3.8 s. Treat these as an estimate until a benchmark run shows them. A cache for data packs is Planned.
In the benchmark of 2026-11-27 (benchmark server, 4 cores and 8 GiB per server) Vanillite started an existing world in 1.24 s (Paper 13.4 s) and used 74.6 MiB of RAM at idle (Paper 1392 MiB). All numbers: Memory and startup numbers.
See also: Performance settings, Memory and startup numbers.
Next: Replaceable systems.