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
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
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
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?
well datapacks are using 20% (functions are*) of your server thread
Windows in general is not a good OS
for hosting
bloat, etc
geez that's not good. the datapack is just changing a couple recipes
but it being an extra laptop is good
can you run
/perf start
run that while in the server? i can do that
yeah
give me a couple minutes
then send me the zip file that's in
debug/profiling
(in DMs)
because @Admincraft Meta will block itwhy 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
as in the bot @Admincraft Meta blocks the zip file if you send it in here (/perf start makes a zipfile)
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
example ^
ah ok!
@Airivol do you happen to have any command blocks or anything to do with the aquamirae mod?
I'm seeing a lot of this
the aquamirae mod is installed, there are no command blocks in the world
huh...
the world is pretty untouched outside of pre-generating all the chunks and about 30 minutes of 4 people playing it
I believe aquamirae is what is causing your lag possibly
hmm ok
what I'd do
is make a backup / a copy
remove aquamirae
i would probably have to make a new world would i?
and:
1. check if you're having as much lag
2. make a spark report and send it here
uhhh
yes
nevermind then
._.
?
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
unless anything in the world generated command blocks but that'd be weird
i can turn them off let me check rq
check this
enable command blocks is false
was it already?
or did you just turn it off
it was already i didnt change it
right
I’d say it’s aquamirae
i'll run a test without aquamirae on a new world, and 1-3 players and get back to you here
take a backup
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?
YES it is this
I believe it’s a datapack as a mod
ok i will test with that removed then
try removing that first
okay! sorry lol
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
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
Datapack usage has already decreased by half
20% to 10%
which is good
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?
👀
would that be a major cause of concern? I assumed that would just set a max (and most people are using around 16-20)
Lowering wouldn't be a big deal, give it a shot 😛
^
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
I lolled a bit, ngl. But always willing to help 🤣
well 32 is quite high for modded with not the greatest cpu
That's why I spoke up about it hehe
The fact that your sim distance is also 32 is insane
Would explain why mods like Alex’s mobs are so laggy
It seemed like an easy spot
oh shoot it's that high? 😵💫 that would explain it
should i set view to 16/24? and sim maybe to 10-16?
Simply put yes. It's VERY high. 🙂
View 16 sim 10 would be better
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 😅
okay!
Happens to the best of us! Even Skullians makes mistakes 😛
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?
The what
you mean the mspt for entities?
this number
oh god knows
I don’t use observable
Just use spark instead ;)
i have both 😅 just wanted to check for everything
the numbers are a lot better just having 2 people run around
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
https://spark.lucko.me/aLevY85qca here's the report
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: Forge
Requested by airivol#0
much better numbers
Glad it's running much better for you! 🎉
Is that from decreasing the view and sim distance?
like just that?
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
damnn, that looks way better lol
thank you so much for all the help thus far i appreciate it
no problem!
yeah and DH + Shaders makes it no worry to turn down those numbers
niceee
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.
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
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.
odd. i wonder why that would happen? i do have a couple performance zips from that period of testing
Are you running off an old laptop? It may be thermal throttling.
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
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.
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
can you try do something like 12 and 10, or 10 and 8?
that would help a lot
yes i can test that
please do
consider getting ServerCore
i'll turn it down to 12/10 and add servercore and get back to you
Turning it down should fix issue, as 50% of your thread is being consumed just by chunk loading and unloading
server fails to launch with servercore on it
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
latest.log
Requested by airivol#0
i see no error here
there was a message hold on i dont think the log caught it
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
debug.log
Requested by airivol#0
Does this happen without ServerCore?
no
without servercore it continues and launches
Try re-download and reupload ServerCore
downloading it again and putting it into the server mods folder? didn't seem to fix the problem
odd
Try use a slightly older version of ServerCore?
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: Forge
Requested by airivol#0
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
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
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
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
post closed!
The post/thread has been closed!
Requested by airivol#0