Having trouble deciphering TPS lag on Forge 1.20.1 server

Hello, Trying to run a self-hosted server for some friends. I've ran a couple of these before and I did a bunch of testing beforehand, but I'm still having some issues with TPS when players are joining the server. It falls behind and has trouble catching back up. I can't determine exactly what is causing the issue and am having trouble deciphering it from the spark report. Any help is appreciated and I can share any more if needed. Thank you! Here are a couple spark profiler reports: https://spark.lucko.me/HSt7f1dTdl https://spark.lucko.me/OTRb7ccaYj
107 Replies
Admincraft Meta
Admincraft Meta6mo ago
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 airivol#0
Skullians
Skullians6mo ago
alexsmobs and valkyrienskies is not helping they are your laggiest mods you're also using a not-great CPU on a not-great OS for mc hosting Datapacks are not helping. Try use mod alternatives if possible. Make sure you have pregenerated too
Airivol
AirivolOP6mo ago
yeah those are the highest on the profiler, i was a bit worried about VS but it didnt seem like the biggest issue and breaking down alexsmobs it seems to be a bunch of small ones for all the different mobs it adds you run into i am using mod equivalents for terralith/tectonic but the only datapack i have to use is https://www.curseforge.com/minecraft/texture-packs/create-immersive-aircrafts-data-pack since i couldnt find a mod equivalent the world is all pregenerated unfortunately my extra laptop is not the greatest, would it be beneficial to upgrade it to windows 11?
Skullians
Skullians6mo ago
well datapacks are using 20% (functions are*) of your server thread Windows in general is not a good OS for hosting bloat, etc
Airivol
AirivolOP6mo ago
geez that's not good. the datapack is just changing a couple recipes
Skullians
Skullians6mo ago
but it being an extra laptop is good can you run /perf start
Airivol
AirivolOP6mo ago
run that while in the server? i can do that
Skullians
Skullians6mo ago
yeah
Airivol
AirivolOP6mo ago
give me a couple minutes
Skullians
Skullians6mo ago
then send me the zip file that's in debug/profiling (in DMs) because @Admincraft Meta will block it
Airivol
AirivolOP6mo ago
why is it blocked? the server does seem to run fine on my own but even 1 other player joining can cause the tps to drop to ~15 and fall behind
Skullians
Skullians6mo ago
as in the bot @Admincraft Meta blocks the zip file if you send it in here (/perf start makes a zipfile)
Admincraft Meta
Admincraft Meta6mo ago
For safety reasons we do not allow executables to be sent as they might contain malware. If you're compiling for someone please DM them and as a reminder. We cannot verify if a compiled jar has not been tampered in any way
Skullians
Skullians6mo ago
example ^
Airivol
AirivolOP6mo ago
ah ok!
Skullians
Skullians6mo ago
@Airivol do you happen to have any command blocks or anything to do with the aquamirae mod?
execute as @a at @s if entity @e[tag=captaincorneliatagggg.,distance=..50] run stopsound @a music total:79/79 average: 1/1
[04] | | | | execute as @a at @s unless entity @e[tag=captaincorneliatagggg.,distance=..50] run scoreboard players set @s capcornbosstheme 0 total:79/79 average: 1/1
[04] | | | | execute as @a at @s unless entity @e[tag=captaincorneliatagggg.,distance=..50] run tag @s remove captcornthemeplays total:79/79 average: 1/1
[04] | | | | execute as @a at @s unless entity @e[tag=captaincorneliatagggg.,distance=..50] run stopsound @s ambient aquamirae:music.ice_maze_theme total:79/79 average: 1/1
[04] | | | | execute as @a at @s if entity @e[tag=captaincorneliatagggg.,distance=..50] run stopsound @s record aquamirae_mod_extra_music:ghostbosstriumph total:79/79 average: 1/1
[04] | | | | execute as @a at @s unless entity @e[tag=captaincorneliatagggg.,distance=..50] if score @s capcoplrtriumphd matches 2 run function aquamirae_mod_extra_music:bosstriumphplays total:79/79 average: 1/1
[04] | | | | execute as @a at @s if entity @e[tag=captaincorneliatagggg.,distance=..50] run tag @s add captcornthemeplays total:79/79 average: 1/1
[04] | | | | execute as @a at @s unless entity @e[tag=captaincorneliatagggg.,distance=..50] run stopsound @s record aquamirae_mod_extra_music:why_do_i_hear_boss_music total:79/79 average: 1/1
[04] | | | | execute as @a at @s if entity @e[tag=captaincorneliatagggg.,distance=..50] run scoreboard players set @s capcoplrtriumphd 0 total:79/79 average: 1/1
execute as @a at @s if entity @e[tag=captaincorneliatagggg.,distance=..50] run stopsound @a music total:79/79 average: 1/1
[04] | | | | execute as @a at @s unless entity @e[tag=captaincorneliatagggg.,distance=..50] run scoreboard players set @s capcornbosstheme 0 total:79/79 average: 1/1
[04] | | | | execute as @a at @s unless entity @e[tag=captaincorneliatagggg.,distance=..50] run tag @s remove captcornthemeplays total:79/79 average: 1/1
[04] | | | | execute as @a at @s unless entity @e[tag=captaincorneliatagggg.,distance=..50] run stopsound @s ambient aquamirae:music.ice_maze_theme total:79/79 average: 1/1
[04] | | | | execute as @a at @s if entity @e[tag=captaincorneliatagggg.,distance=..50] run stopsound @s record aquamirae_mod_extra_music:ghostbosstriumph total:79/79 average: 1/1
[04] | | | | execute as @a at @s unless entity @e[tag=captaincorneliatagggg.,distance=..50] if score @s capcoplrtriumphd matches 2 run function aquamirae_mod_extra_music:bosstriumphplays total:79/79 average: 1/1
[04] | | | | execute as @a at @s if entity @e[tag=captaincorneliatagggg.,distance=..50] run tag @s add captcornthemeplays total:79/79 average: 1/1
[04] | | | | execute as @a at @s unless entity @e[tag=captaincorneliatagggg.,distance=..50] run stopsound @s record aquamirae_mod_extra_music:why_do_i_hear_boss_music total:79/79 average: 1/1
[04] | | | | execute as @a at @s if entity @e[tag=captaincorneliatagggg.,distance=..50] run scoreboard players set @s capcoplrtriumphd 0 total:79/79 average: 1/1
I'm seeing a lot of this
Airivol
AirivolOP6mo ago
the aquamirae mod is installed, there are no command blocks in the world
Skullians
Skullians6mo ago
huh...
Airivol
AirivolOP6mo ago
the world is pretty untouched outside of pre-generating all the chunks and about 30 minutes of 4 people playing it
Skullians
Skullians6mo ago
I believe aquamirae is what is causing your lag possibly
Airivol
AirivolOP6mo ago
hmm ok
Skullians
Skullians6mo ago
what I'd do is make a backup / a copy remove aquamirae
Airivol
AirivolOP6mo ago
i would probably have to make a new world would i?
Skullians
Skullians6mo ago
and: 1. check if you're having as much lag 2. make a spark report and send it here uhhh yes nevermind then ._.
Airivol
AirivolOP6mo ago
?
Skullians
Skullians6mo ago
well Removing mods isn’t ideal if they include new blocks and whatnot sure you’ve got no command blocks? are they enabled in server.properties
Airivol
AirivolOP6mo ago
unless anything in the world generated command blocks but that'd be weird i can turn them off let me check rq
Skullians
Skullians6mo ago
check this
Airivol
AirivolOP6mo ago
enable command blocks is false
Skullians
Skullians6mo ago
was it already? or did you just turn it off
Airivol
AirivolOP6mo ago
it was already i didnt change it
Skullians
Skullians6mo ago
right I’d say it’s aquamirae
Airivol
AirivolOP6mo ago
i'll run a test without aquamirae on a new world, and 1-3 players and get back to you here
Skullians
Skullians6mo ago
take a backup
Airivol
AirivolOP6mo ago
will do i have the base aquamirae and also another mod on client/server for music stuff with it: https://www.curseforge.com/minecraft/mc-mods/aquamirae-mod-music do you think it could possibly be from this addon mod or is it connected to the core?
Skullians
Skullians6mo ago
YES it is this I believe it’s a datapack as a mod
Airivol
AirivolOP6mo ago
ok i will test with that removed then
Skullians
Skullians6mo ago
try removing that first okay! sorry lol
Airivol
AirivolOP6mo ago
no its ok! i wanted to make sure @Skullians ok i tested with just turning off the music addon. tps still dropped to 10-15 and server fell behind just with 1 other person https://spark.lucko.me/8rgWkMqdnJ here's spark report, will also send you the performance check results
Admincraft Meta
Admincraft Meta6mo ago
Spark Profile Analysis
❌ Processing Error
The bot cannot process this Spark profile. It appears that the platform is not supported for analysis. Platform: Forge
Requested by airivol#0
Skullians
Skullians6mo ago
Datapack usage has already decreased by half 20% to 10% which is good
Airivol
AirivolOP6mo ago
that's good! I can run a longer test if needed, just was surprised how quick the TPS fell @Skullians (when you have time) is there any possible culprits to investigate looking at the spark report and the performance results?
Snowman_Sir
Snowman_Sir6mo ago
👀
No description
Airivol
AirivolOP6mo ago
would that be a major cause of concern? I assumed that would just set a max (and most people are using around 16-20)
Snowman_Sir
Snowman_Sir6mo ago
Lowering wouldn't be a big deal, give it a shot 😛
Skullians
Skullians6mo ago
^ 32 is VERY high most do 8 view 6 sim you can always do something like 10 view 8 sim, and use Bobby or Distant horizons on the client
Snowman_Sir
Snowman_Sir6mo ago
I lolled a bit, ngl. But always willing to help 🤣
Skullians
Skullians6mo ago
well 32 is quite high for modded with not the greatest cpu
Snowman_Sir
Snowman_Sir6mo ago
That's why I spoke up about it hehe
Skullians
Skullians6mo ago
The fact that your sim distance is also 32 is insane Would explain why mods like Alex’s mobs are so laggy
Snowman_Sir
Snowman_Sir6mo ago
It seemed like an easy spot
Airivol
AirivolOP6mo ago
oh shoot it's that high? 😵‍💫 that would explain it should i set view to 16/24? and sim maybe to 10-16?
Snowman_Sir
Snowman_Sir6mo ago
Simply put yes. It's VERY high. 🙂
Skullians
Skullians6mo ago
View 16 sim 10 would be better
Airivol
AirivolOP6mo ago
ok! DH is on the pack and i've been using it so that's not a big deal i will test that and get back to you, sorry for missing such a basic oversight 😅
Skullians
Skullians6mo ago
okay!
Snowman_Sir
Snowman_Sir6mo ago
Happens to the best of us! Even Skullians makes mistakes 😛
Airivol
AirivolOP6mo ago
i've self-hosted a server a few times before, but its always far enough apart that i forget everything in-between each time also a question, since im using observable to also see within the world. what should the μs for entities usually be?
Skullians
Skullians6mo ago
The what you mean the mspt for entities?
Airivol
AirivolOP6mo ago
this number
No description
Skullians
Skullians6mo ago
oh god knows I don’t use observable Just use spark instead ;)
Airivol
AirivolOP6mo ago
i have both 😅 just wanted to check for everything the numbers are a lot better just having 2 people run around
Skullians
Skullians6mo ago
sweet I’ll take a look at that perf zip later… it’s half 2 in the morning and I’m on mobile… messing with zip files on mobile is impossible xd
Airivol
AirivolOP6mo ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Admincraft Meta
Admincraft Meta6mo ago
Spark Profile Analysis
❌ Processing Error
The bot cannot process this Spark profile. It appears that the platform is not supported for analysis. Platform: Forge
Requested by airivol#0
Airivol
AirivolOP6mo ago
much better numbers
Snowman_Sir
Snowman_Sir6mo ago
Glad it's running much better for you! 🎉
Skullians
Skullians6mo ago
Is that from decreasing the view and sim distance? like just that?
Airivol
AirivolOP6mo ago
yeah! i think that may have just been the issue, but ill leave this open just to check in again when i have more than 2 people online if that's all good ill mark this solved
Skullians
Skullians6mo ago
damnn, that looks way better lol
Airivol
AirivolOP6mo ago
thank you so much for all the help thus far i appreciate it
Skullians
Skullians6mo ago
no problem!
Airivol
AirivolOP6mo ago
yeah and DH + Shaders makes it no worry to turn down those numbers
No description
Skullians
Skullians6mo ago
niceee
Airivol
AirivolOP6mo ago
alright so i did play for a bit longer with 1 other player last night, numbers are much better but i still had slight concern as the tick speed slowly climbed over time and started to border on 50 here's a spark report: https://spark.lucko.me/cjS7RqqjxZ i can also send a performance report i took then over dms
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Admincraft Meta
Admincraft Meta6mo ago
Spark Profile Analysis
❌ Processing Error
The bot cannot process this Spark profile. It appears that the platform is not supported for analysis. Platform: Forge
Requested by airivol#0
JoeK
JoeK6mo ago
Your server has actually somehow got laggier since the first spark you sent. When WaitForTick is below 5% thread usage and TickServer is 95%+ you are in lag. For reference it should be Wait for Tick should be atleast above 20% of the thread, and Tick Server at less than 80% of the thread.
Airivol
AirivolOP6mo ago
odd. i wonder why that would happen? i do have a couple performance zips from that period of testing
JoeK
JoeK6mo ago
Are you running off an old laptop? It may be thermal throttling.
Airivol
AirivolOP6mo ago
yes but it has never gotten hot, i have all the battery/performance stuff set to a performance mode, and a lot of the time i'll have the fan on
JoeK
JoeK6mo ago
Could be a lot of things, you might have better luck switching your old laptop to Linux Especially since CPU is old. But also from performance report most of your thread is being taken by chunk loading and unloading. Perhaps turn render distance down to like 6.
Airivol
AirivolOP6mo ago
i did turn it down to 16/10 sim and that helped a lot there also are several performance mods on the server that mess with chunk loading stuff
Skullians
Skullians6mo ago
can you try do something like 12 and 10, or 10 and 8? that would help a lot
Airivol
AirivolOP6mo ago
yes i can test that
Skullians
Skullians6mo ago
please do consider getting ServerCore
Airivol
AirivolOP6mo ago
i'll turn it down to 12/10 and add servercore and get back to you
JoeK
JoeK6mo ago
Turning it down should fix issue, as 50% of your thread is being consumed just by chunk loading and unloading
Airivol
AirivolOP6mo ago
server fails to launch with servercore on it
Airivol
AirivolOP6mo ago
Admincraft Meta
Admincraft Meta6mo ago
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
Requested by airivol#0
Skullians
Skullians6mo ago
i see no error here
Airivol
AirivolOP6mo ago
there was a message hold on i dont think the log caught it
Airivol
AirivolOP6mo ago
Admincraft Meta
Admincraft Meta6mo ago
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
Requested by airivol#0
Airivol
AirivolOP6mo ago
No description
Skullians
Skullians6mo ago
Does this happen without ServerCore?
Airivol
AirivolOP6mo ago
no without servercore it continues and launches
Skullians
Skullians6mo ago
Try re-download and reupload ServerCore
Airivol
AirivolOP6mo ago
downloading it again and putting it into the server mods folder? didn't seem to fix the problem
Skullians
Skullians6mo ago
odd Try use a slightly older version of ServerCore?
Airivol
AirivolOP6mo ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Admincraft Meta
Admincraft Meta6mo ago
Spark Profile Analysis
❌ Processing Error
The bot cannot process this Spark profile. It appears that the platform is not supported for analysis. Platform: Forge
Requested by airivol#0
Airivol
AirivolOP6mo ago
i've turned it to 10 dist / 6 sim and added an older version of servercore that worked, i dont know if there much to do left in the region of improvement though since a lot of players are online and my laptop does not have good specs
Admincraft Meta
Admincraft Meta6mo ago
Spark Profile Analysis
❌ Processing Error
The bot cannot process this Spark profile. It appears that the platform is not supported for analysis. Platform: Forge
Requested by airivol#0
JoeK
JoeK6mo ago
You’re likely just at the limit of what your hardware is capable of, also make sure you save backups of your server to other devices. Laptop servers tend to die. I mean you should back up to other devices or cloud no matter what
Airivol
AirivolOP6mo ago
yeah, i believe so i'm gonna mark this as closed/solved. i appreciate all the help in getting things running better! im likely gonna pass off hosting stuff to a friend who has a stronger spare computer if i can 😅 thank you all!! !close
Admincraft Meta
Admincraft Meta6mo ago
post closed!
The post/thread has been closed!
Requested by airivol#0

Did you find this page helpful?