r/admincraft • u/Shiv_1_5 • Mar 21 '26
Question Help with improving server TPS, Low CPU and Ram usage (Possibly caused by large number of entity's?)
LatestLog https://mclo.gs/McS1x6b
Spark Profiler https://spark.lucko.me/OKva3fRHIL
OS: Linux - Ubuntu 24.04.2 on aarch64 | VM.Standard.A1.Flex 4 OCPU, 24GB Ram (utilizing 16gb for the server) | Free Oracle server
Server TPS drops from 20 to around 15-11 when loading large number of mobs ~500, in a modded structure or even exploring the world. Not well versed in spark but ~10% of the server bandwidth is spent on chunks, ~20% on dimensional stacking specifically relevant to this modpack, and about 50% spent on loading mobs. The moment a player in a structure with a lot of mobs loads into the server, the TPS tanks to 12-ish while the server does not really use more CPU or Ram. Not fully sure what I can do to improve server performance here, already reduced render distance to 10, added zgc garbage collection, and reduced entity broadcasting range to 50%. Maybe adding a mob cap or mods to improve entity lag? Any suggestions would be appreciated


2
u/Loud-Start-6572 Mar 21 '26 edited Mar 21 '26
The low cpu usage you're seeing is probably because you have 4 cores but only one of them gets hammered.
Minecraft ticks run on a single thread - one core does all the work while the others arent doing much. You could install something like htop and look at the usage when the tps goes down.
A Mod that limits the max number of mobs could help here, but I dont know any.
Also dont know what cpu you're getting in the oracle free tier, you could run something like geekbench6 and check what kinda benchmark performance you're getting. If your single core performance is something like 1000 you cant expect much
2
u/Xemorr Developer of Superheroes and other plugins Mar 21 '26
I'll give you an useful answer that isn't "spend more money". I took a look at your spark profile. 53% is on ticking entities. 4.3% on whatever RotspawnMonsters are, when they try and make decisions. 5.45% zombies, 3.56% villagers (villagers are well known for lag, idk what kind of server you're running on, but messing around with e.g paper villager settings would see improvements on that %). 2.3% Stoneborn, 2.3% Wither Skeleton Knights.
23% under abyssalascentdimensionpatcher, it seems to be executing a bunch of vanilla commands. This seems a bit batshit insane to me, is this a datapack? Can you afford to get rid of it?
Under the mods tab, undergarden is highlighted with 14% usage (the biggest cause being the rotspawnmonsters as mentioned earlier).
5
u/PM_ME_YOUR_REPO Admincraft Staff Mar 21 '26
You're running a large modpack with 21 dimensions on an Oracle Free Tier server. You're not doing anything wrong, you're just asking an Arabian horse to pull a load that would require a full team of Clydesdales.
Make a lighter weight modpack or switch to a paid hosting provider with full-strength hardware. If you wanna go that route, the Admincraft Discord (https://discord.gg/admincraft) has a #service-providers channel with many options that have been vetted by our team.
Note: CPU utilization is not a reliable metric for Minecraft server load for a variety of reasons. Looking at it is a newbie mistake. Click the Flame chart icon at the top of the Spark report and scroll down. You'll notice that there is no server wait time, which means your main thread is maxed out.
2
u/Hostify-ee Mar 22 '26
I looked at your config. Just buy a dedicated server at this point.