AllTheMods / ATM-8

All the Mods 8
136 stars 32 forks source link

[1.0.10] Server Performance issues despite "strong enough Server" #862

Open Migno opened 1 year ago

Migno commented 1 year ago

Good day, for a while now we are experiencing very low TPS on our server. First we thought the hardware isnt enough so we upgraded from 7GB RAM to 12, then to 16 and now 32GB. We are still playing on 7-10 TPS and a very high MSRP. After that I opened a discord help thread to get some additional informations and maybe clues on how to fix, so far we havent get anywhere better...

Server Specs: CPU: AMD EPYC 7543P @ 2.79GHz RAM: 32GB SSD: 50GB

Changed JVM Args: Xms: 20G Xmx: 30G

Things we have tried so far: • Upgrading hardware on the server (obviously) • Reloacte productivebees from overworld to compact machine • Replace mekanism cables with pipes from the pipez mod • Going through the observable logs an searching for high µms/t entries and removing them • Removed naturalist mod due high entity count with high µms/t

Logs: 4 hour spark log: https://spark.lucko.me/KecF6BfD6Q 60s obversable: https://o.tas.sh/#wo13

Additional Information: Same spark tps info if one or no player is connected. As soon as the 2 player connect who are wearing meka-suite armor and are the most advanced on the gameplay the TPS are going down (as seen on the obversable log). We tried to set the meka-suite armor in an inventory and check again, no changes.

[spark-worker-pool-1-thread-3/INFO] [minecraft/MinecraftServer]: [⚡]  *20.0, *20.0, 20.0, 19.86, 19.8  
[spark-worker-pool-1-thread-3/INFO] [minecraft/MinecraftServer]: [⚡]  
[spark-worker-pool-1-thread-3/INFO] [minecraft/MinecraftServer]: [⚡] Tick durations (min/med/95%ile/max ms) from last 10s, 1m:  
[spark-worker-pool-1-thread-3/INFO] [minecraft/MinecraftServer]: [⚡]  23.1/35.2/65.0/100.4;  20.8/38.0/71.6/133.3  
[spark-worker-pool-1-thread-3/INFO] [minecraft/MinecraftServer]: [⚡]  
[spark-worker-pool-1-thread-3/INFO] [minecraft/MinecraftServer]: [⚡] CPU usage from last 10s, 1m, 15m:  
[spark-worker-pool-1-thread-3/INFO] [minecraft/MinecraftServer]: [⚡]  17%, 17%, 13%  (system)  
[spark-worker-pool-1-thread-3/INFO] [minecraft/MinecraftServer]: [⚡]  26%, 29%, 19%  (process)

Conclusion: As seen in the obversable logs, the player entity is the highest on the list. I have no clue why but after talking with the player we figured he got a bad internet connection, could that be the problem? Im glad for every help, tips, suggestions or anything else to get the TPS high again and if you need more informations, just ask, ill happy to give anything requested out.

AbstractUmbra commented 1 year ago

Bumping this issue to add that I'm observing the same issues.

Even with only one player active the tick rate is bad. When a second player logs in it gets unplayable.

Spark log: https://spark.lucko.me/0RLPhg6BId JVM Args (almost default from pack installation):

-Xms8G
-Xmx32G
-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

In more testing, a single player can reasonably play but any more than 1 and it's just a nightmare.

uhthomas commented 1 year ago

I see similar behaviour. Plenty of memory, plenty of cpu and chunks won't load.

minecraft-cf-atm8-0 minecraft-server [11:20:21] [spark-worker-pool-1-thread-2/INFO] [minecraft/MinecraftServer]: [⚡] Generating server health report...
minecraft-cf-atm8-0 minecraft-server [11:20:21] [spark-worker-pool-1-thread-2/INFO] [minecraft/MinecraftServer]:
minecraft-cf-atm8-0 minecraft-server > TPS from last 5s, 10s, 1m, 5m, 15m:
minecraft-cf-atm8-0 minecraft-server     20.0, *20.0, *20.0, 20.0, *20.0
minecraft-cf-atm8-0 minecraft-server
minecraft-cf-atm8-0 minecraft-server > Tick durations (min/med/95%ile/max ms) from last 10s, 1m:
minecraft-cf-atm8-0 minecraft-server     27.4/32.2/56.4/95.3; 20.6/30.5/54.4/104.1
minecraft-cf-atm8-0 minecraft-server
minecraft-cf-atm8-0 minecraft-server > CPU usage from last 10s, 1m, 15m:
minecraft-cf-atm8-0 minecraft-server     45%, 39%, 16%  (system)
minecraft-cf-atm8-0 minecraft-server     45%, 39%, 16%  (process)
minecraft-cf-atm8-0 minecraft-server
minecraft-cf-atm8-0 minecraft-server > Memory usage:
minecraft-cf-atm8-0 minecraft-server     6.3 GB / 12.0 GB   (52%)
minecraft-cf-atm8-0 minecraft-server     [┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃┃╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻]
minecraft-cf-atm8-0 minecraft-server
minecraft-cf-atm8-0 minecraft-server > Network usage: (system, last 15m)
minecraft-cf-atm8-0 minecraft-server     3.6 KB/s / 2 pps (lo rx)
minecraft-cf-atm8-0 minecraft-server     3.6 KB/s / 2 pps (lo tx)
minecraft-cf-atm8-0 minecraft-server     31.8 KB/s / 479 pps (eth0 rx)
minecraft-cf-atm8-0 minecraft-server     94.9 KB/s / 811 pps (eth0 tx)
minecraft-cf-atm8-0 minecraft-server
minecraft-cf-atm8-0 minecraft-server > Disk usage:
minecraft-cf-atm8-0 minecraft-server     2.2 GB / 31.2 GB   (7%)
minecraft-cf-atm8-0 minecraft-server     [┃┃┃┃╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻╻]
minecraft-cf-atm8-0 minecraft-server

https://spark.lucko.me/xc0XEd5NzN