Fabric server 1.20.1 Overloading?
8 Threads Intel Core i9 12900HK
12Gb RAM
I have a Fabric server that currently only has 10 active players. I have multiple optimization mods, I've loaded the first 15,000 blocks from spawn in every dimension and the server still gets overloaded.
Mods:
54 Replies
!spark
Spark Profiler
Spark can be used to see why your server or client is lagging.
Users can share a spark report via
/spark profiler start --timeout 300
which creates a report after 5 minutes. The spark report is useful in debugging why your server is lagging, so ideally you should always provide one while asking for support.
Download | Website | Docs
Admincraft Canned Responses
On it please give a sec
I didn't have it installed previously so I have to reboot and wait for the overload to occur.
just make a quick 5 minute profiler, no need to wait for lag
Id like to check for something
oH OKEY
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
lower the view distance to 12 or less and itll be fine
I will later, rn there is to much people online
Okey the server still gets overloaded with 12 render distance and 5 players
How much does it get overloaded by?
40ticks
Im runing a profiler rn

oh that’s Really not much to worry about
I guess so, in fact I can tell the server isn't affected much, but this is happening with 5 people online, I'm a little worried about what will happen to the average 10-12
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.

Yeah it doesnt get better
Okay, I've been trying things and haven't gotten anywhere. I've increased the RAM, Threads, changed flags, made a backup, and changed mods and datapacks. But when I have 4-5 active players, it starts to overload. At 8-10, the MSPT goes up to 70-80, and from then on, it gets worse.
Hey I’ll take a look at your spark in a sec
I'd try to get rid of the command blocks and/or datapacks that you can. Specifically the one running /clear if possible

the commands are taking up about 1/3rd of the total tick time
could be datapacks
I did say datapacks :P
fuck sorry
am tired
:(
all good
I have 4 bigs datapacks, Terralith, Stellarity, Incendium and BlazeAndCaves
Although in reality the first 3 are in mod form
All of them are a "fundamental" part of the server, I wouldn't know how to optimize them so that they don't affect performance.
I think minecraft has a command to profile datapacks built in, but removing the ones that are doing
/clear
should be able to bring your tps up enoughLet me run a profiler now
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
That looks pretty good to me
FYI 16% of the tick is still commands, and ~29% is mobs
Okay, I've been checking things out, but I still don't know how to fix it. So, at this point, I realize the problem lies with the mobs and datapacks. But I can't remove the datapacks (even if I wanted to). If I could edit them (I have some knowledge with datapacks), I would try to remove the parts I don't want, but since they're in the form of mods, I can't access them.
I reduced the mobcap to 50 but last night when I went to sleep the server overloaded again when the usual 10-12 players came in
I can increase the server capacity to my liking but I wouldn't know how to do it effectively, I would appreciate some advice on what I could do.
If you can run /perf start we can take a look at the profiling.txt file
on it
rn im the only one on the sv
So idk
yeah, stellarity is 17% and incendium is 8%
there's not really much you can do about that
Can I somehow increase the capacity of the server to make it more efficient?
ehm
you could get better hardware I guess
the issue with these datapacks is that they run a lot of commands every tick
so it scales
oh wait, they're on a laptop cpu?
i9-12900HK doesn't always mean laptop
but
you could technically get better single thread perf
they're typically in mini PCs
well, it is a mobile cpu
oh what
oh you're right
yeah

he could also be having his server pushed to the E cores
no way to really know though
So there is no way then... um okey
is this self hosted, or are you paying for the hosting?
Self hosted
you could try to force minecraft to only run on the p cores
I have this server on a Pterodactyl panel that I installed on a MiniPC. I don't know how to move the server to the P Cores.
lscpu
will tell you which core numbers are which, then you can setup CPU pinning
tbh i dont see much XD


I thought a 12900hk should have 20 threads, not 18
you can just assume it's
cores 0-5
idk what number the hyperthreaded cores areI should say that the machine where I have the server is a virtual machine within a proxmox
Sorry for the cofusion
oh, then you'd have to setup the cpu pinning on the vm
but I honestly have no clue how you'd do that in proxmox
lscpu should look different if you run it on the proxmox host though
I'll look into it, I had to create a separate Ubuntu virtual machine to add a WireGuard to connect to the machine remotely.
That's why I had to move it to Proxmox, mostly for ease.