Is my server lagging?
I'm running a 12 GiB Memory 1.21 Paper server with 3 threads of Ryzen 9 7950x. These messages appeared in the console when there were only 7 players on the server. Is there anyway I can reduce this from happening?
Plugin list:
ChestSort, Chunky, CoreProtect, DiscordSRV, GraveStonesPlus, LPC, LuckPerms, MiniMOTD, TAB, Vault
I keep getting messages such as:
and
78 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 ace_dystopia#0
I was told that a 12 GB with three threads could accomodate 30-ish players, but the server is lagging with 7 players?
On the console it's saying it's using up 7GB out of 12 GB of memory
!spark
Spark Profiler
Spark can be used to see why your server or client is lagging.
Users can share a spark report via
/spark profiler start --timeout 300
which creates a report after 5 minutes. The spark report is useful in debugging why your server is lagging, so ideally you should always provide one while asking for support.
Download | Website | [Docs] (https://spark.lucko.me/docs)Admincraft Canned Responses
Download spark, and run the command shown in the text here
send the link outputted after 5 minutes here
Thanks for sharing, I will look into it
On a unrelated note, your profile banner looks delicious 😋
(if I'm not mistaken they're 粽子, right?)
You’re correct!
@Ace Dystopia Have you had the chance to run the spark profiler?
Also does 3 threads of 7950x mean 3 cores?
paper doesnt support multi core iirc
probably netty threads :Shrug:
is there anything that supports multi-core atm?
thats such a hassle to take on as a programmer
folia
does it work bugless?
god no
guessed so
does paper work bugless? lol
huge project to try to
ok fair
project idea: use parallel computing and run a minecraft java server with gpu
:3
its a hassle because mojang never bothered to implement it themselves lul
rewrite the whole of java language
and minecraft
trust
they still wont
they got tens of employees and still add 1 content per 6 months
main logic still runs one thread
unbelieavable
iirc all runs on one thread no?
no
chunk gen etc
run on different threads
ah
realistically its too late for mojang to just go back to step 1 and rebuild with multi thread support
not a lot to gain considering the community is doing it anyway
not too late considering they are a fucking billion dollar company
the skyrim mindset is unreal
dont fix it, the community will anyway
except the members of the community dont get paid for this stuff while the mojang employees do
rewriting the entirety of minecraft to run multi-cores is a HUGE task, we get 1000s of bugs just from a mini update, now imagine remaking the entire game lol
cal
imagine we keep these
hello
content updates going
for years years years
now there is a huge pile of content
and the main logic runs on one thread
if they dont start it now
it'll be even more late
when they do it in the future
theres no need to though
if you say so
cant argue with that
thats personal opinion
what need is there? so you can get 50 more fps? lul
so that server costs are minimal
so that people with poor computer setups can enjoy the game
solution already exists to both of these problems
folia, sodium, and MANY other performance mods
at the end of the day mojang is a company that prioritizes profits over UX, its nothing new
are you todd howard
perchance
im realistic
not at all
we are talking about what they should do
do you really think none of the employees at mojang had the bright idea to suggest multi core support
everyone knows they are a company
it didn't pass at the end of the day
because greedy company
🤑
mojang arent just gonna throw that much money to pretty much rewrite the game
because yes they are are greedy company that only view us as $$
what else are they gonna spend their company budget for
give a handjob to the stock owners?
cant even make a joke about that because what do they even do anyway LMFAO
enough, we are on a question thread
theyre obviously not at the offices or working
good morning sunshine this is what ive been trying to tell you for the past 15 minutes
im leavin
you're not telling me shit we all already knew this lmfao
it does
theres still a main thread
but it still uses multiple threads for multiple different tasks
chunk loading, chunk generation, networking, chat, etc
forks doing more
like pufferfish doing async mob spawning
but thats just multi thread no?
across multiple cores
folia is also just paper but has multiple main threads, regionizes lag
no,
what we call multi thread is
the server main thread being seperated to multiple cores
this thread that you see here, this is the logic
it contains the logic of minecraft
enemy movement, damage , fall damage
hence, this is the thread that needs to be prioritized
if we could multi-thread it
efficency
go brrr
There are only 4 players online at the moment, but I can try again later tonight when there are more than 10: https://spark.lucko.me/1MlueGWXlv
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Spark Profile Analysis
These are not magic values. Many of these settings have real consequences on your server's mechanics. See this guide for detailed information on the functionality of each setting.
✅ Your server isn't lagging
Your server is running fine with an average TPS of 20.
Requested by ace_dystopia#0 • Page 1 of 4
Maybe I should try again later then
- Your view & sim distance is WAY too high. 8 view, 6 sim maximum.
- Paper 1.21 is experimental and several performance patches (the majority of them) are not yet implemented.
- Yes, your spark report shows no lag. Please rerun it when you either see the messages in the console of "can't keep up!" or when you have more players on.
- 2.5gb may be not enough for 10 players tbh
you also have 504 chickens which could suggest some kind of animal farm
Thanks!
For view/sim, could I push that a little higher or is 8 and 6 respectively the recommended amount?
seeing as you've got a good CPU, yeah
if your players want any more than what you give, just tell them to get a client side mod like Bobby or Distant Horizons.
I have 12 GB, it seems to increase if it hits a max
Oh is Distant Horizons out for 1.21 already?
oh
also
consider using Aikar Flags
yes
java -Xms11264M -Xmx11264M --add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -jar server.jar --nogui
use these startup flags if possible ^^
(I set it to 11gb, so as to avoid OOMs as you are probably using docker / your host is)Thanks, I will look into it
Got it!
During this profiling, there were two instances where an error appeared. The first one stopped the server for 10 seconds and the second one stopped the server for 15 seconds.
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Spark Profile Analysis
These are not magic values. Many of these settings have real consequences on your server's mechanics. See this guide for detailed information on the functionality of each setting.
❌ Aikar's Flags
❌ chunk-gc.period-in-ticks
Decrease this in bukkit.yml.
Recommended: 400.
❌ ticks-per.monster-spawns
Increase this in bukkit.yml.
Recommended: 4.
❌ spawn-limits.monsters
Decrease this in bukkit.yml.
Recommended: 15.
❌ spawn-limits.water-ambient
Decrease this in bukkit.yml.
Recommended: 5.
❌ spawn-limits.ambient
Decrease this in bukkit.yml.
Recommended: 1.
❌ spawn-limits.animals
Decrease this in bukkit.yml.
Recommended: 5.
❌ entity-activation-range.animals
Decrease this in spigot.yml.
Recommended: 16.
❌ entity-activation-range.monsters
Decrease this in spigot.yml.
Recommended: 16.
❌ entity-activation-range.misc
Decrease this in spigot.yml.
Recommended: 12.
❌ entity-activation-range.water
Decrease this in spigot.yml.
Recommended: 12.
❌ entity-activation-range.villagers
Decrease this in spigot.yml.
Recommended: 16.
Requested by ace_dystopia#0 • Page 1 of 4
I haven’t changed the settings incase it might affect the lag errors, but I will change them soon
theres no lag in this report
Yes, however this shows up in the console:
Twice
!logs
Please check your server log for errors from your plugins.
If you need further help understanding the errors, please send us the whole log file.
Where can I find the server log?
Logs are stored in
<server_directory>/logs/
. Search for a file explorer in your server's management interface and navigate to that directory. Once you've opened that up, search for the latest.log
file. Some providers have a separate page for logs and may hide the "logs" folder.
On Aternos:
• Go to https://aternos.org/log/.
On Minehut and server.pro:
• Go to the "files" tab in the left menu.
• Navigate to the root directory of your server.
• From there navigate to /logs/latest.log
.
What should I do with the log?
• First of all, read it! I mean, that's what you do all the time when you run a server, isn't it? Try to locate any errors that have anything to do with the issue you are facing.
• If you got the latest.log
file or created a .txt
file with the necessary errors you can upload these directly to the channel, but we prefer if you upload them to https://mclo.gs/.
• If you have trouble downloading the log file, copy/paste the text to a paste service (like mclogs). Copy the link that it gives you and send it to us. (Don't worry, McLogs hides your users' IPs.)Admincraft Canned Responses
Got it!
https://mclo.gs/QgDfdbW
looks like slow drive
What does that mean?
The storage device for the data is slow?
And, is there any way I can fix it? I'm using a hosting service
what host?
Robotic Node
https://github.com/TrollsterCooleg/EasyBench mind running this
GitHub
GitHub - TrollsterCooleg/EasyBench: progaming dk made a plugin, so ...
progaming dk made a plugin, so i made it but better - TrollsterCooleg/EasyBench
wanna see the speed of that disk
@Ace Dystopia
@ProGamingDk I ended up fixing the issue by lowing the simulation and view distances!
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Spark Profile Analysis
These are not magic values. Many of these settings have real consequences on your server's mechanics. See this guide for detailed information on the functionality of each setting.
❌ Aikar's Flags
❌ chunk-gc.period-in-ticks
Decrease this in bukkit.yml.
Recommended: 400.
❌ ticks-per.monster-spawns
Increase this in bukkit.yml.
Recommended: 4.
❌ spawn-limits.monsters
Decrease this in bukkit.yml.
Recommended: 15.
❌ spawn-limits.water-ambient
Decrease this in bukkit.yml.
Recommended: 5.
❌ spawn-limits.ambient
Decrease this in bukkit.yml.
Recommended: 1.
❌ spawn-limits.animals
Decrease this in bukkit.yml.
Recommended: 5.
❌ entity-activation-range.animals
Decrease this in spigot.yml.
Recommended: 16.
❌ entity-activation-range.monsters
Decrease this in spigot.yml.
Recommended: 16.
❌ entity-activation-range.misc
Decrease this in spigot.yml.
Recommended: 12.
❌ entity-activation-range.water
Decrease this in spigot.yml.
Recommended: 12.
❌ entity-activation-range.villagers
Decrease this in spigot.yml.
Recommended: 16.
Requested by ace_dystopia#0 • Page 1 of 4
But now it’s lagging again so I have to look into it lol
Villagers are quite laggy
Also someone has a passive mob farm
600 chickens, tons of sheep
They’re causing the most lag for entities