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:
[04:55:53 WARN]: Can't keep up! Is the server overloaded? Running 2504ms or 50 ticks behind
[04:56:14 WARN]: Can't keep up! Is the server overloaded? Running 5213ms or 104 ticks behind
[04:56:36 WARN]: Can't keep up! Is the server overloaded? Running 2510ms or 50 ticks behind
[04:57:01 WARN]: Can't keep up! Is the server overloaded? Running 2503ms or 50 ticks behind
[04:57:19 WARN]: Can't keep up! Is the server overloaded? Running 2646ms or 52 ticks behind
[04:57:40 WARN]: Can't keep up! Is the server overloaded? Running 2514ms or 50 ticks behind
[04:58:23 WARN]: Can't keep up! Is the server overloaded? Running 2501ms or 50 ticks behind
[04:58:58 WARN]: Can't keep up! Is the server overloaded? Running 2502ms or 50 ticks behind
[04:55:53 WARN]: Can't keep up! Is the server overloaded? Running 2504ms or 50 ticks behind
[04:56:14 WARN]: Can't keep up! Is the server overloaded? Running 5213ms or 104 ticks behind
[04:56:36 WARN]: Can't keep up! Is the server overloaded? Running 2510ms or 50 ticks behind
[04:57:01 WARN]: Can't keep up! Is the server overloaded? Running 2503ms or 50 ticks behind
[04:57:19 WARN]: Can't keep up! Is the server overloaded? Running 2646ms or 52 ticks behind
[04:57:40 WARN]: Can't keep up! Is the server overloaded? Running 2514ms or 50 ticks behind
[04:58:23 WARN]: Can't keep up! Is the server overloaded? Running 2501ms or 50 ticks behind
[04:58:58 WARN]: Can't keep up! Is the server overloaded? Running 2502ms or 50 ticks behind
and
[06:46:06 ERROR]: --- DO NOT REPORT THIS TO PAPER - THIS IS NOT A BUG OR A CRASH - 1.21-37-dd49fba (MC: 1.21) ---
[06:46:06 ERROR]: The server has not responded for 10 seconds! Creating thread dump
[06:46:06 ERROR]: ------------------------------
[06:46:06 ERROR]: Server thread dump (Look for plugins here before reporting to Paper!):
[06:46:06 ERROR]: ------------------------------
[06:46:06 ERROR]: Current Thread: Server thread
[06:46:06 ERROR]: PID: 35 | Suspended: false | Native: true | State: RUNNABLE
[06:46:06 ERROR]: --- DO NOT REPORT THIS TO PAPER - THIS IS NOT A BUG OR A CRASH - 1.21-37-dd49fba (MC: 1.21) ---
[06:46:06 ERROR]: The server has not responded for 10 seconds! Creating thread dump
[06:46:06 ERROR]: ------------------------------
[06:46:06 ERROR]: Server thread dump (Look for plugins here before reporting to Paper!):
[06:46:06 ERROR]: ------------------------------
[06:46:06 ERROR]: Current Thread: Server thread
[06:46:06 ERROR]: PID: 35 | Suspended: false | Native: true | State: RUNNABLE
78 Replies
Admincraft Meta
Admincraft Meta7mo 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 ace_dystopia#0
Ace Dystopia
Ace DystopiaOP7mo ago
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
Skullians
Skullians7mo ago
!spark
Carl-bot
Carl-bot7mo ago
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)
From An unknown user
Admincraft Canned Responses
Skullians
Skullians7mo ago
Download spark, and run the command shown in the text here send the link outputted after 5 minutes here
Ace Dystopia
Ace DystopiaOP7mo ago
Thanks for sharing, I will look into it
DogeConomy
DogeConomy7mo ago
On a unrelated note, your profile banner looks delicious 😋 (if I'm not mistaken they're 粽子, right?)
Ace Dystopia
Ace DystopiaOP7mo ago
You’re correct!
holt407's slut
holt407's slut7mo ago
@Ace Dystopia Have you had the chance to run the spark profiler? Also does 3 threads of 7950x mean 3 cores?
cal
cal7mo ago
paper doesnt support multi core iirc probably netty threads :Shrug:
holt407's slut
holt407's slut7mo ago
is there anything that supports multi-core atm? thats such a hassle to take on as a programmer
cal
cal7mo ago
folia
holt407's slut
holt407's slut7mo ago
does it work bugless?
cal
cal7mo ago
god no
holt407's slut
holt407's slut7mo ago
guessed so
cal
cal7mo ago
does paper work bugless? lol
holt407's slut
holt407's slut7mo ago
huge project to try to ok fair project idea: use parallel computing and run a minecraft java server with gpu :3
cal
cal7mo ago
its a hassle because mojang never bothered to implement it themselves lul
holt407's slut
holt407's slut7mo ago
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
cal
cal7mo ago
iirc all runs on one thread no?
holt407's slut
holt407's slut7mo ago
no chunk gen etc run on different threads
cal
cal7mo ago
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
holt407's slut
holt407's slut7mo ago
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
cal
cal7mo ago
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
holt407's slut
holt407's slut7mo ago
cal imagine we keep these
cal
cal7mo ago
hello
holt407's slut
holt407's slut7mo ago
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
cal
cal7mo ago
theres no need to though
holt407's slut
holt407's slut7mo ago
if you say so cant argue with that thats personal opinion
cal
cal7mo ago
what need is there? so you can get 50 more fps? lul
holt407's slut
holt407's slut7mo ago
so that server costs are minimal so that people with poor computer setups can enjoy the game
cal
cal7mo ago
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
holt407's slut
holt407's slut7mo ago
are you todd howard perchance
cal
cal7mo ago
im realistic
holt407's slut
holt407's slut7mo ago
not at all we are talking about what they should do
cal
cal7mo ago
do you really think none of the employees at mojang had the bright idea to suggest multi core support
holt407's slut
holt407's slut7mo ago
everyone knows they are a company it didn't pass at the end of the day because greedy company 🤑
cal
cal7mo ago
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 $$
holt407's slut
holt407's slut7mo ago
what else are they gonna spend their company budget for give a handjob to the stock owners?
cal
cal7mo ago
cant even make a joke about that because what do they even do anyway LMFAO
holt407's slut
holt407's slut7mo ago
enough, we are on a question thread
cal
cal7mo ago
theyre obviously not at the offices or working
holt407's slut
holt407's slut7mo ago
good morning sunshine this is what ive been trying to tell you for the past 15 minutes im leavin
cal
cal7mo ago
you're not telling me shit we all already knew this lmfao
ProGamingDk
ProGamingDk7mo ago
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
cal
cal7mo ago
but thats just multi thread no?
ProGamingDk
ProGamingDk7mo ago
across multiple cores folia is also just paper but has multiple main threads, regionizes lag
holt407's slut
holt407's slut7mo ago
no, what we call multi thread is the server main thread being seperated to multiple cores
holt407's slut
holt407's slut7mo ago
No description
holt407's slut
holt407's slut7mo ago
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
Ace Dystopia
Ace DystopiaOP7mo ago
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.
Admincraft Meta
Admincraft Meta7mo ago
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
Ace Dystopia
Ace DystopiaOP7mo ago
Maybe I should try again later then
Skullians
Skullians7mo ago
- 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
Ace Dystopia
Ace DystopiaOP7mo ago
Thanks! For view/sim, could I push that a little higher or is 8 and 6 respectively the recommended amount?
Skullians
Skullians7mo ago
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.
Ace Dystopia
Ace DystopiaOP7mo ago
I have 12 GB, it seems to increase if it hits a max Oh is Distant Horizons out for 1.21 already?
Skullians
Skullians7mo ago
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)
Ace Dystopia
Ace DystopiaOP7mo ago
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.
Ace Dystopia
Ace DystopiaOP7mo ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Admincraft Meta
Admincraft Meta7mo ago
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
Ace Dystopia
Ace DystopiaOP7mo ago
I haven’t changed the settings incase it might affect the lag errors, but I will change them soon
ProGamingDk
ProGamingDk7mo ago
theres no lag in this report
Ace Dystopia
Ace DystopiaOP7mo ago
Yes, however this shows up in the console: Twice
ProGamingDk
ProGamingDk7mo ago
!logs
Carl-bot
Carl-bot7mo ago
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
Ace Dystopia
Ace DystopiaOP7mo ago
mclo.gs
Vanilla Server Log [#QgDfdbW]
1446 lines | 673 errors
ProGamingDk
ProGamingDk7mo ago
looks like slow drive
Ace Dystopia
Ace DystopiaOP7mo ago
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
ProGamingDk
ProGamingDk7mo ago
what host?
Ace Dystopia
Ace DystopiaOP7mo ago
Robotic Node
ProGamingDk
ProGamingDk7mo ago
GitHub
GitHub - TrollsterCooleg/EasyBench: progaming dk made a plugin, so ...
progaming dk made a plugin, so i made it but better - TrollsterCooleg/EasyBench
ProGamingDk
ProGamingDk7mo ago
wanna see the speed of that disk @Ace Dystopia
Ace Dystopia
Ace DystopiaOP6mo ago
@ProGamingDk I ended up fixing the issue by lowing the simulation and view distances!
Ace Dystopia
Ace DystopiaOP6mo ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Admincraft Meta
Admincraft Meta6mo ago
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
Ace Dystopia
Ace DystopiaOP6mo ago
But now it’s lagging again so I have to look into it lol
Skullians
Skullians6mo ago
Villagers are quite laggy Also someone has a passive mob farm 600 chickens, tons of sheep They’re causing the most lag for entities

Did you find this page helpful?