TPS of my Minecraft modded server is dipping hard. What to do?

Hi everyone, as the title suggests I have huge problems with my Minecraft modded server. I created a mod pack for me and my friends and installed every performance mod to boost server and client performance, but it seems like this didn't a lot for the server. As soon as we play with 4 - 6 ppl, the server starts crumbling and the TPS dips and it's getting almost unplayable. I already installed spark and let it run to determine the issue, but to be honest I really have no idea what to look for, as I'm fairly new when it comes to creating mod packs and such. Also im running the server with Pterodactyl https://pterodactyl.io/ and these JVM arguments:
java -Xms1G -Xmx10G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -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 -XX:InitiatingHeapOccupancyPercent=20
java -Xms1G -Xmx10G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -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 -XX:InitiatingHeapOccupancyPercent=20
Here's the latest server log and the spark report: https://spark.lucko.me/4H3UVMR9oW https://mclo.gs/OvRB2m7 The mod list is in the server log. 🙂 Server Specs: Partitioned vServer (Ubuntu 20.04.6) AMD EPYC 7443P 24-Core Processor 2GHz (8 Cores assigned to my partition | 6 cores are assigned to the server) 26 GB RAM Can anyone tell me what do I have to do improve performance?
12 Replies
Admincraft Meta
Admincraft Meta8mo 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 yasareskin#0
Admincraft Meta
Admincraft Meta8mo ago
Spark Profile Analysis
❌ Processing Error
The bot cannot process this Spark profile. It appears that the platform is not supported for analysis. Platform: Forge
Requested by yasareskin#0
Skullians
Skullians8mo ago
right so you have 11,706 items spread across your world
Yasar Eskin
Yasar EskinOP8mo ago
You mean lying on the ground as entities?
Skullians
Skullians8mo ago
check out X = 160 Z = -544 I would recommend you get the Leaky mod - notifies you if you get any large item spillage across the world And I would recommend you either go across your world, or /kill @e[type=item] yes also that CPU isn't the greastest for minecraft do you have any datapacks / mods that acts as datapacks?
Yasar Eskin
Yasar EskinOP8mo ago
I already guessed so. 😅 Im sure there are some but i would have to look through the mod list to determine them. Why do you ask?
Skullians
Skullians8mo ago
so Functions are taking up a big portion of your server thread aka. it's one of the bigger things that are lagging your server and functions are found in datapacks (and datapacks can come in the form of mods) and you don't have any actual datapacks (as in the zip format ones that you put in the datapacks folder), which suggests you have the mod version of at least one datapack
Yasar Eskin
Yasar EskinOP8mo ago
Ohh.. that I didn't know
Skullians
Skullians8mo ago
if possible, can you run /perf start for me on your server? then it should finish after 10 seconds
Yasar Eskin
Yasar EskinOP8mo ago
Yea sure, gimme a sec 🙂
Skullians
Skullians8mo ago
then, in your server files there should be a zip file in the debug/profiling folder do you mind sending that to me? (can't do it here, @Admincraft Meta blocks it)
Yasar Eskin
Yasar EskinOP8mo ago
Should I DM you?

Did you find this page helpful?