Recent Discussions

Solving Ticks Behind In Server

Open in Discord
Unanswered
Pacific cod posted this in #questions
36 messages
0 views
Pacific codOP
https://www.reddit.com/r/admincraft/comments/1j94sry/cant_keep_up_is_the_server_overloaded_running/ I've gotten some information on to help me with this but I wanted to know what I should be looking for here or if I am looking in the right place
Screenshot_2025-03-11_230037.jpg
Asian black bear
reposting the spark profile from reddit: https://spark.lucko.me/DAk9Du1EW0
@Pacific cod https://www.reddit.com/r/admincraft/comments/1j94sry/cant_keep_up_is_the_server_overloaded_running/ I've gotten some information on to help me with this but I wanted to know what I should be looking for here or if I am looking in the right place
Just like @Smaller yellow ant said on the subreddit, you have a significant amount of your CPU time being used on your Datapacks. Most newbie Minecraft server admins think datapacks are free, when in actuality they are orders of magnitude less performant than mods.

You have a LARGE number of datapacks (first image), and the Spark report clearly points directly to them as the cause of the lag (second image).

Your solution is to attempt to narrow down the specific cause by removing the datapacks in sections until you find the one(s) that cause this lag.
9k3BaTq.png
ocxxays.png
To be more specific, something is constantly checking if all online players can have recipes added to their recipe book, and then adding recipes. So your hint is something that adds recipes, probably related to your Cobblemon datapacks.
Le9QzsK.png
Smaller yellow ant
WHO HATH SUMMONED ME!??
But, yeah, pretty much writing NBT is uh, 60% of your overall tick time.
That's bad
If you're handy with a debugger, you could just add logging onto those calls to work out why
@Smaller yellow ant If you're handy with a debugger, you could just add logging onto those calls to work out why
Pacific codOP
I wish I was. Only barely learned how to start a minecraft server up. But you guys helped me learn some things very thankful.
@Pacific cod I wish I was. Only barely learned how to start a minecraft server up. But you guys helped me learn some things very thankful.
Easiest way for a newbie to start off with tracking this down is by simply reading the datapack descriptions.

Do they talk about adding recipes? That's probably one of the ones at fault.

Once you build a list, back up anything with valuable player data (like world files, as datapacks can get pretty embedded into world data), and then generate a clean world. Next, do what's called a binary search. Take half of the datapacks out, start your fresh world for the first time, then run your Spark report again and compare results. If the results are still laggy, then your culprit is in the half of the datapacks you left behind. If it's not, it's in the half that you removed. So put whichever half is responsible in, clean world again, and take half of THAT group, repeating the process. This method is faster than checking one by one for any number over like 5 or 6.
Connecticut Warbler
Vanilla profiler can help
Smaller yellow ant
Oh yeah get a vanilla profile
@Smaller yellow ant Oh yeah get a vanilla profile
Pacific codOP
Where would I be able to get that from or was it in the link
Smaller yellow ant
👆
image.png
Pacific codOP
Oh okay sorry I don’t know why I was thinking it was something I have to download
Pacific codOP
image.png
Would this maybe be the issue?
image.png
@Pacific cod Would this maybe be the issue?
Connecticut Warbler
Pokeloot is known to be horrible for performance
Loading...