Jump to content

Chunks not unloading when loaded naturally by players


Recommended Posts

While using Forge version: (server, windows), chunks loaded naturally by players will not unload.  This, of course, would cause many thousands of chunks actively open without ever unloading until the server was restarted.  The server.properties view distance was changed to 6 from its default.  It was having the view distance changed to a low number that caused this behavior. 


While this has an obvious work around, it was an insidious bug nonetheless due to the view distance property being reduced a natural "fix" for high tick times.  Changing the view distance to 10 made the chunk unloading work correctly.  Other values or versions were not tested.  This behavior was noted on a fresh install of the above version without other mods on the server. 


This post was created so that other users may be able to search and find this fix as well as to note this behavior to the maintainers of Forge. 

Link to comment
Share on other sites

I'll look into it, however, we do not modify anything related to view distance that would cause this, and if it is a issue it would be in vanilla.


How are you editing the view distance?

What values are you setting it to?

How are you tracking these 'abandoned chunks'?

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Link to comment
Share on other sites

Thank you for the reply.  I am editing the view view-distance property in the server.properties file.  Originally, I set it to 6 (chunks) so that there would only be roughly 169 chunks open per player.  This tested fine in the get go because I hadn't tested it over distances traveled.  Later, there came to be expanding memory use coupled with crippling lag over time.  I had figured that this was due to the many mods I was using at once.  I had done extensive testing with java optimizations that did seem to work some but did not stop the ballooning memory consumption and lag.  Eventually, I suspected chunks were not unloading and installed ProfessorMobius's Opis because it gives chunk data and a graphical map.  Sure enough, after travelling a few hundred chunks in one direction, there were ten thousand chunks counted and the graphical map showed a trail of open chunks.  There was only one player (the operator) and these chunks persisted after hours of wait time.  Afterward, the view-distance in server.properties was set to 10 and then tested.  The chunks were only loaded around the players and it wouldn't leave a trail of them when travelling.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.