tps drops while 3gb used out of 12!!
i have a great server with 12 ram and 2 cpu cores
but there is random tps and i do not know why
i am using paper 1.20
those are the plugins i am using:
AdvancedBan, CoreProtect, DriveBackupV2, dynmap, EndPortalTimer, *FarmProtect, Graves, InventoryRollbackPlus, LuckPerms, MinecraftDashboard
[14:13:40] [Server thread/INFO]: nLogin, NoCheatPlus, NoMobGriefing, OpenInv, PlayerCarry, PlayerNPC, ProtocolLib, Shopkeepers, SkinsRestorer, TeaksTweaks
[14:13:40] [Server thread/INFO]: UnlimitAnvil, Vanish, voicechat, VoidTotem
please help
128 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 theviper912#0
!spark
Spark Profiler
Spark can be used to see why your server or client is lagging.
https://spark.lucko.me/
Admincraft Canned Responses
/spark profiler start --interval 300
Spark Profiler
Spark can be used to see why your server or client is lagging.
https://spark.lucko.me/
Admincraft Canned Responses
!offline
i have the game btw
what does this do?
the documenttation is very long , if you can tell me the basic usage i willl be thankfull , if not i will just read it
is your server in offline-mode?
(plugin list suggests yes)
you owning the game changes literally nothing
you're supporting piracy, breaking the MUG, etc
thanks for letting me know
Shows you ram usage cpu usage what plugins are using so much resources
It'll help u find out why it's lagging
does the profiler lags the server
should i stop it?
also i didnot use the interval thing is this okay?
That's fine yeah
Stop it after like 5 minutes
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.
β merge-radius.exp
Increase this in spigot.yml.
Recommended: 6.0.
β chunks.max-auto-save-chunks-per-tick
Decrease this in config/paper-world-defaults.yml.
Recommended: 6.
β tick-rates.mob-spawner
Increase this in config/paper-world-defaults.yml.
Recommended: 2.
β tick-rates.container-update
Increase this in config/paper-world-defaults.yml.
Recommended: 3.
β tick-rates.grass-spread
Increase this in config/paper-world-defaults.yml.
Recommended: 4.
β entities.spawning.despawn-ranges.ambient.soft
Decrease this in config/paper-world-defaults.yml.
Recommended: 28.
β entities.spawning.despawn-ranges.ambient.hard
Decrease this in config/paper-world-defaults.yml.
Recommended: 96.
β entities.spawning.despawn-ranges.axolotls.soft
Decrease this in config/paper-world-defaults.yml.
Recommended: 28.
β entities.spawning.despawn-ranges.axolotls.hard
Decrease this in config/paper-world-defaults.yml.
Recommended: 96.
β entities.spawning.despawn-ranges.creature.soft
Decrease this in config/paper-world-defaults.yml.
Recommended: 28.
β entities.spawning.despawn-ranges.creature.hard
Decrease this in config/paper-world-defaults.yml.
Recommended: 96.
β entities.spawning.despawn-ranges.misc.soft
Decrease this in config/paper-world-defaults.yml.
Recommended: 28.
Requested by theviper912#0 β’ Page 3 of 5
Am I blind or do I not see a cpu
you do not
im assuming it's an oracle ARM server
your physical machine is running out of ram fyi
your view & sim distance is way too high, 8 view and 6 sim maximum.
use Aikar Flags
try use plugins instead of datapacks if possible
but this profiler shows no lag
is this bad?
not necessarily
any reason as to why you're 1.20 and not 1.20.4
so there is nothing i should do?
i thought it will be more stable π€‘
i am afraid of updating because of datapacks etc
so there is no serious proplem? the server is workiing perfectly but there is sudden lag
as i said, try find plugin alternatives for datapacks.
Datapacks are poorly optimised and often HELLA laggy.
https://pufferfish.host/downloads - Consider using Pufferfish 1.20.4. It is like Paper, a server software. It should be plug and play (replace the paper server jar with the pufferfish one), but always make a backup and test beforehand
Pufferfish Host | Downloads - Pufferfish Fork
Download Pufferfish and Pufferfish+ Minecraft server jars
i have 3 questions
1-should i replace every plugin or they will work on 1.20.4?
2 - why should i use pufferfish ?
3- is the 1.20 version the cause of the lag?
Meh the cpu isn't the greatest
Are you with a host or are you self hosting?
oracle self hosting
Ah Oracle
That's why the cpu yeah
yes
The server is running in offline mode.
cringe as hellMost should work on 1.20.4 check the resources though
much better performance than paper
ok
.
can't say for sure
that spark profiler does not indicate any actual lag
yes for some reasons the server is stable At the moment
how can i watch for when its laggy
consider making a profiler via:
/spark profiler start --only-ticks-over 51
Leave it running until you have multiple instances of the lag you are talking about
then stop it after it happens multiple timesi mean
the profiler thing
okay thanks so much
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.
βINFO
You are using
Paper-17 (1.20)
. Latest currently is 1.20.6
.β Aikar's Flags
β Threads
You only have 2 thread(s).
β 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.
β
Your server isn't lagging
Plus 37 more recommendations
Click the buttons below to see more
Requested by theviper912#0 β’ Page 1 of 5
there was lag on the server!
why do it say there is not
i am using paper anti xray btw
did you read what i said
yes yes i did
no you did not
read it again
i asked the players and they said there is multiple isntances of lag
- you ran the profiler for 3 SECONDS
ideally it should be at least 10 minutes
the profiler shows no lag
sorry i do not know why did it stopped
so your players are either lying, or it's client side lag
its because the 3 seconds thing
but for the profiler to stop i should stop it right? it wouldnot stop on its own
so i am wondering why did it stop
anyways i will run the command you told me again
it will only stop if you tell it to
sorry if I am kinda dumb
This is why I don't support cracked server owners
i'm starting to also take that view
chill
its running for 48 minutes already
what is the 3 seconds thing
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 theviper912#0 β’ Page 1 of 5
Datapacks are taking a big chunk of your server thread
consider removing them, or replacing them with plugin alternatives
thanks for your time
can you specify which datapacks
?
Can you send a list of all the ones you have?
Spark does not tell me either what datapacks are lagging nor what datapacks you have
ofc i will send
i disabled from the fog btw
also your server is running out of physical ram, might want to get it sorted
what do u mean by get it sorted
also it always shows its 4 or 5 ram used out of 12
i did not understand tbh
read what i said again
physical RAM
as in total RAM on the entire machine
not just the process
something else is using up the RAM
i swear i am not acting dumb
i READ what you said but i didnot know the diffrence between physical ram and ram
i said sorry multiple times if i am not understanding quickly
but again i read all what you say carfully i swear
something else on the oracle instance?
i cannot find the /perf file in the minecraft server
Yes, something which is not the minecraft server
^
Physical ram is the amount of memory installed in your machine that you can use, which is shared between everything (minecraft server, operating system, etc.). Ram in this context is the amount which the process (the Minecraft server) uses. The Minecraft server uses 6GB of 12GB it is told it can use, that means the other 4GB of your available physical memory are used up by something else (other programm, operating system, etc.)
got it , thanks soo much for your explanation
all of the datapacks that says incompatible are supposed to be the right version
maybe because i am in 1.20 which is broken and using datapacks which may contains bugs so this ruins the server performance?
Possible, 6GB+ seems a lot of ram for like 3-4 players online. Does it get progressivly more over time? If so you might have a memory leak.
i found that i allocated all 12 ram for the server without letting ram for the system
it even reserved 2
so all i have is 10
so i used 9
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 theviper912#0 β’ Page 1 of 5
btw usually the server may have from 2 to 7 players
is there a way i can check if there is a datapack ruining the server?
or a way i can check all commands by datapack?
Great to hear you found the issue
do you not have the /perf command
i did it and uploded it to the viewer
i didno understand it tbh
Unfortunatly i have 0 experience with datapacks
oh
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
message.txt
Requested by theviper912#0
this happens in the console when i do /perf
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
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 theviper912#0 β’ Page 1 of 5
so the lag is way more less but at the start of the profiler and at the end there was huge lag
Specially before i ennded the profiler
also i went to spectator mode and this was spammed
[02:52:52 WARN]: Viper912 was kicked for floating too long!
[02:52:52 WARN]: Viper912 was kicked for floating too long!
[02:52:52 WARN]: Viper912 was kicked for floating too long!
Make allow-flight=true in server.properties
It disables the innefective vanilla ac
I think this was already recommended but upgrade to 1.20
Usually the bare major versions (e.g. 1.16 had lots of bugs which mojang cleaned up in 1.16.1)
so this is normal to happen? not a proplem in my server?
sorry didnot got it
i am on 1.20 already
I didn't have the exact same error but instead the incessant "Arthurmeade12 moved to quickly!". Allow-flight=true fixed it for me
i thought lag causes this
True, but afaik vanilla doesn't do anything except spam thr logs
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.
βINFO
You are using
Paper-17 (1.20)
. Latest currently is 1.20.6
.β Aikar's Flags
β Threads
You only have 2 thread(s).
β 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.
Plus 37 more recommendations
Click the buttons below to see more
Requested by theviper912#0 β’ Page 1 of 5
does this affects gameplay? if i change ticks and all those values?
!optimise
use Paper Chan's optimisation guide and look through it CAREFULLY
You can follow these guides to optimize your server
Admincraft Canned Responses
i wouldn't follow the bot
okay thanks
i will do the paper chan's optimisations
can you check this for me? if i have a signifcant proplem or something? the profiler catched more than 2 tps drops
https://spark.lucko.me/wXASRB92rj
players are in the nether , and the nether Anti xray is active unlike the overworld , maybe this is the reason?
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.
β entities.spawning.despawn-ranges.misc.hard
Decrease this in config/paper-world-defaults.yml.
Recommended: 96.
β entities.spawning.despawn-ranges.monster.soft
Decrease this in config/paper-world-defaults.yml.
Recommended: 28.
β entities.spawning.despawn-ranges.monster.hard
Decrease this in config/paper-world-defaults.yml.
Recommended: 96.
β entities.spawning.despawn-ranges.underground_water_creature.soft
Decrease this in config/paper-world-defaults.yml.
Recommended: 28.
β entities.spawning.despawn-ranges.underground_water_creature.hard
Decrease this in config/paper-world-defaults.yml.
Recommended: 96.
β entities.spawning.despawn-ranges.water_ambient.soft
Decrease this in config/paper-world-defaults.yml.
Recommended: 28.
β entities.spawning.despawn-ranges.water_creature.soft
Decrease this in config/paper-world-defaults.yml.
Recommended: 28.
β entities.spawning.despawn-ranges.water_creature.hard
Decrease this in config/paper-world-defaults.yml.
Recommended: 96.
β misc.redstone-implementation
Set this to "ALTERNATE_CURRENT" in config/paper-world-defaults.yml.
β chunks.entity-per-chunk-save-limit.experience_orb
Set a value in config/paper-world-defaults.yml. Recommended: 16.
β chunks.entity-per-chunk-save-limit.snowball
Set a value in config/paper-world-defaults.yml. Recommended: 16.
β chunks.entity-per-chunk-save-limit.ender_pearl
Set a value in config/paper-world-defaults.yml. Recommended: 16.
Requested by theviper912#0 β’ Page 4 of 5
use aikar flags
java -Xms9216M -Xmx9216M --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=40 -XX:G1MaxNewSizePercent=50 -XX:G1HeapRegionSize=16M -XX:G1ReservePercent=15 -jar server.jar --nogui
Piglins are using a sizeable chunk of your threadand the akair flags fix this right?
no
no
im just saying itβs one of the things you need to change
Iβve also decreased the ram flag to 9GB, since your machine only has 10 and you havenβt used 12 anyways
yes 9 is the suitable
so what should i do?
the point is i am afraid of changing values as i cannot measure if this may affect gameplay or not , i cannot make the decision
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
message.txt
Requested by theviper912#0
here is the paper timings (Still before using aikar flags)
https://timings.aikar.co/dev/?id=97348c451ec54cc3bf8b92cf6f206625#timings
Aikar's Timings Viewer
Aikar's Timings Viewer - View Timings v2 reports from Paper and Sponge
Timings 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.
βINFO
You are using
Paper-17 (1.20)
. The current latest is 1.20.6
.β Aikar's Flags
β Threads
You only have 2 thread(s).
β scorched
This datapack uses command functions which are laggy.
β 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.
Requested by theviper912#0 β’ Page 1 of 5
i will use akair flags and see
i remmebred that some players made a piglin farm , is there a way to fix the lag ? or i must disable the farm
!optimise
make sure you follow eternity's guide, and use aikar flags.
You can follow these guides to optimize your server
Admincraft Canned Responses
then see what perf is like
okay
what should i always use? /perf or spark or paper timings?
spark
okay thanks
is there something or a template or recommnded settings i could just use them? reading all this is exhausting
read it
and follow it CAREFULLY
it is a guide, not a tutorial
so don't copy paste it
got it
should i still use this right?
use pufferfish? yeah
okay thankss
take a backup first btw
oh
i used it before i saw the msg
haha all good, realistically you donβt have problems but itβs better safe than sorry
got it
ghost ping