Server performance is not very good with so many mods, and I have been looking into ways to fix this. One of the latest comments on the ATM8 page on CurseForge is from XZot1K, and says the following:
After lots of testing I resolved most of my issues by installing the following mods to the server (Ensure to install the correct versions, as of writing this the version is latest of each for 1.19.2):
https://www.curseforge.com/minecraft/mc-mods/too-fast
https://www.curseforge.com/minecraft/mc-mods/smooth-chunk-save
https://www.curseforge.com/minecraft/mc-mods/chunk-sending-forge-fabric
https://www.curseforge.com/minecraft/mc-mods/packet-size-doubler
These mods will resolve larger packet disconnect issues, chunk lag, and irregular movement rubber banding.
In addition to these, for further improvement, set the tick rate to -1 in the server.properties file.
Paste the following into the bottom of your “user_jvm_args.txt” (change the 6GB and 256m to your liking — Xms must be less than Xmx):
-Xmx6G -Xms256m -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=32M -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
Please note that while these additional mods do work on the client the major improvement comes from the server-side.
I’ve already used those jvm arguments, but I didn’t look for performance mods before. Now, after fiddling a bit around with them, the server feels much snappier (and I don’t have to install anything client side)! I’m hosting on Azure, with a Standard D2s v3 (2 vcpus, 8 GiB memory) VM, and when I would do a /home from a far away place it would take a few seconds to load. Now, it’s almost instantaneous! Thanks XZot1K! :)
The server also used to crash whenever multiple people entered the Nether, but I haven’t been able to test this yet with the new configuration.
If you have any tips to improve performance, please share them here :)
Interesting, I’ll have to give this a shot! I started up an ATM 8 server at home running on the same computer I use for my Jellyfin server and it was running kinda rough with the “can’t keep up!” error every few seconds, even with no one on. Not the greatest server computer in the world, it’s a mini PC I got for pretty cheap on ebay with an Intel i7-7700T, 8GB of RAM, and a 1TB HDD.
I went out yesterday and bought 32GB of RAM to throw at it with all the sales going on, and that seems to have really helped. I allocated 10GB to it now, up from the default max of 6. When I logged in, I wasn’t getting that error in the console anymore, blocks were dropping as soon as I broke them, and I didn’t experience any rubber-banding.
Granted, it was just me online at the time and I wasn’t generating any new chunks, so I’ll do some actual testing soon and try out those mods you mentioned also.
Read it as “all the 8 mods” first and thought it was one of those version chasing packs.
Great tips! I’ll certainly try these.