Server is unable to use more ram hence TPS drops to 8-10 even there's 16gb of ram left.
Hi, I'm running a paper 1.21 survival server with a velocity network, but i just noticed my server is unable to use more than 13-14 gigs of ram even though the vps is of 32gb .... And hence the tps dropping to 8-10 with just 16 players. Can anyone help fixing this issue.?
17 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 mri.yml#0
more ram != better
mc runs better with less ram
vps have a virtualization overhead that can make them slower than a mc host
!spark
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 | DocsAdmincraft Canned Responses
download and make a spark then send here
sorry for being late, here it is : https://spark.lucko.me/Ev7gUZnukL
Btw the main issue that im facing is, whenever the server reaches 16-17 players, the tps drops to 8-9 even though there is much more ram is vacant to get used.
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 mri.yml • Page 1 of 2
You should run the profiler while the server is lagging
Currently it looks like it's run for <5 min
Also for aikars set XMX and XMS to the same value:
-Xms128M -Xmx16G --add-modules=jdk.incubator.vector -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -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
Aikar's Thoughts
JVM Tuning: Optimized G1GC for Minecraft - Aikar's Thoughts
Learn more about my In depth study on tuning the G1GC garbage collector to be optimized for how Minecraft servers run, and keep low pause efficient usage.
You might also want to lower view and simulation distance in server.properties
8 view and 6 sim, or 6 view 4 sim
Always make sure to have sim lower than view
xms = xmx doesnt do anything according to IBM
and alwayspretouch on shared hosting isnt always a good idea
I swear that was a common recommendation around here
nope
I was told that Xms = Xmx was necessary for Aikar flags to function properly
IBM says otherwise about the usefulness of it and havent seen that be the case
¯\_(ツ)_/¯
where do i paste this? one in startup comamnd and another in?
uhh i did not understand where do i paste that cmd
https://spark.lucko.me/wRUf2TteYG
here is the profiler while lagging
@Deathpacito (sorry for ping)
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
1.21
. Latest currently is 1.21.1
.❌ chunk-gc.period-in-ticks
Decrease this in bukkit.yml.
Recommended: 400.
❌ 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.
❌ entity-activation-range.wake-up-inactive.villagers-for
Decrease this in spigot.yml.
Recommended: 20.
Plus 10 more recommendations
Click the buttons below to see more
Requested by mri.yml • Page 1 of 2