Cuberite Forum
Performance - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Cuberite (https://forum.cuberite.org/forum-4.html)
+--- Forum: Discussion (https://forum.cuberite.org/forum-5.html)
+--- Thread: Performance (/thread-1136.html)



Performance - Yaneek - 05-19-2013

Hi!

I know McServer have such better performance than a normal Java Server, but i want to ask you how much ram can that server take with some plugins, one world and ~30-40 players.


RE: Performance - xoft - 05-19-2013

Hard to answer, we're still missing a decent chunk manager, so mcserver can actually take as much ram as available. Once we implement the chunk manager, you'll be able to calculate the absolute max ram requirements easier. Generally speaking, the mcserver core needs about 20 MiB base, plus about 20 MiB per each world, and each player can use up to 60 MiB for their chunks. These are very rough figures, so don't take them too literally.

If a player goes "exploring", the amount of ram used can go up to 1 GiB for that single player. That's why we need a better chunk manager Smile


RE: Performance - tonibm19 - 05-19-2013

(05-19-2013, 06:11 PM)xoft Wrote: Hard to answer, we're still missing a decent chunk manager, so mcserver can actually take as much ram as available. Once we implement the chunk manager, you'll be able to calculate the absolute max ram requirements easier. Generally speaking, the mcserver core needs about 20 MiB base, plus about 20 MiB per each world, and each player can use up to 60 MiB for their chunks. These are very rough figures, so don't take them too literally.

If a player goes "exploring", the amount of ram used can go up to 1 GiB for that single player. That's why we need a better chunk manager Smile
I'll try to make a plugin that unloads unused chunks. How do UnloadUnusedChunks work?


RE: Performance - NiLSPACE - 05-19-2013

But you can at least play with about 4 players on a Raspberry Pi if you are not moving too much.Wink


RE: Performance - xoft - 05-19-2013

In recent versions, calling UnloadUnusedChunks() isn't enough, because most of the chunks are still not saved, so they wouldn't unload anyway. You need to call SaveAllChunks() and then Unload.


RE: Performance - tonibm19 - 05-19-2013

I made a plugin that unloads unused chunks with /unloadchunks.
I'm not sure if it works, but it don't give any error, and for me the chunk count is decreased.