A
Admincraftβ€’8mo ago
Viper

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
No description
No description
128 Replies
Admincraft Meta
Admincraft Metaβ€’8mo 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 theviper912#0
Harrison
Harrisonβ€’8mo ago
!spark
Carl-bot
Carl-botβ€’8mo ago
Spark Profiler
Spark can be used to see why your server or client is lagging. https://spark.lucko.me/
From An unknown user
Admincraft Canned Responses
Harrison
Harrisonβ€’8mo ago
/spark profiler start --interval 300
Carl-bot
Carl-botβ€’8mo ago
Spark Profiler
Spark can be used to see why your server or client is lagging. https://spark.lucko.me/
From An unknown user
Admincraft Canned Responses
ProGamingDk
ProGamingDkβ€’8mo ago
!offline
Viper
ViperOPβ€’8mo ago
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
ProGamingDk
ProGamingDkβ€’8mo ago
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
Viper
ViperOPβ€’8mo ago
thanks for letting me know
Harrison
Harrisonβ€’8mo ago
Shows you ram usage cpu usage what plugins are using so much resources It'll help u find out why it's lagging
Viper
ViperOPβ€’8mo ago
does the profiler lags the server should i stop it? also i didnot use the interval thing is this okay?
Harrison
Harrisonβ€’8mo ago
That's fine yeah Stop it after like 5 minutes
Viper
ViperOPβ€’8mo ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Admincraft Meta
Admincraft Metaβ€’8mo 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.
❌ 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
Harrison
Harrisonβ€’8mo ago
Am I blind or do I not see a cpu
Skullians
Skulliansβ€’8mo ago
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
Viper
ViperOPβ€’8mo ago
is this bad?
Skullians
Skulliansβ€’8mo ago
not necessarily any reason as to why you're 1.20 and not 1.20.4
Viper
ViperOPβ€’8mo ago
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
Skullians
Skulliansβ€’8mo ago
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
Viper
ViperOPβ€’8mo ago
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?
Harrison
Harrisonβ€’8mo ago
Meh the cpu isn't the greatest Are you with a host or are you self hosting?
Viper
ViperOPβ€’8mo ago
oracle self hosting
Harrison
Harrisonβ€’8mo ago
Ah Oracle That's why the cpu yeah
Viper
ViperOPβ€’8mo ago
yes
Discount Milk
Discount Milkβ€’8mo ago
The server is running in offline mode. cringe as hell
Harrison
Harrisonβ€’8mo ago
Most should work on 1.20.4 check the resources though
Skullians
Skulliansβ€’8mo ago
much better performance than paper
Viper
ViperOPβ€’8mo ago
ok .
Skullians
Skulliansβ€’8mo ago
can't say for sure that spark profiler does not indicate any actual lag
Viper
ViperOPβ€’8mo ago
yes for some reasons the server is stable At the moment how can i watch for when its laggy
Skullians
Skulliansβ€’8mo ago
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 times
Viper
ViperOPβ€’8mo ago
i mean the profiler thing okay thanks so much
Viper
ViperOPβ€’8mo ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Admincraft Meta
Admincraft Metaβ€’8mo 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.
❓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
Viper
ViperOPβ€’8mo ago
there was lag on the server! why do it say there is not i am using paper anti xray btw
Skullians
Skulliansβ€’8mo ago
did you read what i said
Viper
ViperOPβ€’8mo ago
Viper
ViperOPβ€’8mo ago
yes yes i did
Skullians
Skulliansβ€’8mo ago
no you did not read it again
Viper
ViperOPβ€’8mo ago
i asked the players and they said there is multiple isntances of lag
Skullians
Skulliansβ€’8mo ago
- you ran the profiler for 3 SECONDS ideally it should be at least 10 minutes the profiler shows no lag
Viper
ViperOPβ€’8mo ago
sorry i do not know why did it stopped
Skullians
Skulliansβ€’8mo ago
so your players are either lying, or it's client side lag
Viper
ViperOPβ€’8mo ago
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
Skullians
Skulliansβ€’8mo ago
it will only stop if you tell it to
Viper
ViperOPβ€’8mo ago
sorry if I am kinda dumb
Discount Milk
Discount Milkβ€’8mo ago
This is why I don't support cracked server owners
Skullians
Skulliansβ€’8mo ago
i'm starting to also take that view
Viper
ViperOPβ€’8mo ago
chill
Viper
ViperOPβ€’8mo ago
No description
Viper
ViperOPβ€’8mo ago
its running for 48 minutes already what is the 3 seconds thing
Viper
ViperOPβ€’8mo ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Admincraft Meta
Admincraft Metaβ€’8mo 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 theviper912#0 β€’ Page 1 of 5
Skullians
Skulliansβ€’8mo ago
Datapacks are taking a big chunk of your server thread consider removing them, or replacing them with plugin alternatives
Viper
ViperOPβ€’8mo ago
thanks for your time can you specify which datapacks ?
Skullians
Skulliansβ€’8mo ago
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
Viper
ViperOPβ€’8mo ago
ofc i will send
Viper
ViperOPβ€’8mo ago
No description
Viper
ViperOPβ€’8mo ago
i disabled from the fog btw
Skullians
Skulliansβ€’8mo ago
also your server is running out of physical ram, might want to get it sorted
Viper
ViperOPβ€’8mo ago
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
Skullians
Skulliansβ€’8mo ago
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
Viper
ViperOPβ€’8mo ago
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
NieGestorben
NieGestorbenβ€’8mo ago
Yes, something which is not the minecraft server
Skullians
Skulliansβ€’8mo ago
^
NieGestorben
NieGestorbenβ€’8mo ago
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.)
Viper
ViperOPβ€’8mo ago
got it , thanks soo much for your explanation
Viper
ViperOPβ€’8mo ago
No description
Viper
ViperOPβ€’8mo ago
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?
NieGestorben
NieGestorbenβ€’8mo ago
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.
Viper
ViperOPβ€’8mo ago
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
Viper
ViperOPβ€’8mo ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Admincraft Meta
Admincraft Metaβ€’8mo 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 theviper912#0 β€’ Page 1 of 5
Viper
ViperOPβ€’8mo ago
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?
NieGestorben
NieGestorbenβ€’8mo ago
Great to hear you found the issue
Skullians
Skulliansβ€’8mo ago
do you not have the /perf command
Viper
ViperOPβ€’8mo ago
i did it and uploded it to the viewer i didno understand it tbh
NieGestorben
NieGestorbenβ€’8mo ago
Unfortunatly i have 0 experience with datapacks
Viper
ViperOPβ€’8mo ago
oh
Viper
ViperOPβ€’8mo ago
Admincraft Meta
Admincraft Metaβ€’8mo 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 theviper912#0
Viper
ViperOPβ€’8mo ago
this happens in the console when i do /perf
Admincraft Meta
Admincraft Metaβ€’8mo 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
Viper
ViperOPβ€’8mo ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Admincraft Meta
Admincraft Metaβ€’8mo 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 theviper912#0 β€’ Page 1 of 5
Viper
ViperOPβ€’8mo ago
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!
Arthurmeade12
Arthurmeade12β€’8mo ago
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)
Viper
ViperOPβ€’8mo ago
so this is normal to happen? not a proplem in my server? sorry didnot got it i am on 1.20 already
Arthurmeade12
Arthurmeade12β€’8mo ago
I didn't have the exact same error but instead the incessant "Arthurmeade12 moved to quickly!". Allow-flight=true fixed it for me
Viper
ViperOPβ€’8mo ago
i thought lag causes this
Arthurmeade12
Arthurmeade12β€’8mo ago
True, but afaik vanilla doesn't do anything except spam thr logs
Viper
ViperOPβ€’8mo ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Admincraft Meta
Admincraft Metaβ€’8mo 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.
❓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
Viper
ViperOPβ€’8mo ago
does this affects gameplay? if i change ticks and all those values?
Skullians
Skulliansβ€’8mo ago
!optimise use Paper Chan's optimisation guide and look through it CAREFULLY
Carl-bot
Carl-botβ€’8mo ago
You can follow these guides to optimize your server
Admincraft Canned Responses
Skullians
Skulliansβ€’8mo ago
i wouldn't follow the bot
Viper
ViperOPβ€’8mo ago
okay thanks
Viper
ViperOPβ€’8mo ago
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.
Admincraft Meta
Admincraft Metaβ€’8mo 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.
❌ 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
Skullians
Skulliansβ€’8mo ago
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 thread
Viper
ViperOPβ€’8mo ago
and the akair flags fix this right?
ProGamingDk
ProGamingDkβ€’8mo ago
no
Skullians
Skulliansβ€’8mo ago
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
Viper
ViperOPβ€’8mo ago
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
Viper
ViperOPβ€’8mo ago
Admincraft Meta
Admincraft Metaβ€’8mo 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 theviper912#0
Viper
ViperOPβ€’8mo ago
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
Admincraft Meta
Admincraft Metaβ€’8mo ago
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
Viper
ViperOPβ€’8mo ago
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
Skullians
Skulliansβ€’8mo ago
!optimise make sure you follow eternity's guide, and use aikar flags.
Carl-bot
Carl-botβ€’8mo ago
You can follow these guides to optimize your server
Admincraft Canned Responses
Skullians
Skulliansβ€’8mo ago
then see what perf is like
Viper
ViperOPβ€’8mo ago
okay what should i always use? /perf or spark or paper timings?
Skullians
Skulliansβ€’8mo ago
spark
Viper
ViperOPβ€’8mo ago
okay thanks is there something or a template or recommnded settings i could just use them? reading all this is exhausting
Skullians
Skulliansβ€’8mo ago
read it and follow it CAREFULLY it is a guide, not a tutorial so don't copy paste it
Viper
ViperOPβ€’8mo ago
got it should i still use this right?
Skullians
Skulliansβ€’8mo ago
use pufferfish? yeah
Viper
ViperOPβ€’8mo ago
okay thankss
Skullians
Skulliansβ€’8mo ago
take a backup first btw
Viper
ViperOPβ€’8mo ago
oh i used it before i saw the msg
Skullians
Skulliansβ€’8mo ago
haha all good, realistically you don’t have problems but it’s better safe than sorry
Viper
ViperOPβ€’8mo ago
got it
Skullians
Skulliansβ€’8mo ago
ghost ping

Did you find this page helpful?