revi
AAdmincraft
•Created by revi on 6/18/2023 in #questions
How much memory for 10 online users on a PaperMC server
~61% are chunks, ~3.5% are entities
73 replies
AAdmincraft
•Created by revi on 6/18/2023 in #questions
How much memory for 10 online users on a PaperMC server
in Varoke we install Dynmap automatically, including TLS termination and custom subdomain, but we may need to find a more efficient alternative
73 replies
AAdmincraft
•Created by revi on 6/18/2023 in #questions
How much memory for 10 online users on a PaperMC server
close to 1 GiB
73 replies
AAdmincraft
•Created by revi on 6/18/2023 in #questions
How much memory for 10 online users on a PaperMC server
a ~7% of my heap is filled with Dynmap stuff 🫠
73 replies
AAdmincraft
•Created by revi on 6/18/2023 in #questions
How much memory for 10 online users on a PaperMC server
that's good! it simplifies memory calculations
73 replies
AAdmincraft
•Created by revi on 6/18/2023 in #questions
How much memory for 10 online users on a PaperMC server
if I'm not mistaken, entities are tiny in memory. A high number may cause TPS drops, but they don't require any significant amount compared to chunks.
73 replies
AAdmincraft
•Created by revi on 6/18/2023 in #questions
How much memory for 10 online users on a PaperMC server
so I'll need to identify these classes or packages more precisely before measuring how much memory they're using
73 replies
AAdmincraft
•Created by revi on 6/18/2023 in #questions
How much memory for 10 online users on a PaperMC server
loaded chunks are for sure more than 53% of the heap, but these are represented by different classes from
net.minecraft.world.level.chunk
and io.papermc.paper.chunk
(and probably others)73 replies
AAdmincraft
•Created by revi on 6/18/2023 in #questions
How much memory for 10 online users on a PaperMC server
bigger in memory?
73 replies
AAdmincraft
•Created by revi on 6/18/2023 in #questions
How much memory for 10 online users on a PaperMC server
hopefully these are regular in size 🤞
73 replies
AAdmincraft
•Created by revi on 6/18/2023 in #questions
How much memory for 10 online users on a PaperMC server
if you like a different approach, let's find how much memory is consumed per chunk or entity and then multiply
73 replies
AAdmincraft
•Created by revi on 6/18/2023 in #questions
How much memory for 10 online users on a PaperMC server
that's what happens with servers over 9-12 GiB, when GC hits you hard and may need to tune your flags based on really custom needs
73 replies
AAdmincraft
•Created by revi on 6/18/2023 in #questions
How much memory for 10 online users on a PaperMC server
you can tune your GC configs or even use a different GC implementation, but I'm trying to find something that works for 90% of use cases.
73 replies
AAdmincraft
•Created by revi on 6/18/2023 in #questions
How much memory for 10 online users on a PaperMC server
but that happens regularly, you can ignore that for a quick capacity planning
73 replies
AAdmincraft
•Created by revi on 6/18/2023 in #questions
How much memory for 10 online users on a PaperMC server
and entities and chunks are closely related to player counts, as chunks aren't active if no one is there
73 replies
AAdmincraft
•Created by revi on 6/18/2023 in #questions
How much memory for 10 online users on a PaperMC server
the server can always have a huge farm with thousands of entities, slowing everything down and making frequent memory changes.
but thinking about entities and chunks will give you a good estimate, as that's what causes ~90% of the memory increase when more users join the server.
73 replies
AAdmincraft
•Created by revi on 6/18/2023 in #questions
How much memory for 10 online users on a PaperMC server
If people find this interesting, I'll try to also measure the impact of adding common plugins. Some of them require an almost fixed amount of memory, regardless of users. Others scale with the size of the map, and others with number of users. Others are virtually free in terms of memory.
73 replies
AAdmincraft
•Created by revi on 6/18/2023 in #questions
How much memory for 10 online users on a PaperMC server
but this is just memory, servers with 100+ users will probably hit longer ticks first (due to single CPU constraints)
73 replies
AAdmincraft
•Created by revi on 6/18/2023 in #questions
How much memory for 10 online users on a PaperMC server
mostly because of JVM pauses, but we could find a more or less general formula that will work for < 9-12 GiB use cases
73 replies
AAdmincraft
•Created by revi on 6/18/2023 in #questions
How much memory for 10 online users on a PaperMC server
I'd expect a trend change when hitting ~12 GB of memory usage
73 replies