06-01-2012, 06:03 AM
I'm doing a 60x60 chunk generation and MCServer spikes in memory usage - easily reaching 1 GiB RAM and crashing due to insufficient free RAM. I think it'd be a good thing to queue all chunks for saving and unload saved chunks each time you get 100 chunks generated.
Also you might want to check the world storage queue length if it isn't too overtaxed.
You need to utilize cWorld:SaveAllChunks() (already exists) and cWorld:UnloadUnusedChunks() (Not yet exported to Lua, I'll be committing that soon to the svn and uploading a nightbuild with that support)
Also you might want to check the world storage queue length if it isn't too overtaxed.
You need to utilize cWorld:SaveAllChunks() (already exists) and cWorld:UnloadUnusedChunks() (Not yet exported to Lua, I'll be committing that soon to the svn and uploading a nightbuild with that support)