How can I find out, what mod is causing big tick lags
I created my modpack today and try to play online with essentials, but some mods or mod is causing huge tick lags.
How can I find out, which mod is causing that.
https://mclo.gs/GNenl3x
65 Replies
i think this is not the right discord to ask this kind of things, but i suggest trying a /binary search
Try a binary search and figure out which mod is causing it.
So disable half of the mods, see if issue is still there, if yes disable half again etc etc until you find the mod that's causing the issue.
yeah i thought the same, but i dont know where to ask
isn't there like a fabric dc or smth? of minecraft?
*or
are you sure its tick lag? did you host the world or join someone?
hosting the world
how much ram do you have allocated?
"[19Juni2024 21:26:56.105] [Server thread/WARN] [net.minecraft.server.MinecraftServer/]: Can't keep up! Is the server overloaded? Running 22832ms or 456 ticks behind"
thats normal
32GBs
you can ignore those warnings
well
but we are lagging
it is a lot in this case
thought thats the problem
xD
oh alright
How much ram do you have in total
32Gbs
You allocated everything?
i'd suggest not to use all your ram
yea most of the time you get those messages without it being anything
maybe ...
thats a little lot
yes XD
thought why the f not
Use like 12-16
because your pc will protest
but that much ms ...
then you are not leaving any ram for your other running programs
If your system is completely running out it will do stuff like that
try with half of the ram allocated and see if its fixed
didnt think that mc will use all
will try
It def will
no but mc claims parts of your ram before it really uses it so its probably not using all of it but it does claim it
I have 32GB ram and allocated 20GB to Minecraft and it would use 26GB bc Minecraft
While hosting with essential
okay thats insane
yea minecraft is so small compared to fortnite etc that they don't really care about optimization
ah still lagging
better than before tho
you could use something like spark
spark?
you mean the performance mod
no, a performance profiler
can it be ... that some performance mods are incompatible with eachother
maybe, hard to say
i wish the logs would just say: eyooo this mod is causing big lags
spark, is what could tell you that
now that i think of it
i dont even know if there is a mod varient of spark
i only know it is a plugin
nice
so use that
the questions is, what is that
what are the subprocesses of that?
there are non
cant open it further
if i go to mods, there is non causing big lags
oh thats weird
idk then
I wish i knew what that means
in the guide they say you can see what causes the problem, but the only thing i can see is "server"
i have no idea im looking at either
reddit is saying that something is missing
"Some quick googling revealed that jdk.internal.misc.Unsafe.park is an internal Java function which causes the program to halt temporarily until some condition is met. In this case, it seems like some mod is doing some background calculations asynchronously which interfere with the event loop for Minecraft, causing the tick to be halted until it finishes. As for which mod, it is impossible to say without a much deeper dive "
you could try a /binary search
Try a binary search and figure out which mod is causing it.
So disable half of the mods, see if issue is still there, if yes disable half again etc etc until you find the mod that's causing the issue.
but that will be very tedious
people say just remove half of your mods and then add step by step back in
I hate it ...
xD
yes, thats a binary search
i understand that
i will look into mp now