mojira.dev
MC-23085

Chunks near spawn don't unload

Chunks near spawn do not unload.
Unoccupied overworlds do not unload.

Simply put: If there is no one on the server, then the server should be spending it's time updating zero blocks, zero entities, zero anything, and just waiting for either: 1, a connection on the socket for someone checking in, or 2, every 1/20th of a second seeing that it has nothing to do.

More to the point, if there are two of us on the server, off in the distance, then the only area of the map that should be loaded / consuming memory and CPU are the blocks near us, not anything near spawn where we haven't been in half an hour.

Similar issues exist with the nether being loaded even if no one is there (message logged about the nether on server startup), or the overworld still being loaded even if everyone is in the nether.

Please note: I constantly see 4 region files updated every minute that the server is up and running, even when no one is on. These are the region files containing the chunks around spawn. This means that every hour my backup is making a duplicate of "changed" files that have no new or altered information.

Linked issues

Comments 3

Those are called spawn chunks and are always loaded. It's just how Minecraft works.

I agree that they are always loaded, currently.
I agree that this is how minecraft works, currently.

"Works as intended"? It seems more like a side-affect of "Designed for single player, multiplayer added later" than "Designed to always keep stuff in memory even if not used".

"Won't fix" as a resolution I can understand.
"As intended" I think is the wrong resolution.
"How it has worked since we started doing multiplayer" I can agree with.
That doesn't make it "as intended" – that makes it potentially a bug.

And actually, I just realized another issue, perhaps more serious:

For an SSD drive, minecraft is constantly re-writing files for no reason. That will kill an SSD drive over time.

Keybounce

(Unassigned)

Unconfirmed

Minecraft 1.5.2

Retrieved