Server TPS very low on a pretty heavily modded Fabric Server
Hey there, I've been having issues today with my MC server. I can't really tell if it's the garbage collector having issues or what but whatever I try, my TPS seems to be averaging at around 12.
We have around 9-12 people on the server on launch day, and the server has not been keeping up with the player amount. We're also running around 160 Mods on the server.
The server I'm running has 16GB + 6 Cores (Ryzen 9 5950X acording to the Berrybyte which is the host of the dedicated server)
I've tried looking at Spark and did find a mod that seemed to cause quite a few issues, but it wasn't enough to get the TPS up again after removing it.
Now my question is: What else could be the cause of this? I assume I'm already a bit higher with the server specs than needed. Neither the CPU nor the Memory seem to be maxing out, but I still get the messages of XXX Ticks behind.
Here's the Spark Result: https://spark.lucko.me/91UX3zfaeX
Hope someone can help me out of here. Thanks!
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
68 Replies
Spark Profile Analysis
❌ Processing Error
The bot cannot process this Spark profile. It appears that the platform is not supported for analysis. Platform: Fabric
Requested by zekayi#0
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close
!close
!solved
!answered
Requested by zekayi#0
ValkyrienSkies, apoli and pehkui are one of the laggiest mods
ouch
Do you have any datapacks or command blocks?
20% is used by datapacks/command functions/mods that are just datapacks
Also yeah, your host machine is running out of ram
(or command blocks)
^
consider finding mod alternatives or removing them outright
Command blocks no, datapacks possibly only those that are repackaged into Fabric Mods
But not actual datapacks loaded into the world
Your view and sim are too high. 8 view 6 sim max
Something is running commands
telling ur players to get the bobby mod and cranking that view distance down is op af. players wont even know a difference
^
Hm, the modpack I created for them has distant horizons preinstalled, so I don't know how bobby interacts with that
Wrong reply, mb
oh if you have DH that’s fine
although I should ask the host if theres something he can do about the physical memory running out
I would
What host?
If you’re willing to share
Its Berrybyte, wrote it in the post, might've been buried
oh mb
and interesting
Honestly, didn't have issues last year when we had a 10G server with lighter mods
Are you sure you have no command blocks running
There is something running commsnds
probably just a datapack wrapped as a fabric mod
I mean as long as there are no players who have cheated in some command block without any OP, I'm fairly certain there is no command block.
Since you asked about datapacks, those would also show up the same as datapacks in spark if they're repackaged as fabric mods?
terratonic maybe?
have you pregenerated?
That I havent. Was a little overzealous when it came to launching the server so I didn't have Chunky running before letting people in. I did want to try that when most people left the game
I would recommend you do so, and set a worldborder to stop players going further
depending on the size of the server, sometimes its just worth it to be hella laggy for a day while u pregen then be chillin
iirc there is an add on that stops and restarts chunky tasks when players join / leave
Modrinth
Chunky Extension - Minecraft Mod
Ce (Chunky-extend)
A small extension for Chunky, auto start and stop Chunky if players are online or offline.
Yeah, should be chunky extended, which i also installed, but that one's commands are not doing anything
Wrong reply again
But terratonic is not installed, nope. Only terralith
I am very sure I have some other datapacks wrapped as fabric mods in the server. But I wouldn't think any of them would have this many issues
Or rather be ressource intensive
yeah minecraft just isnt optimized at all
Sorry. It’s because I saw ‘tectonic/terratonic’ in spark’s datapacks section
yeah datapacks are just not great
Pregeneration should help with some lag
Consider getting ServerCore
Alright so I'll try
- informing the host about the memory running dry on his machines
- pregenerating during the night/in the morning
- check if I can get Chunky Extension running, maybe the version is just old.
- see if I have any datapacks that are repackaged as fabric mods
- Install ServerCore
- Install Noisum
- Install Faster Random
Any other suggestions?
Does noisum work with terralith?
https://modrinth.com/mod/noisium
not 100% sure
Doesn't really seem like it
it says most if not all, then just highlights some popular ones
that isnt an exclusive list
Actually mb, those are compatibilities that are highlighted yeah
I could try getting that as well
i would just always recommend making sure u take backups before adding any mods especially ones that impact the world like this
and make sure u backup often!
Yeah, thats a given, I got a daily schedule running and I do my own backups when doing bigger changes. Thanks for the headup though!
Either way, I guess I should try the list I have right now and hope that we'll be better off later. Unless theres another suggestion, really taking anything right now
Modrinth
Faster Random - Minecraft Mod
An up to 100X* faster Random Generator implementation for Minecraft, with near vanilla parity.
Gotta be honest man, I doubt we have any dedicated redstoners that have gone further than making a simple doorbell
then yeah, check out faster random
Alright then, got a sizable list of suggestions. Thanks so much for the quick help by the way. I'll let you guys know if things change!
Also just quickly, 16 gigs is fine for this modpack and player base I assume?
Asking since nobody mentioned that as being a possible root cause
(as in, not too overkill that it overwhelmes the GC)
yeah 16gb is fine
just make sure u reach out to ur host and let them know the node ur on is running low on ram
Yeah, on it rn, thanks!
Hey there, (sadly) I'm back.
The pregenerating seems to be running fine enough, but TPS is still averaging at around 12 at around 7 players.
Is there anything else I can still do? I remember last year that my hosts CPU was not up to snuff, so is that the case here too?
I've done practically everything in the replied message
https://spark.lucko.me/qWJWLZd6bs
I also cant for the life of me, find out whats supposed to be using commands. I'm 100% sure there is no command block in the world unless some mod adds one that just runs 24/7.
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Spark Profile Analysis
❌ Processing Error
The bot cannot process this Spark profile. It appears that the platform is not supported for analysis. Platform: Fabric
Requested by zekayi#0
valkyrienskies is really quite laggy, as well as apoli
!binary and for the commands, this is your only option
Binary search your plugins
Remove half of your non-essential (ie not things like PAPI or LuckPerm) plugins and see if the problem is fixed.
If it still persists, the cause is in the half still installed.
Continue to halve the remaining plugins until you've narrowed it down to a single plugin.
Congratulations, you found the culprit.
Admincraft Canned Responses
no its not
to find commands being ran use the vanilla profiler
https://docs.bloom.host/datapacks/#disclaimer + https://misode.github.io/report/ canned message for people to use these to diagnose command function lag/identifying lagging datapacks (can also mention https://minecraft.wiki/w/Commands/perf, but thats more for the command and not actual diagnosing from it)taken from my suggestion
oh
oopsies
I'll check this right now
Weirdly enough my profiling.txt file is completely empty
cant really get rid of apoli, since its part of origins and thats the whole schtick of the server lol
Is there any reason why the profiling.txt could be empty
Since the vanilla profiler didnt work. i assume the sequential search would only work on the same server with the same configuration?
So I've run it again and I actually got an output in the profiler, but this is not very helpful to be honest
We have uploaded your file to a paste service for better readability
Paste services are more mobile friendly and easier to read than just posting a file
profiling.txt
undefined (file was truncated because it was over 10 mb)
Requested by zekayi#0
i've only found one person who's had this problem with them never getting an answer
and another person on reddit
Do you have some kind of mod that changes the weather
Is this a custom modpack
It is a custom modpack yes
I guess only Fabric Seasons comes to mind when it comes to mods that change the weather
I guess I got no choice than to purge mods and see when the profiler stops.
Atleast I have the same issue when using the single player profiler
Well, it seems like its fixed
by what
So basically, I checked if the Thunder2 issue shows up in single player too, and sure enough it does
So I binary searched mods that arent Librarys or APIs and slowly narrowed it down to the mod Friends & Foes
Modrinth
Friends&Foes (Fabric/Quilt) - Minecraft Mod
Adds outvoted and forgotten mobs from the mob votes in a believable vanilla plus style. (Copper Golem, Glare, Moobloom, Iceologer, Barnacle, Wildfire, Illusioner, Rascal, Tuff Golem)
interesting
After removing that mod and stress testing with 12 people, the server now runs at a smooth 20 TPS
great!
Anyways, thanks everyone for the help, especially for letting me know about the Vanilla Profiler and the info that it a Datapack-Mod is probably the culprit
!close
post closed!
The post/thread has been closed!
Requested by zekayi#0