A
Admincraftβ€’6mo ago
yucchun

Server marks down as overloaded using little to no CPU?

Hello! Server on 1.21.1, CPU usage sitting at around 1 core, getting dozen of little overloaded logs.
103 Replies
Admincraft Meta
Admincraft Metaβ€’6mo 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 yucchun#0
yucchun
yucchunOPβ€’6mo ago
The server has 14 CPU cores of an E5-2660, and although that CPU isn't new, actually, is really old, I was expecting it to be able to multi-thread? I have no clue, but CPU usage is sitting at 1-2 cores and the server's struggling a lot to keep a 20TPS rate
TubaApollo
TubaApolloβ€’6mo ago
Minecraft doesn't properly multithread. So yeah, you are bottlenecked by the CPU because the single thread performance is bad. Try to pre-render the world if you haven't already, otherwise I don't think there is much you can do about that. Folia is a project which implements multithreading for minecraft server, but not a lot of plugins support it.
yucchun
yucchunOPβ€’6mo ago
I'm sitting on Geyser, Floodgate and Bluemap I see, alright, I'll try to move over to another CPU, this one is Tampa from Aquatis and I was sort of expecting something to go off badly when I saw the CPU model
TubaApollo
TubaApolloβ€’6mo ago
https://github.com/BlockhostOfficial/folia-plugins Bluemap and Geyser seem to have folia support
GitHub
GitHub - BlockhostOfficial/folia-plugins: List of popular plugins t...
List of popular plugins that support Folia - multithreaded PaperMC fork - BlockhostOfficial/folia-plugins
yucchun
yucchunOPβ€’6mo ago
Does Folia work alright with Minecraft itself? It's a SMP so we're sort of trying to make sure game functionality is kept, the plugins are optional
TubaApollo
TubaApolloβ€’6mo ago
FAQ | PaperMC Docs
Questions frequently asked by our community, answered by us!
TubaApollo
TubaApolloβ€’6mo ago
It's only really thought for large servers but maybe still worth a try, never used it myself though Easier fix would be to switch to any provider which offers Ryzen 9 7950X servers. Depends on your budget.
yucchun
yucchunOPβ€’6mo ago
the big issue here is just whether we'll be able to serve all players w decent ping
Jared | InfraCharm
Jared | InfraCharmβ€’6mo ago
What are your startup flags? Maybe we can work out optimization so you don't need to spend more money on Hardware. Back in 2015 this is the CPU that ran minecraft for bigger servers, so there is no reason why it can't now.
yucchun
yucchunOPβ€’6mo ago
i'll be honest, i'm just running default flags java -Xms128M -XX:MaxRAMPercentage=95.0 -Dterminal.jline=false -Dterminal.ansi=true -jar server.jar
Jared | InfraCharm
Jared | InfraCharmβ€’6mo ago
Pterodactyl?
yucchun
yucchunOPβ€’6mo ago
No description
yucchun
yucchunOPβ€’6mo ago
yes it's a really weird server configuration, but it works, 14 cores/16GB RAM LOL
Jared | InfraCharm
Jared | InfraCharmβ€’6mo ago
Okay, can you tell me what resources you have allocated to each server container (if you have multiple)
yucchun
yucchunOPβ€’6mo ago
It's just this server, I have it running on Pterodactyl just in case people need to come in and restart the server
Jared | InfraCharm
Jared | InfraCharmβ€’6mo ago
Okay, what do you have allocated to it? Memory/CPU/BlockIO if you have that enabled
yucchun
yucchunOPβ€’6mo ago
16 GB RAM, all the CPU cores, nothing limiting IO
Jared | InfraCharm
Jared | InfraCharmβ€’6mo ago
Okay, and that's all allocated to the server in the panel? Are you running on an HDD or an SSD?
yucchun
yucchunOPβ€’6mo ago
mhm! SSD, NVMe
Jared | InfraCharm
Jared | InfraCharmβ€’6mo ago
Great, that's a plus! Modify your startup parameters to match this: java -Xms128M -XX:MaxRAMPercentage=95.0 -Dterminal.jline=false -Dterminal.ansi=true -Xlog:gc*:file=gc.log:time,tags:filecount=5,filesize=10M -jar server.jar Go ahead and download and install this plugin: https://www.spigotmc.org/resources/spark.57242/ Once that plugin is loaded, run /spark profiler start --timeout 1200 The Spark report will run for 20 minutes. A new file called gc.log will be created in your Minecraft server's root directory. Send me both the spark report and the gc.log after those 20 minutes and we will start optimizing your server πŸ™‚
yucchun
yucchunOPβ€’6mo ago
alright! let me just give everyone a heads up that i'll restart the server
Jared | InfraCharm
Jared | InfraCharmβ€’6mo ago
Hey! Just seeing where you're at with this πŸ™‚
yucchun
yucchunOPβ€’6mo ago
hi! sorry, just started it
yucchun
yucchunOPβ€’6mo ago
oh lord
No description
Jared | InfraCharm
Jared | InfraCharmβ€’6mo ago
It's alright, that's what we're fixing
yucchun
yucchunOPβ€’6mo ago
hey! it just finished
yucchun
yucchunOPβ€’6mo ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Admincraft Meta
Admincraft Metaβ€’6mo 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.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.
❌ chunks.entity-per-chunk-save-limit.arrow
Set a value in config/paper-world-defaults.yml. Recommended: 16.
Requested by yucchun β€’ Page 4 of 4
yucchun
yucchunOPβ€’6mo ago
o
Jared | InfraCharm
Jared | InfraCharmβ€’6mo ago
Great! go ahead and send me the gc.log aswell
yucchun
yucchunOPβ€’6mo ago
Admincraft Meta
Admincraft Metaβ€’6mo 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 yucchun
yucchun
yucchunOPβ€’6mo ago
here!
Jared | InfraCharm
Jared | InfraCharmβ€’6mo ago
Thanks
yucchun
yucchunOPβ€’6mo ago
We have 4 players in-game right now How bad is the situation LOL
Jared | InfraCharm
Jared | InfraCharmβ€’6mo ago
Ehhh I've seen worse
java -Xms4G -Xmx14G -XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:+ParallelRefProcEnabled -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=60 -XX:G1HeapRegionSize=16M -XX:G1ReservePercent=15 -XX:InitiatingHeapOccupancyPercent=30 -XX:SurvivorRatio=32 -XX:MaxTenuringThreshold=1 -Dterminal.jline=false -Dterminal.ansi=true -Xlog:gc*:file=gc.log:time,tags:filecount=5,filesize=10M -jar server.jar
java -Xms4G -Xmx14G -XX:+UseG1GC -XX:MaxGCPauseMillis=100 -XX:+ParallelRefProcEnabled -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=60 -XX:G1HeapRegionSize=16M -XX:G1ReservePercent=15 -XX:InitiatingHeapOccupancyPercent=30 -XX:SurvivorRatio=32 -XX:MaxTenuringThreshold=1 -Dterminal.jline=false -Dterminal.ansi=true -Xlog:gc*:file=gc.log:time,tags:filecount=5,filesize=10M -jar server.jar
Update your startup parameters to match above. run /spark profiler start --timeout 1200 The Spark report will run for another 20 minutes. Send me both the spark report and the gc.log again after those 20 minutes and we will see how this helped πŸ™‚ @yucchun
yucchun
yucchunOPβ€’6mo ago
Set it! Restaring right now
yucchun
yucchunOPβ€’6mo ago
rah
No description
Jared | InfraCharm
Jared | InfraCharmβ€’6mo ago
It’s alright, this takes 3-5 tries to get it right
yucchun
yucchunOPβ€’6mo ago
there's a possibility that the cpu just isn't the right piece for this anymore
No description
Jared | InfraCharm
Jared | InfraCharmβ€’6mo ago
Is blue map rendering?
yucchun
yucchunOPβ€’6mo ago
oh yep, it was, just froze the world i keep forgetting to make it stop rendering when there's players on-line
Jared | InfraCharm
Jared | InfraCharmβ€’6mo ago
how’s cpu usage now
yucchun
yucchunOPβ€’6mo ago
200-700%
Jared | InfraCharm
Jared | InfraCharmβ€’6mo ago
perfect
yucchun
yucchunOPβ€’6mo ago
considerably better
Jared | InfraCharm
Jared | InfraCharmβ€’6mo ago
TPS?
yucchun
yucchunOPβ€’6mo ago
9.66
No description
yucchun
yucchunOPβ€’6mo ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Admincraft Meta
Admincraft Metaβ€’6mo 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.
Plus 35 more recommendations
Click the buttons below to see more
Requested by yucchun β€’ Page 1 of 4
yucchun
yucchunOPβ€’6mo ago
Admincraft Meta
Admincraft Metaβ€’6mo 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 yucchun
ProGamingDk
ProGamingDkβ€’6mo ago
yucchun your performance issues is caused by datapacks
yucchun
yucchunOPβ€’6mo ago
Just finished!
ProGamingDk
ProGamingDkβ€’6mo ago
using around 50% of the main thread
yucchun
yucchunOPβ€’6mo ago
we just have dynamiclights on
No description
yucchun
yucchunOPβ€’6mo ago
can it use that much?
ProGamingDk
ProGamingDkβ€’6mo ago
yes
yucchun
yucchunOPβ€’6mo ago
and we just turned it on too
ProGamingDk
ProGamingDkβ€’6mo ago
datapacks can be insanely ineffecient
yucchun
yucchunOPβ€’6mo ago
one minute, let me take it off
ProGamingDk
ProGamingDkβ€’6mo ago
and ofcourse would recommend getting a better cpu
yucchun
yucchunOPβ€’6mo ago
i'll get a 5950x with the same provider and move it there
ProGamingDk
ProGamingDkβ€’6mo ago
do note vps also have virtualization overhead which is what i assume it is https://docs.bloom.host/datapacks/#disclaimer https://misode.github.io/report/ use these two to see what commands are causing the lag so you can hopefully find whats causing them plugins made in mccreator can use functions, and is very bad
yucchun
yucchunOPβ€’6mo ago
do you think folia could solve my issue here?
ProGamingDk
ProGamingDkβ€’6mo ago
no Folia wants atleast 16 CORES 32 threads, only helps with spread out players, plugins are missing, api isnt stable, its not production ready and you still want a high singlethreaded performance cpu
yucchun
yucchunOPβ€’6mo ago
i could grab the entire e5-2660, but it probably won't solve the situation, right? since single-thread is terrible
Jared | InfraCharm
Jared | InfraCharmβ€’6mo ago
You don’t have the entire system? I thought you had a dedi
ProGamingDk
ProGamingDkβ€’6mo ago
no
yucchun
yucchunOPβ€’6mo ago
i'm splicing it up on proxmox, half linux half windows
Jared | InfraCharm
Jared | InfraCharmβ€’6mo ago
Oh In that case you’ll probably want to get a decent VPS or dedicate the system to MC, but that would be a waste of resources imo
yucchun
yucchunOPβ€’6mo ago
i mean for a 10-player max SMP, owch what i don't get is when the cpu's at 1.6 cores and the TPS is still low
yucchun
yucchunOPβ€’6mo ago
like, here
No description
ProGamingDk
ProGamingDkβ€’6mo ago
mc isnt very multithreaded very few things in mc are even on paper do this
yucchun
yucchunOPβ€’6mo ago
will do!
Admincraft Meta
Admincraft Metaβ€’6mo 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
ProGamingDk
ProGamingDkβ€’6mo ago
did you try and send the zip?
yucchun
yucchunOPβ€’6mo ago
yes
ProGamingDk
ProGamingDkβ€’6mo ago
put it into misodes
yucchun
yucchunOPβ€’6mo ago
just server tick
ProGamingDk
ProGamingDkβ€’6mo ago
Can you send screenshot of the like first 10 ones
yucchun
yucchunOPβ€’6mo ago
No description
yucchun
yucchunOPβ€’6mo ago
This?
ProGamingDk
ProGamingDkβ€’6mo ago
I assume this is after removing the dynamic light one? Can you make a new report
Admincraft Meta
Admincraft Metaβ€’6mo 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
yucchun
yucchunOPβ€’6mo ago
No description
yucchun
yucchunOPβ€’6mo ago
No description
yucchun
yucchunOPβ€’6mo ago
it's way better now :D still meh meh but better
ProGamingDk
ProGamingDkβ€’6mo ago
i meant a new spark report 😭
yucchun
yucchunOPβ€’6mo ago
OH! wait running in 5min
yucchun
yucchunOPβ€’6mo ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
yucchun
yucchunOPβ€’6mo ago
here!
Admincraft Meta
Admincraft Metaβ€’6mo 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.
❌ 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.
❌ entity-activation-range.wake-up-inactive.animals-max-per-tick
Decrease this in spigot.yml. Recommended: 2.
❌ entity-activation-range.wake-up-inactive.monsters-for
Decrease this in spigot.yml. Recommended: 60.
❌ arrow-despawn-rate
Decrease this in spigot.yml. Recommended: 300.
❌ merge-radius.item
Increase this in spigot.yml. Recommended: 4.0.
❌ 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.
Requested by yucchun β€’ Page 2 of 4
yucchun
yucchunOPβ€’6mo ago
the flags seem to have worked well these ig
ProGamingDk
ProGamingDkβ€’6mo ago
your issue wasnt with gc your issue was half the servers main thread was being used by the datapack
yucchun
yucchunOPβ€’6mo ago
hey! so, although it was working OK and we were getting optimal TPS, that was only the case in pre-loaded chunks and it ended up going down to 11 once 1-2 players started loading new ones in, i’ll run chunky for now and move it over to another dedicated once it arrives, i just ordered one with a 9950x, do you think that’d be enough?
hawtre
hawtreβ€’6mo ago
You'll definitely notice an improvement
yucchun
yucchunOPβ€’6mo ago
sorry ^ meant optimal TPS I’ll see, between this and ordering server hosting, should I just rent something Shockbyte/game-hosting? LOL
ProGamingDk
ProGamingDkβ€’6mo ago
No shockbyte is shit gamehosting yes lower overhead, and usually better cpus yes, pregen more and use a worldborder chunk gen is hard on any server
adis
adisβ€’6mo ago
Just use folia(configure it properly) and pregen the world, that's it.
ProGamingDk
ProGamingDkβ€’6mo ago
No
Skullians
Skulliansβ€’6mo ago
no

Did you find this page helpful?