Lagg spikes cause of GC
guys many of my servers have lagg spikes cause of GC issues, ram usage going from like 10 gb to 5.5 gb after a spike, does anyone know a common fix here?
24 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 sebastiaandb#0
1 min later:
show a spark
that shows gc as being a lag issue
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.
❌ 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.
❌ 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.
❌ chunks.entity-per-chunk-save-limit.arrow
Set a value in config/paper-world-defaults.yml. Recommended: 16.
Requested by sebastiaandb#0 • Page 3 of 3
isnt shendoah used to not cause lag spikes
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.
❌ Outdated
You are using
Pufferfish-69 (1.19.4)
. Update to 1.20.1
.❌ 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.
Requested by kaashout#0 • Page 1 of 3
This spark doesn’t show GC as being a lag issue
Nor does this one
Oh they’re the same
I tought it was GC
since ram was high --> laggspike --> ram low
and GC being red quite often
It’s not
Run a spark with the only-ticks-over option set to 200
here is a older one with made of over 50 https://spark.lucko.me/kBdUkBj2mi
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.
❌ Outdated
You are using
Pufferfish-69 (1.19.4)
. Update to 1.20.1
.❌ Aikar's Flags
❌ 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.wake-up-inactive.villagers-for
Decrease this in spigot.yml.
Recommended: 20.
❌ entity-activation-range.wake-up-inactive.flying-monsters-for
Decrease this in spigot.yml.
Recommended: 60.
❌ entity-activation-range.wake-up-inactive.villagers-max-per-tick
Decrease this in spigot.yml.
Recommended: 1.
❌ entity-activation-range.wake-up-inactive.animals-for
Decrease this in spigot.yml.
Recommended: 40.
❌ entity-activation-range.wake-up-inactive.monsters-max-per-tick
Decrease this in spigot.yml.
Recommended: 4.
❌ entity-activation-range.wake-up-inactive.flying-monsters-max-per-tick
Decrease this in spigot.yml.
Recommended: 1.
Plus 14 more recommendations
Click the buttons below to see more
Requested by sebastiaandb#0 • Page 1 of 3
but ill run over 200 now
Too much extra data in that to be useful
here you go:
a 200 one
https://spark.lucko.me/Lq9vZwOU2O
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 sebastiaandb#0 • Page 1 of 2
Satisfying symmetry
what is that?
MsPT and TPS relation
Satisfying
Try to use normal GC and see what happens tho
Shouldn’t allocate more than 12gigs of ram.
They're at shendoah @Stifle
It's not like G1GC where you have to be extra careful with memory allocation. It's a little different
Although you should try with G1GC